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
93107
Files:
FileDescription
check_cisco_ntp.shcheck_cisco_ntp.sh -=v2.2=-

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

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