Hi Adam
Gotcha. And no plans for process monitoring?
Mmm. Upgraded now but now it ignores my settings in snmpd.conf so instead it reports loads of disks as networkDisks and hence skip them in observium.
hrStorageType.59 = hrStorageNetworkDisk
hrStorageType.60 = hrStorageFixedDisk
hrStorageType.61 = hrStorageNetworkDisk
hrStorageType.62 = hrStorageNetworkDisk
Looking at the debug I can see them being skipped to guess the system now reports them badly.SQL[SELECT * FROM `storage` WHERE `device_id` = '24' AND `storage_index` = '60' AND `storage_mib` = 'host-resources-mib']
SQL RUNTIME[0.00016880s]
.skip(network)
skip(network)
> $valid['storage'] - /opt/observium/discovery.php:182
/opt/observium/includes/discovery/storage.inc.php:21
======================================================
array(
[host-resources-mib] => array(
[31] => string(1) "/"
[33] => string(16) "/Volumes/STORAGE"
[36] => string(19) "/Volumes/spycerbox1"
[60] => string(18) "/Volumes/FILMNAS03"
)
)
SQL[SELECT * FROM `storage` WHERE `device_id` = '24']
SQL RUNTIME[0.00021791s]
31 -> host-resources-mib
33 -> host-resources-mib
36 -> host-resources-mib
60 -> host-resources-mib
Will sleep on it and attack it tomorrow again. =)
Cheers
--Henrik Cednertcto | td | compositor
Filmlance InternationalDirect + 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:52
To: Observium Network Observation System <observium@observium.org>
Subject: Re: [Observium] Monitor OSX system. Problem with reported size for NFS share and monitor processes
We don't have any support for net-snmp's process table.
The disk space issue is very, very well known, and requires a fairly new version of net-snmp to fix.
Adam.
Sent from BlueMail
On 26 Jan 2016, at 22:21, "Henrik Cednert (Filmlance)" <henrik.cednert@filmlance.se> wrote:Bot these issues or just the disk size?
--Henrik Cednertcto | td | compositor
Filmlance InternationalDirect + 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 MailbirdOn 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
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium