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
85244
Files:
FileDescription
check_telnet.pycheck_telnet.py
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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 ]