Switch monitor using XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Switch monitor using XI

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Switch monitor using XI

Post 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.
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: Switch monitor using XI

Post by lafargeuser »

I would like to monitor CPU & Mem utilization of cisco switch.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Switch monitor using XI

Post 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
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: Switch monitor using XI

Post 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%
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Switch monitor using XI

Post 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?:

Code: Select all

./check_cisco_cpu.pl -h
Also, what is the output after you run your original command?
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: Switch monitor using XI

Post 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 ?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Switch monitor using XI

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: Switch monitor using XI

Post 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 ?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Switch monitor using XI

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked