| < check_rxdebug Documentation | Russ Allbery > Software > AFS Monitoring |
(Check AFS servers for blocked connections in Nagios)
check_udebug [-hV] [-t timeout] -H host -p port
check_udebug is a Nagios plugin for checking AFS database servers to make sure the Ubik replication between the database servers is running correctly. udebug is used to connect to the specified port, which should generally be one of 7002 (ptserver), 7003 (vlserver), or 7004 (kaserver), on the specified server. The resulting output is checked to make sure that the recovery state is 1f if that server is the sync site, or that a sync site is known if that server doesn't claim to be the sync site.
check_udebug will always print out a single line of output. That
line will be UBIK OK if everything is fine, or UBIK CRITICAL
- followed by an error message otherwise.
The AFS database server whose Ubik status check_udebug should check. This option is required.
Print out this documentation (which is done simply by feeding the script
to perldoc -t).
The port to connect to on the AFS database server. This should generally be one of 7002 (ptserver), 7003 (vlserver), or 7004 (kaserver). This option is required.
Change the timeout for the udebug command. The default timeout is 60 seconds.
Print out the version of check_udebug and quit.
check_udebug follows the standard Nagios exit status requirements. This means that it will exit with status 0 if there are no problems or with status 2 if there are critical problems. For other errors, such as invalid syntax, check_udebug will exit with status 3.
The standard -v verbose Nagios plugin option is not supported. It should print out the full udebug output.
The usage message for invalid options and for the -h option doesn't conform to Nagios standards.
This script does not use the Nagios util library or any of the defaults that it provides, which makes it somewhat deficient as a Nagios plugin. This is intentional, though, since this script can be used with other monitoring systems as well. It's not clear what a good solution to this would be.
The current version of this and other AFS monitoring plugins for Nagios are available from the AFS monitoring tools page at <http://www.eyrie.org/~eagle/software/afs-monitor/>.
Russ Allbery <rra@stanford.edu>
Copyright 2004 Board of Trustees, Leland Stanford Jr. University.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
| < check_rxdebug Documentation | Russ Allbery > Software > AFS Monitoring |