Snmp disk monitoring help needed
Im monitoring disk partitions using Nagios and the plug in check_disk. It returns too much information in the sense that it gives inode information. see below:
DISK OK - free space: / 4 GB (94% inode=98%) I want to show only this: DISK OK - free space: / 4 GB 94% Im assuming this is configured in snmp.conf which is where i set up what partitions i wanted monitored with this below: disk / disk /boot disk /boot2 disk /home disk /local disk /opt disk /tmp disk /usr disk /var Can anyone let me know what direction i should go to resolve this? Very much appreciated! |
Quote:
Code:
#!/bin/sh |
Thanks for you quick response unSpawn, i tried what you suggested but it didnt resolve my issue.
After doing some more digging im wondering since my entry in snmpd.conf determies what partitions i want monitored if the entries ive listed below can be altered to change what is outputted when the check_disk is run as check_disk -u GB -l -w 20% -c 10% BTW, this isnt defined in checkcommands.cfg, it is called by the nrpe.conf file as command[check_disk_all]=/usr/lib64/nagios/plugins/check_disk -u GB -l -w 20% -c 10% and then nrpe does the check. Thanks |
Quote:
|
I think it would be better if someone with experience with SNMP respond. A wrapper is a work around and im looking to resolve the issue directly. Thank you anyways.
|
Quote:
- When using Nagios to poll a local or remote disk for resource information, what plugin would you regularly use? - When using Nagios to poll a local or remote SNMP daemon for resource information, what plugin would you regularly use? - When configuring a SNMP daemon for presenting disk resource information, using the standard UCD MIB, what default OID is presented in snmpd.conf? - Using snmpwalk what would the commandline look like to query that OID? - Using Nagios' check_snmp to query that same OID, what would the commandline look like? - What is the difference in output between using snmpget and check_snmp? - What is the difference in output between using check_disk on a mounted disk and using check_snmp on that OID? - What is the difference in output between using check_disk and using check_disk with NRPE? - Which above used Nagios plugin showed percentage signs and which one didn't? |
Ok i figured it out. The response you were giving were way off base on the original question i asked which was how to alter the output the Nagios plugin was reporting. While i appreciate your attempt at assisting me on this, i think a better understanding of how Nagios functions and how they interact with plugins would have generated an appropriate solution.
Nagios plugins are either binaries, perl scripts or shell scripts. If the plugin is a script then altering the script would have been a solution. Since snmp is running, reading the script and understanding how it interacts with the snmp.conf file is necessary. Adding a band aid on top of an issue means theres one more thing that has to be called or maintained, in this situation only. I use wrappers for other things but this isnt the solution here. I resolved my issue and it was through a better understanding of snmp and how it uses OID's and how scripts return output. |
Quote:
|
Ill let you use the ridiculous steps you tried to get me to use or find the REAL answer the way i did. Let me know which works better for you.
|
Quote:
|
And you confirmed you have no idea what youre talking about, even though you try to sound like you do and shouldnt post to anyones request unless you have a clue. You waste peoples time with your un helpful responses.
|
Heh, you're funny.
|
All times are GMT -5. The time now is 02:22 AM. |