File System

Check number of files in directory via telnet

Description:

Plugin to check number of files in a remote directory using telnet. Implemented in Expect.

Current Version

1

Last Release Date

2009-09-08

Compatible With

  • Nagios 2.x
  • Nagios 3.x

Project Files
Project Notes
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.
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
100,165