Home Directory Plugins Network Protocols NTP and Time Cisco - Check NTP on MSFC and Switch

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

Cisco - Check NTP on MSFC and Switch

Rating
1 vote
Favoured:
0
Hits
92715
Files:
FileDescription
check_cisco_ntp.shcheck_cisco_ntp.sh -=v2.2=-
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check Cisco NTP on MSFC and Switch- Version 2.2 (07/03/2009)> NTP association
This script check Cisco firewall (tested on Cisco PIX-515E and ASA-5500).
Modules included :
### Mode 1 - Association ###
- NTP association status


check_cisco_ntp.sh -H hostname -V version -M asso [-C|-l|-u|-a|-d|-h]
### PARAMETERS ###
-H Hostname (IP adresse or DNS name)
-V Version (1|2c|3)
-M Mode (asso)
### OPTIONNAL ###
-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_cisco_ntp.sh -H 192.168.0.1 -V 1 -M asso -C Public
OK - Node status : noWarning - Source status : 10.0.0.1 (client mode) : OK | ok=1


#./check_cisco_ntp.sh -H 192.168.0.1 -V 3 -l AuthNoPriv -u user -a password -M asso
OK - Node status : noWarning - Source status : 10.0.0.1 (client mode) : OK | ok=1

#./check_cisco_ntp.sh -h
Display help

#./check_cisco_ntp.sh xxxxxx -d
Active debug mod
Reviews (1)
./check_cisco_ntp.sh -H 10.02.10.2 -V 3 -M asso -u doubly -l AuthPriv -a shubly
snmpwalk: USM generic error
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
snmpwalk: USM generic error
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
.1.3.6.1.4.1.9.9.168.1.2.1.1.2.: Unknown Object Identifier (Sub-id not found: enterprises -> )
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
.1.3.6.1.4.1.9.9.168.1.2.1.1.3.: Unknown Object Identifier (Sub-id not found: enterprises -> )
.1.3.6.1.4.1.9.9.168.1.2.1.1.4.: Unknown Object Identifier (Sub-id not found: enterprises -> )
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
.1.3.6.1.4.1.9.9.168.1.2.1.1.8.: Unknown Object Identifier (Sub-id not found: enterprises -> )
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
.1.3.6.1.4.1.9.9.168.1.2.1.1.21.: Unknown Object Identifier (Sub-id not found: enterprises -> )
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
Unknown - Node status : noWarning | ok=0