How to monitor Disk IO and CPU load using SNMP in Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

How to monitor Disk IO and CPU load using SNMP in Nagios

Post 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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: How to monitor Disk IO and CPU load using SNMP in Nagios

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to monitor Disk IO and CPU load using SNMP in Nagios

Post 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
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: How to monitor Disk IO and CPU load using SNMP in Nagios

Post 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.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: How to monitor Disk IO and CPU load using SNMP in Nagios

Post 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]
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: How to monitor Disk IO and CPU load using SNMP in Nagios

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to monitor Disk IO and CPU load using SNMP in Nagios

Post 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.
yunushaikh
Posts: 176
Joined: Sat Jun 20, 2015 9:04 pm

Re: How to monitor Disk IO and CPU load using SNMP in Nagios

Post 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.
Locked