Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_tftp
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!
Nagios plugin to check a tftp server. Issues a "status" command to the given server and processes the results. Requires a local tftp binary.
Reviews (2)
byhk@, May 9, 2013
this is because "status" of tftp always reports "connected to.." even if the tftp there is not responding...
I have to change a line in the script in order to receive the correct report, otherwise the report is always CRITICAL although the server is working properly. This is an example with verbose output:
# ./check_tftp -H server.com -p 67 -v
opening echo status | /usr/bin/tftp server.com 67
output is:
tftp> Connected to server.com.
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp>
STATUS: tftp> Connected to server.com.
TFTP CRITICAL: tftp> Connected to server.com.
#
This is the change:
92 my ($state, $answer);
93 -if ($status =~ /^Connected to/) {
93 +if ($status =~ /Connected to/) {
94 $state = $ERRORS{OK};
95 $answer = $status;
96 chomp $answer;
And this is the report now:
# ./check_tftp -H server.com -p 67 -v
opening echo status | /usr/bin/tftp server.com 67
output is:
tftp> Connected to server.com.
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp>
STATUS: tftp> Connected to server.com.
TFTP OK: tftp> Connected to server.com.
#
# ./check_tftp -H server.com -p 67 -v
opening echo status | /usr/bin/tftp server.com 67
output is:
tftp> Connected to server.com.
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp>
STATUS: tftp> Connected to server.com.
TFTP CRITICAL: tftp> Connected to server.com.
#
This is the change:
92 my ($state, $answer);
93 -if ($status =~ /^Connected to/) {
93 +if ($status =~ /Connected to/) {
94 $state = $ERRORS{OK};
95 $answer = $status;
96 chomp $answer;
And this is the report now:
# ./check_tftp -H server.com -p 67 -v
opening echo status | /usr/bin/tftp server.com 67
output is:
tftp> Connected to server.com.
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp>
STATUS: tftp> Connected to server.com.
TFTP OK: tftp> Connected to server.com.
#