Bot these issues or just the disk size? 

--
Henrik Cednert
cto | td | compositor

Filmlance International
Direct + 46 (0)704 71 89 54

From: observium <observium-bounces@observium.org> on behalf of Adam Armstrong <adama@memetic.org>
Reply-To: Observium Network Observation System <observium@observium.org>
Date: Tuesday 26 January 2016 at 23:18
To: "observium@observium.org" <observium@observium.org>
Subject: Re: [Observium] Monitor OSX system. Problem with reported size for NFS share and monitor processes

This is due to bugs with the snmp daemon.

You need to run a more recent version.

adam.

Sent from Mailbird

On 26/01/2016 22:18:06, Henrik Cednert (Filmlance) <henrik.cednert@filmlance.se> wrote:

Hi there.

Monitoring a osx "server" with observium. To get it to see the NF shares I added this to snmpd.conf:

skipNFSInHostResources 0
storageUseNFS 2

This worked and I now see the shares. The large NAS is reported with wrong sizes though. Expected is this:

df -ah |grep midskog
filmddn:/ddnnas0/midskog 958Ti 193Ti 765Ti 21% 7479476 692520524 1% /Volumes/midskog


Reported in observium is:
Size: 208GB
Used: 915GB
Free: -707GB



I actually think this could be an net-snmp bug in OSX but I'm not sure. When I snmpwalk locally I see this for that particular mount:

HOST-RESOURCES-MIB::hrStorageType.61 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.61 = STRING: /Volumes/midskog
HOST-RESOURCES-MIB::hrStorageAllocationUnits.61 = INTEGER: 512 Bytes
HOST-RESOURCES-MIB::hrStorageSize.61 = INTEGER: 436207616
HOST-RESOURCES-MIB::hrStorageUsed.61 = INTEGER: 1920024576




Any one that had similar issues and found a solution?




Next issue is that i try to monitor a process called 'nsd'. I have added it so snmpd.conf and when i walk the device locally I see it:

filmserver01:snmp filmserver01$ snmpwalk -c public -v2c localhost UCD-SNMP-MIB::prTable
UCD-SNMP-MIB::prIndex.1 = INTEGER: 1
UCD-SNMP-MIB::prNames.1 = STRING: nsd
UCD-SNMP-MIB::prMin.1 = INTEGER: 0
UCD-SNMP-MIB::prMax.1 = INTEGER: 1
UCD-SNMP-MIB::prCount.1 = INTEGER: 1
UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: noError(0)
UCD-SNMP-MIB::prErrMessage.1 = STRING:
UCD-SNMP-MIB::prErrFix.1 = INTEGER: noError(0)
UCD-SNMP-MIB::prErrFixCmd.1 = STRING:



But observium doesn't pick it up. Is this something that isn't supported or am I missing something?



Cheers and thanks.




--
Henrik Cednert
cto | td | compositor

Filmlance International
Direct + 46 (0)704 71 89 54


_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium