Nagios Exchange
  • Home
  • Directory
  • About

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
Plugins4387Themes and Skins11Add-ons732Documentation283Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Network Connections, Stats and Bandwidth check_iftraffic_nrpe.sh
4.6 (5)
45.9K
RSS Feed
Newest Listings Updated Listings
Top Contributors
LAMY (7)Julien DESMAREST (6)deskwork_itunes142 (4)Davide Lemma (4)Joerg Hoerter (3)
See More
Newest Contributors
Guillaume8723 (1)Salvo (1)SOHA-IT (1)Tsvetomir Tsvetanov (1)Igor Ru (1)
See More
Home > Felix Barbeira
FB

Felix Barbeira

@fbarbeira

User Stats

Favorites0

Views

Projects0

No Projects Found
check_tftp

Fix

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. #

Reviewed 13 years ago

No Favorites Found

Copyright © 2009-2025 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks