Environmental

sgichk_cisco_chassis

Description:

Check chassis health of most cisco devices (fans, power supplies, etc)

Current Version

1.0

Last Release Date

2012-04-14

Compatible With

  • Nagios 3.x

Owner

License

GPL


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Notes
Check chassis health of most cisco devices (fans, power supplies, etc)
Reviews (3) Add a Review
Working Properly...
by nishith, February 29, 2016
Working Properly. Below is my output.
#########################################
./sgichk_cisco_chassis.pl -H 192.168.1.1 -C public
OK: All Environmental Sensors ok
Switch#1, Fan#1 = Normal
Sw1, PS1 Normal, RPS NotExist = Normal
#########################################
./sgichk_cisco_chassis.pl -H 192.168.1.2 -C public
OK: All Environmental Sensors ok
chassis = Normal
chassis = Normal
internal power supply = Normal
redundant power supply = notPresent
#########################################
./sgichk_cisco_chassis.pl -H 192.168.1.3 -C public
OK: All Environmental Sensors ok
Switch#1, Fan#1 = Normal
Sw1, PS1 Normal, RPS NotExist = Normal
#########################################
Helpful? Yes  No 
Issue with tables
by LA_Admin, June 30, 2014
Getting it installed was no issue, but when I run the plugin in terminal, I get this:

"ERROR fetching Envmon table: The requested table is empty or does not exist"

I am using an ASA 5512-X. Does that mean the plugin is not compatible with the device, or have I mis-configured?
Helpful? Yes  No 
I couldnt get it to work
by jeffr680j, June 30, 2012
Hi all,

I can't wait to get this plugin working!, but for some reason (I can't get it working). I am assuming user error as it works via terminal. I set it to be executable, and I get a

(Return code of 127 is out of bounds - plugin may be missing) in nagios.

I have declared it in switch.cfg as:

#cisco Chassis temperature
define service{
use generic-service
host_name VPU Core
service_description Cisco Temps
check_command sgichk_cisco_chassis!-C read
}

I have declared it in commands.cfg as:
# 'check_enviro' command definition
define command{
command_name sgichk_cisco_chassis
command_line $USER1$/sgichk_cisco_chassis! -H $HOSTADDRESS$ $ARG1$
}

When I run it via terminal I get:

libexec# ./sgichk_cisco_chassis.pl -H 192.168.2.16 -C read
OK: All Environmental Sensors ok
SW#1, Sensor#1, GREEN = 31 = Normal
SW#2, Sensor#1, GREEN = 30 = Normal
Switch#1, Fan#1 = Normal
Switch#1, Fan#2 = Normal
Switch#2, Fan#1 = Normal
Sw1, PS1 Normal, RPS NotExist = Normal
Sw1, PS2 Normal, RPS NotExist = Normal
Sw2, PS1 Normal, RPS NotExist = Normal
Sw2, PS2 Normal, RPS NotExist = Normal
I am sorry. It looks like a great plugin, I just can't figure out how to get it to work. I would like to get it to report on each switch, in nagios 3.3.1. I don't see any specific documentation on how to use it.
Owner's Reply:

Hmmm, I think maybe you have an extra ! in your command_line? Here's what I'm using for my command config:

# Check ALL environmental sensors for a cisco device
define command{
command_name check-cisco-enviro
command_line $USER1$/sgichk_cisco_chassis.pl -H $HOSTADDRESS$ -C $USER3$ -2
}

The -2 option tells it to use snmp V2 (faster, especially over a WAN).


Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (4)
Favorites
1
Views
72,320