Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@jsellens
Favorites0
Views2055
Projects3
We're now using thruk primarily to aggregate 3 separate Nagios servers, and it's a great tool. The interface is obvious if you're familiar with the classic Nagios interface, and it behaves just as you would expect. We connect over the open network using ssh tunnels to livestatus endpoints. Works like a charm! Thanks!
Reviewed 14 years ago
Nice client, provides error messages if url or token is incorrect. I noticed that if providing results on stdin, nothing seems to happen. I believe the 3rd and 4th last lines are indented too far. The two lines xml += "" self.post_data(options.url, options.token, xml) should be indented two levels, to match the else: about 15 lines earlier. Thanks!
Reviewed 13 years ago
Handy script, but should mention that it runs on linux only - it reads /proc/net/dev, so unfortunately it won't help you monitor a switch or other network device.
Reviewed 12 years ago
Works great, though one problem I ran into - the check for a valid -H value assumes that all components of a hostname start with a letter, and some of ours start with a digit, so I had to adjust the regular expression. (I was confused about why it was telling me "No target host specified" until I checked the code and understood that that message should have been "No target host, or I didn't like the one you gave me" :-) )
Very handy plugin - ran into one minor problem in version 2.4 with the "status" command. check_apcupsd only looks at the first word in the STATUS: provided by apcaccess. Changing the check at line 188 from this: VALUE=`$APCACCESS status $HOSTNAME:$PORT | grep -i ^$ARG | sed 's/.*: *([A-Z]*).*/1/'` to this: VALUE=`$APCACCESS status $HOSTNAME:$PORT | grep -i ^$ARG | sed -e 's/^.*: *//' -e 's/ *$//'` seemed to do the trick for me - now our brand new UPS can report "ONLINE NOBATT" and we'll notice! Thanks! John