From: Werner, R. <RW...@po...> - 2012-02-29 22:53:01
|
To get that kind of info over snmp you probably would have to write a script because the check_snmp only pulls one oid at a time. However there already are plugins that will do exactly what you want: http://nagios.manubulon.com/index_snmp.html I use these to monitor diskspace. Read the instructions on that page for how to set your thresholds. -- Robert G. Werner Oracle Apps Systems Administrator rw...@po... 559.521.5089 From: Verges Casadevall, Jordi [mailto:jor...@t-...] Sent: Wednesday, February 29, 2012 3:50 AM To: nag...@li... Subject: [Nagios-users] Monitoring with check_snmp a file system Hello, I'm a newbie on Nagios. I'm reading http://nagiosplugins.org/man/check_snmp I would like to monitor by SNMP file systems on remote servers. I'm trying to use check_snmp but I don't know how to check multiples OIDs For example: check_snmp -H localhost -P 2c -C public -o hrStorageDescr.19,hrStorageSize.19,hrStorageUsed.19 SNMP OK - /usr/local/nagios 1274000 39195 | HOST-RESOURCES-MIB::hrStorageSize.19=1274000 HOST-RESOURCES-MIB::hrStorageUsed.19=39195 But I would like to monitor if % space used is more than 80%, please could you tell me how to configure warnings and criticals? Best Regards, Jordi Verges Casadevall T-Systems Iberia Production (ICTO) - Automation & Tools Sancho de Àvila, 110-130 08018 Barcelona Tel. +34 933 419 576 e-mail: jor...@t-...<mailto:jor...@t-...> Internet: www.t-systems.es<http://www.t-systems.es/> This e-mail and any attachments may contain confidential or privileged information. Any unauthorized copying, use or distribution of this information is strictly prohibited. This e-mail and any attachments may contain confidential or privileged information. Any unauthorized copying, use or distribution of this information is strictly prohibited. |