Build precise queries to find exactly what you need
Press ESC to close
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:
TFTP OK: tftp> Connected to server.com. #
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!