Page 1 of 1
Switches CPU Utilization & Memory Monitoring
Posted: Thu Dec 31, 2015 1:48 am
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.
Re: Switches CPU Utilization & Memory Monitoring
Posted: Mon Jan 04, 2016 11:13 am
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?
Re: Switches CPU Utilization & Memory Monitoring
Posted: Tue Jan 05, 2016 10:36 pm
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
Re: Switches CPU Utilization & Memory Monitoring
Posted: Wed Jan 06, 2016 3:58 pm
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
Re: Switches CPU Utilization & Memory Monitoring
Posted: Thu Jan 07, 2016 1:43 am
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,,
Re: Switches CPU Utilization & Memory Monitoring
Posted: Thu Jan 07, 2016 12:34 pm
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
Re: Switches CPU Utilization & Memory Monitoring
Posted: Thu Jan 07, 2016 8:39 pm
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.
Re: Switches CPU Utilization & Memory Monitoring
Posted: Fri Jan 08, 2016 1:10 pm
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.
Re: Switches CPU Utilization & Memory Monitoring
Posted: Fri Jan 08, 2016 9:31 pm
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?
Re: Switches CPU Utilization & Memory Monitoring
Posted: Mon Jan 11, 2016 11:26 am
by rkennedy
I was able to find this plugin,
https://exchange.nagios.org/directory/P ... h3/details - would this work for you?