Page 1 of 1
How to monitor Disk IO and CPU load using SNMP in Nagios
Posted: Tue Jun 30, 2015 10:32 am
by yunushaikh
Hello Sir,
i want to monitor Disk I/O and CPU load ( If possible load on every core) using snmp. Is there any plugin which I can use.
Re: How to monitor Disk IO and CPU load using SNMP in Nagios
Posted: Tue Jun 30, 2015 10:40 am
by jdalrymple
Re CPU:
https://exchange.nagios.org/directory/P ... ad/details
Re IO - I'm assuming you're referring to the Linux platform. If so I'm unaware of any OIDs or SNMP plugins that monitor IO. There are disk counters that you could potentially adapt to an MRTG pool after which you could use
check_mrtgtraf to suck the data into Nagios.
Re: How to monitor Disk IO and CPU load using SNMP in Nagios
Posted: Tue Jun 30, 2015 10:55 am
by ssax
Here is a plugin that I found for Disk IO:
https://exchange.nagios.org/directory/P ... MP/details
Code: Select all
/usr/local/nagios/libexec/check_diskio_ucd.pl -H X.X.X.X -C community -s 2 -d sda1 -w 30 -c 50
For CPU you can use:
https://exchange.nagios.org/directory/P ... ad/details
Code: Select all
/usr/local/nagios/libexec/check_snmp_load.pl -H X.X.X.X -C community -w 80 -c 90
Re: How to monitor Disk IO and CPU load using SNMP in Nagios
Posted: Tue Jun 30, 2015 11:37 am
by yunushaikh
Thanks Experts for your quick response. This is very helpful for me. I will implement it now and will let you know if i face any issue.
i am setting up Nagios server. I will need lot of help from you guys. You guys are doing great job by sharing your knowledge.
Thanks again.
Re: How to monitor Disk IO and CPU load using SNMP in Nagios
Posted: Tue Jun 30, 2015 12:27 pm
by yunushaikh
Hello Sir,
DISK I/O worked fine but CPU load is asking me snmp login info
I dont want to use login information for snmp
Is there any way
./check_snmp_load.pl -H X.X.X.X
Put snmp login info!
Usage: ./check_snmp_load.pl [-v] -H <host> -C <snmp_community> [-2] | (-l login -x passwd [-X pass -L <authp>,<privp>]) [-p <port>] -w <warn level> -c <crit level> -T=[stand|netsl|netsc|as400|cisco|cata|c5500|nsc|fg|bc|nokia|hp|lp|hpux] [-f] [-t <timeout>] [-V]
Re: How to monitor Disk IO and CPU load using SNMP in Nagios
Posted: Tue Jun 30, 2015 12:34 pm
by yunushaikh
When I give command as
./check_snmp_load.pl -H X.X.X.X -w 80 -c 90 -C public
with parameter -C as public then it gives the output
What is the difference between doing -C and without running -C. Without -C it asks for snmp login information?
Re: How to monitor Disk IO and CPU load using SNMP in Nagios
Posted: Tue Jun 30, 2015 12:37 pm
by ssax
I assume that when you do not include -C community it may default to SNMP v3, so make sure to add the -C community since it's required.
Re: How to monitor Disk IO and CPU load using SNMP in Nagios
Posted: Tue Jun 30, 2015 1:45 pm
by yunushaikh
Thanks for your reply. I was able to do that. You can close this thread.
I appreciate you help. i have couple of more questions in Nagios. I will open new thread for that as it is for another reason.