Page 1 of 2
Switch monitor using XI
Posted: Tue Jun 11, 2013 6:26 am
by lafargeuser
Using XI I would looking to monitor below things. Is this possible with plugin ?
Create alert for uplink status change. (Uplink is a critical link/interface for connectivity to the core of the network)
Interface errors (>1%)
Monitor CPU status and Memory
Device/node status.
Re: Switch monitor using XI
Posted: Tue Jun 11, 2013 9:25 am
by slansing
These two are dependent on the network equipment, what would you be monitoring?:
Create alert for uplink status change. (Uplink is a critical link/interface for connectivity to the core of the network)
Interface errors (>1%)
The below is completely possible, but once again, what are you monitoring? Windows/Linux/Mac?:
Monitor CPU status and Memory
Again, we need more information, what do you mean by Device/Node status?:
Device/node status.
Re: Switch monitor using XI
Posted: Tue Jun 11, 2013 10:19 am
by lafargeuser
I would like to monitor CPU & Mem utilization of cisco switch.
Re: Switch monitor using XI
Posted: Tue Jun 11, 2013 10:35 am
by slansing
You may want to take a look at the plugins listed here as they should fall in line with your requirements:
http://exchange.nagios.org/index.php?op ... isco%20cpu
Re: Switch monitor using XI
Posted: Wed Jun 12, 2013 6:42 am
by lafargeuser
How can I use below plugin ?
http://exchange.nagios.org/directory/Pl ... pu/details
I have downloaded above plugin and uploaded using manage plugin tab.
running below commnad from Nagios but not able to catch output.
./check_cisco_cpu.pl -H 172.17.97.15 -C cisco -warn 5s%, 1m% -c 5s%, 1m%
Re: Switch monitor using XI
Posted: Wed Jun 12, 2013 9:09 am
by slansing
Are you running:
Code: Select all
./check_cisco_cpu.pl -H 172.17.97.15 -C cisco -warn 5s%, 1m% -c 5s%, 1m%
From the libexec directory?
Have you used the -h flag to make sure you have every flag required?:
Also, what is the output after you run your original command?
Re: Switch monitor using XI
Posted: Fri Jun 14, 2013 7:18 am
by lafargeuser
It shows
Usage:
check_asa_cpu.pl [options] (-help || -?)
Options:
Mandatory:
-H IP address of monitored Cisco ASA device
-C SNMP community
-warn Warning threshold in % for 5s, 1m and 5m CPU usage separated by
commas
-crit Critical threshold in % for 5s, 1m and 5m CPU usage separated by
commas
what is the correct command to run ?
Re: Switch monitor using XI
Posted: Fri Jun 14, 2013 12:47 pm
by sreinhardt
It would seem something along the lines of:
cd /usr/local/nagios/libexec/
./check_cisco_cpu.pl -H 172.17.97.15 -C cisco -warn 10,10,10 -crit 25,25,25
Just to verify, cisco is your community string?
Re: Switch monitor using XI
Posted: Mon Jun 17, 2013 4:40 am
by lafargeuser
Cool.
I got the output as below:-
WARNING! CPU usage: 5s - 21% exceeds threshold of 10%, 1m - 21% exceeds threshold of 10%, 5m - 22% exceeds th reshold of 10%. | 'CPU 5s'=21%, 'CPU 1m'=21%, 'CPU 5m=22%
But when I am configuring this service in core config, I dont see any check_cisco_cpu.pl plugin in check command tab.
How do I call that plugin from nagios core config services tab so that it will display the switch cpu usage in Nagios dashboard ?
Re: Switch monitor using XI
Posted: Mon Jun 17, 2013 11:21 am
by abrist
You will need to create and add a "command" in the XI interface for the check:
http://assets.nagios.com/downloads/nagi ... lugins.pdf