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

Cisco - Check gateway ISDN

Rating
0 votes
Favoured:
0
Hits
95430
Files:
FileDescription
check_cisco_isdn_calls.shB check_cisco_isdn_calls.sh -=v2.2=-
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!
Check Cisco gateway ISDN - Version 2.2 (17/03/2009)> Current calls (B-Channels used, and B-Channels free)
This script check Cisco gateway ISDN (tested on Cisco 2811 and 2821).
Modules included :
### Mode 1 - bchannels ###
- b-channels used and free on gateway
=> warning or critical exit if superior to level -w or -c
=> error if free channels <0



check_isdn_calls.sh -H hostname -V version -M bchannels [-w|-c|-C|-l|-u|-a|-d|-h]
### PARAMETERS ###
-H Hostname (IP adresse or DNS name)
-V Version (1|2c|3)
-M Mode (bchannels)
### OPTIONNAL ###
-w Warning_Level (number of free channels) *** Use on bchannels mode ***
-c Critical_Level (number of free channels) *** Use on bchannels mode ***
-C Community (name) *** Use on Version 1|2 ***
-l Login (NoAuthNoPriv | AuthNoPriv | AuthPriv) *** Use on Version 3 ***
-u Username *** Use on Version 3 ***
-a Password *** Use on Version 3 ***
-d Debug mode
-h Help (print command usage, and quit)



Sample commands:
#./check_isdn_calls.sh -H 192.168.0.1 -V 1 -M bchannels -C Public -w 5 -c 2
OK - 30 channels : 26 free : 4 used (method = ISDN) | Max=30 Current_Used=4

#./check_isdn_calls.sh -H 192.168.0.1 -V 3 -l AuthNoPriv -u user -a password -M bchannels -w 29 -c 2
Warning - 30 channels : 26 free : 4 used (method = ISDN) | Max=30 Current_Used=4

#./check_isdn_calls.sh -h
Display help

#./check_isdn_calls.sh xxxxxx -d
Active debug mod