Network and Systems Management

check_cisco_vss.pl

Description:

check the vss link between two cisco 6500

Current Version

0.1

Last Release Date

2009-11-23

Compatible With

  • Nagios 2.x
  • Nagios 3.x

Owner


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 if the VSS and the vsl link work. It check also if the first 6500 it the primary or no
Reviews (6) Add a Review
Good, with a few changes.
by porkchop, August 31, 2014
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.3s+= 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 ";
Helpful? Yes  No 
Doesnt work completely
by packetguy, March 31, 2014
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?
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
corrected line 163
by tmoritz, October 31, 2012
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.
2 of 2 found this review helpful.
Helpful? Yes 2 No 0
lines 163 to 178 unused in programm
by pad99, June 30, 2012
The lines 163 to 178 are unused in the program, the programm will never pass there. The regex may be wrong
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
Thanks!
by dbouthil, January 31, 2012
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.
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
Wrong OID used to check VSL status?
by thaecker, December 31, 2011
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?
2 of 2 found this review helpful.
Helpful? Yes 2 No 0
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
3.9 (7)
Favorites
0
Views
100,350