Home Directory Addons Active Checks check_telnet_welcome.py

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_telnet_welcome.py

Current Version
1.0
Compatible With
  • Nagios 3.x
License
GPL
Hits
85573
Files:
FileDescription
check_telnet.pycheck_telnet.py
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!
Written in Python2.7 this plugin checks for the telnet Welcome Message. If the string you want is included, it returns SUCCESS, WARNING if the answer needs more than warning time, CRITICAL at time out (critical time) or host unreachable and UNKNOWN every time else. See the script for more explanation.
Reviews (1)
We use this plugin to monitor a a welcome screen on a telnet session and it works great!

Required Python modules that might not be installed by default:
* argparse

Installation instructions:
https://pypi.python.org/pypi/argparse

Try one of these:

python setup.py install

easy_install argparse

pip install argparse

----
Example of check_command definition

Command Name: check_telnet
Command Line: $USER1$/check_telnet.py -H $HOSTADDRESS$ $ARG1$

Testing check from command line:
/usr/local/nagios/libexec/check_telnet.py -H telnetsession.com -P 23 -s "Welcome to the telnet session." -w 2 -c 4

Documentation:
usage: check_telnet.py [-h] -H -P -s
[-w ] [-c ]