Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
Plugin to check number of files in a remote directory using telnet. Implemented in Expect.
Current Version
1
Last Release Date
2009-09-08
Owner
matthew hollick
Website
http://thehollick.com/dokuwiki/doku.php?id=nagios:plugins:mine#expect
Compatible With
check_num_files_telnet.exp
Not just for Linux but should work for most UNIXs. It was cobbled together to check the number of incoming files on an old SCO server. I hope that this script can also be used as an example of how expect can be used to automate collection of metrics through interactive applications such as telnet. One of the strengths of using expect (or a implementation of expect in another language such as perl or ruby) is the level of error checking that is possible. As this script was needed for a quick fix I did not have the time to implement full error checking. Performance data is returned. You may need to edit the shell prompt variable within the script. I kept this variable internal and not as a commandline option as # and > are potentially awkward to quote. You will be gratified to hear that I ran 'shutdown -y' for the last time on the SCO server today. This does mean that I am unlikely to update this script.
You must be logged in to submit a review.
To:
From: