Switches CPU Utilization & Memory Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Switches CPU Utilization & Memory Monitoring

Post by raamardhani7 »

Hi Team,

I wanted to monitor CPU and Memory utilization for Switches and routers. snmpwalk is working fine and when I am running the below command for cpu utilization, I am facing the below issue. Also please let me know how can I monitor memory utilization for the same.

Code: Select all

./check_snmp_load.pl -H xx.xx.xx.xx -v2c -C public -t 30 -w 50 -c 90 -p 161
Alarm at 15 + 5
SNMP v2c login
ERROR: Description table : Requested table is empty or does not exist.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Switches CPU Utilization & Memory Monitoring

Post by tgriep »

What is the make and model type of the device that you are trying to monitor?
Can you re-run the snmpwalk to the device and add -On to the command and post the output here so we can review the OID's from the device?
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Switches CPU Utilization & Memory Monitoring

Post by raamardhani7 »

tgriep wrote:What is the make and model type of the device that you are trying to monitor?
Can you re-run the snmpwalk to the device and add -On to the command and post the output here so we can review the OID's from the device?

It is CISOC router. Model number: WS-C3750X-24P

attaching the snmpwalk command with -On
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Switches CPU Utilization & Memory Monitoring

Post by rkennedy »

From https://exchange.nagios.org/directory/P ... ad/details -
-T, --type=stand|netsl|netsc|as400|cisco|cata|c5500|bc|nokia|hp|lp
CPU check :
stand : standard MIBII (works with Windows),
can handle multiple CPU.
netsl : linux load provided by Net SNMP (1,5 & 15 minutes values)
netsc : cpu usage given by net-snmp (100-idle)
as400 : as400 CPU usage
cisco : Cisco CPU usage
cata : Cisco catalyst CPU usage
c5500 : Cisco ASA 5500 CPU usage
nsc : NetScreen CPU usage
fg : Fortigate CPU usage
bc : Bluecoat CPU usage
nokia : Nokia CPU usage
hp : HP procurve switch CPU usage
lp : Linkproof CPU usage
hpux : HP-UX load (1,5 & 15 minutes values)
What is the result when you run it with -T cisco?

Code: Select all

./check_snmp_load.pl -H xx.xx.xx.xx -v2c -C public -t 30 -w 50 -c 90 -p 161 -T cisco
Former Nagios Employee
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Switches CPU Utilization & Memory Monitoring

Post by raamardhani7 »

rkennedy wrote:From https://exchange.nagios.org/directory/P ... ad/details -
-T, --type=stand|netsl|netsc|as400|cisco|cata|c5500|bc|nokia|hp|lp
CPU check :
stand : standard MIBII (works with Windows),
can handle multiple CPU.
netsl : linux load provided by Net SNMP (1,5 & 15 minutes values)
netsc : cpu usage given by net-snmp (100-idle)
as400 : as400 CPU usage
cisco : Cisco CPU usage
cata : Cisco catalyst CPU usage
c5500 : Cisco ASA 5500 CPU usage
nsc : NetScreen CPU usage
fg : Fortigate CPU usage
bc : Bluecoat CPU usage
nokia : Nokia CPU usage
hp : HP procurve switch CPU usage
lp : Linkproof CPU usage
hpux : HP-UX load (1,5 & 15 minutes values)
What is the result when you run it with -T cisco?

Code: Select all

./check_snmp_load.pl -H xx.xx.xx.xx -v2c -C public -t 30 -w 50 -c 90 -p 161 -T cisco

Code: Select all

./check_snmp_load.pl -H xx.xx.xx.xx -v2c -C public -t 30 -w 50 -c 90 -p 161 -T cisco
3 warnings and critical !
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|nsc|fg|bc|nokia|hp|lp|hpux] [-f] [-t <timeout>] [-V]
Please help me,,
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Switches CPU Utilization & Memory Monitoring

Post by rkennedy »

It looks like this plugin is a bit different, see this page -
https://exchange.nagios.org/directory/P ... ad/details
-2, --v2c
Use snmp v2c
Looks like this script functions a little bit differently, try this -

Code: Select all

./check_snmp_load.pl -H xx.xx.xx.xx -2 -C public -t 30 -w 50 -c 90 -p 161 -T cisco
Former Nagios Employee
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Switches CPU Utilization & Memory Monitoring

Post by raamardhani7 »

rkennedy wrote:It looks like this plugin is a bit different, see this page -
https://exchange.nagios.org/directory/P ... ad/details
-2, --v2c
Use snmp v2c
Looks like this script functions a little bit differently, try this -

Code: Select all

./check_snmp_load.pl -H xx.xx.xx.xx -2 -C public -t 30 -w 50 -c 90 -p 161 -T cisco
Hi rkennedy,

I have tried the plugin mentioned above and still i am facing the same issue.

Code: Select all

./check_snmp_load.pl -H xx.xx.xx.xx -2 -C public -t 30 -w 50 -c 90 -p 161 -T cisco
3 warnings and critical !
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]

./check_snmp_load.pl -H xx.xx.xx.xx -2 -C public -t 30 -w 50 -c 90 -p 161
Alarm at 15 + 5
SNMP v2c login
ERROR: Description table : Requested table is empty or does not exist.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Switches CPU Utilization & Memory Monitoring

Post by tgriep »

The Cisco devices have 3 separate CPU loads, 5 second, 1 minute and 5 minute so the warning and critical options have to be set for all 3 loads. Try running the command like so.

Code: Select all

./check_snmp_load.pl -H xx.xx.xx.xx -2 -C public -t 30 -w 50,50,50 -c 90,90,90 -p 161 -T cisco
Let us know if this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Switches CPU Utilization & Memory Monitoring

Post by raamardhani7 »

tgriep wrote:The Cisco devices have 3 separate CPU loads, 5 second, 1 minute and 5 minute so the warning and critical options have to be set for all 3 loads. Try running the command like so.

Code: Select all

./check_snmp_load.pl -H xx.xx.xx.xx -2 -C public -t 30 -w 50,50,50 -c 90,90,90 -p 161 -T cisco
Let us know if this helps.

Code: Select all

./check_snmp_load.pl -H xx.xx.xx.xx -2 -C public -t 30 -w 50,50,50 -c 90,90,90 -p 161 -T cisco
Alarm at 15 + 5
SNMP v2c login
CPU : 11 12 12 : OK
Looks like this is working now.

Could you please let me know how can I perform Bandwidth monitoring?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Switches CPU Utilization & Memory Monitoring

Post by rkennedy »

I was able to find this plugin, https://exchange.nagios.org/directory/P ... h3/details - would this work for you?
Former Nagios Employee
Locked