| < check_rxdebug Documentation | Russ Allbery > Software > AFS Monitoring | check_udebug Documentation > |
fix gloabl variable problem
Lines changed: +10 -10
Use "#" to protect $ID.
Lines changed: +1 -1
Replace all OK: WARNING: CRITICAL: UNKOWN: bits with: OK - WARNING - CRITICAL - UNKNOWN -
as this was breaking message parsing on the Nagios side.
Lines changed: +7 -7
rxdebug -noconn tells us how many waiting connections there are; there's no need to parse the whole output and study it. Also, it's helpful to look for waiting connections to the file server, rather than waiting connections to the local cache manager (doh). Lower the warning threshold to two from four while we're at it.
Lines changed: +19 -12
hard code port 7001, because linux defaults to 7000 for rxdebug
Lines changed: +2 -2
Prefer /usr/bin/rxdebug
Lines changed: +2 -2
Fix the SYNOPSIS in the documentation to have the correct flag to get the version.
Lines changed: +2 -2
Fix a few very minor issues in the documentation.
Lines changed: +3 -3
Extensively reworked to do regular option parsing, support -h and -V options, support configuration of the critical and warning levels, support a timeout value, provide a bit of information for okay results, and add complete documentation.
Lines changed: +212 -29
Don't use -allconn -rxstats. We aren't paying any attention to the statistics, just the mode of the connection, and -allconn just adds in the (thousands of) idle connections. Let's assume that an idle connection can't also be blocked.
Lines changed: +3 -3
Add -H opt, strip out for loop
Lines changed: +12 -14
Add in timeout flag (essentially to fool nagios)
Lines changed: +7 -1
rxdebug check for AFS
| < check_rxdebug Documentation | Russ Allbery > Software > AFS Monitoring | check_udebug Documentation > |