Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_cisco_vss.pl

Rating
7 votes
Favoured:
0
Current Version
0.1
Last Release Date
2009-11-23
Compatible With
  • Nagios 2.x
  • Nagios 3.x
Owner
Hits
99926
Files:
FileDescription
check_cisco_vss.plcheck_cisco_vss.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
check the vss link between two cisco 6500
Check if the VSS and the vsl link work.

It check also if the first 6500 it the primary or no
Reviews (6)
A few fixes... language to English, corrected OID and regex (as mentioned in other reviews). Changed the "primary isn't active, its standby" from a critical to a warning, since in my book, if its functioning, that's not enough to wake me up at night. I may disable that alltogether in what I put into production, since I don't really care which is primary (I have other stuff to catch events that cause switchovers).


59c59
print "No host defined!\n";help(); exit $ERREUR{"UNKNOWN"};
83c83
print "Switch: Standalone ";
89c89
print "Switch: VSS mode in transit ";
93c93
elsif ( /388\.1\.3\.1\.1\.3\s+= \S+:\s+2/ )
95c95
print "VSL: not active ";
101c101
print "VSS: OK ";
109c109
print "No SNMP Response: Critical";
141c141
print " Primary Chassis is Active: Ok";
145,146c145,146
$retour=$ERREUR{"WARNING"};
155c155
print " Secondary Chassis is Standby: Ok ";
159,160c159,160
$retour=$ERREUR{"WARNING"};
163c163,164
elsif ( /388.1.2.2.1.2.(S+)s+=s+S+:s+1/ )
> # elsif ( /388\.1\.2\.2\.1\.1\.(\S+)\s+=\s+\S+:\s+1/ )
167c168
print " Primary Chassis is standalone: CRITICAL ";
171c172
print " Secondary Chassis is standalone: CRITICAL ";
175c176
print " Chassis condition cannot be verified: CRITICAL ";
196c197
print " VSL $1 name $2: and ";
bypacketguy, March 5, 2014
1 of 1 people found this review helpful
Hi,

It doesnt work completely. (dont mind the translation)

I get:

VSS: OK VSL: not active Primary Chassis Active: Ok Secondary Chassis standby: OK VSL 209: OK VSL 210: OK

When i go to my VSS and check:

sh switch virtual link
VSL Status : UP
VSL Uptime : 2 years, 33 weeks, 3 days, 23 hours, 33 minutes
VSL SCP Ping : Pass
VSL ICC Ping : Pass
VSL Control Link : Te1/5/5

What is going wrong here?
bytmoritz, October 15, 2012
2 of 2 people found this review helpful
pad99 was right, the regex in line 163 is wrong, also. Line 163 should look like this:
elsif ( /388.1.2.2.1.2.(S+)s+=s+S+:s+1/ )

Anyway, nice script, thanks to the author.
bypad99, June 13, 2012
1 of 1 people found this review helpful
The lines 163 to 178 are unused in the program, the programm will never pass there. The regex may be wrong
bydbouthil, January 6, 2012
1 of 1 people found this review helpful
I implemented this script with the OID change recommended in the first review and it appears to be working. I also translated the output form French to English. Thanks, very useful.
bythaecker, December 28, 2011
2 of 2 people found this review helpful
Thanks for this check.
Just one annotation:

In line 93 this check is using OID 1.3.6.1.4.1.9.9.388.1.1.6 to check the VSL status. According to cisco documents, this OID is cvsVSLChangeNotifEnable.
Wouldn't 1.3.6.1.4.1.9.9.388.1.3.1.1.3 (cvsVSLConnectOperStatus) be correct?