Page 1 of 1

Monitoring CPU/Memory/IO in Switch

Posted: Wed Jun 19, 2019 2:45 am
by axvers
Hi Support,

Some client asked us if they can check the cpu, memory, and disk performance on a switch.

And I found that the default "Network Switch/Router" wizard seems showed without those info but Port Status and Bandwidth.

Is there a recommended plugin to use for getting those info?

Otherwise, we need to setup a snmpget command to get them from specific oid....

Re: Monitoring CPU/Memory/IO in Switch

Posted: Wed Jun 19, 2019 9:40 am
by lmiltchev
If you knew the OID, you could use the SNMP or SNMP Walk wizard in Nagios XI to achieve your goal.

Re: Monitoring CPU/Memory/IO in Switch

Posted: Wed Jun 19, 2019 9:28 pm
by axvers
Yes, I know.

Wanted to check that if you have any plugin or command which is already contained some specific OIDs for those usage.

There are many type of switch/routers,
I can get some cisco's value via some OIDs, but other devices can't be done by same OID; it returned nothing.

The problem is that I don't know what is its type for any given ip so far.

And the cpu/memory items for switch/routers are not included in the wizard.

So, want to ask if you have any solutions for this?

Re: Monitoring CPU/Memory/IO in Switch

Posted: Thu Jun 20, 2019 9:50 am
by lmiltchev
You can try some of the 3rd party plugins on the Nagios Exchange. Once you find one that is working fine from the command line, you can add a new command and a service to Nagios XI by following the steps, outlined in the document below:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Here's two of the plugins I found on the Nagios Exchange for monitoring CPU and Memory on Cisco switches:

https://exchange.nagios.org/directory/P ... ad/details

https://exchange.nagios.org/directory/P ... pl/details

Here's an example of the output from both plugins:

Code: Select all

./check_snmp_load.pl -H 192.168.x.x -C public -2 -p 161 -w 40,50,60 -c 70,80,90 -T cisco
CPU : 24 27 30 : OK

Code: Select all

./check_snmp_cisco_memutil.pl -H 192.168.x.x -C public -w 80 -c 90 -f
Status is OK - MEMORY: total: 179.82 MB, used: 46.76 MB (26%), free: 133.06 MB | MemTotal=179.82, MemUsed=46.76, MemFree=133.06
There may be other (better) plugins on the Nagios Exchange. I tried only these two. They worked "out of the box" - I didn't need to know the OIDs or do bunch of research to find them.

Hope this helps.

Re: Monitoring CPU/Memory/IO in Switch

Posted: Thu Jul 25, 2019 1:33 am
by axvers
Sorry for missing out replying here.

I found that the commands Nagios XI provided originally (last month, sorry), do have some parameters can use.

For example, the "check_load.pl" has a Cisco parameter (same to your reply post). It stored some general CPU OIDs in its code.

If there are other irregular CPU/Memory OIDs occurred in the future, I will check plugins on the exchange you sited.

Please lock this, Thanks!

Re: Monitoring CPU/Memory/IO in Switch

Posted: Thu Jul 25, 2019 6:47 am
by scottwilkerson
axvers wrote:Sorry for missing out replying here.

I found that the commands Nagios XI provided originally (last month, sorry), do have some parameters can use.

For example, the "check_load.pl" has a Cisco parameter (same to your reply post). It stored some general CPU OIDs in its code.

If there are other irregular CPU/Memory OIDs occurred in the future, I will check plugins on the exchange you sited.

Please lock this, Thanks!
Great!

Locking