Monitoring relayd(8) with Nagios
Contributed by jason on Sun Feb 20 16:49:34 2011 (GMT)
from the dont-forget-your-business-monitors-too dept.
The Nagios Exchange recently added check_relayd, a new check which monitors an OpenBSD relayd(8) service for health and availability. It was written by Philip Garner of Sysnix and published on the Exchange just a couple days ago. From the description:
Comprehensive perl relayd checker.
This plugin is designed to run on a local host if Nagios is not local I suggest you run it via
NRPE. However if you are running this on a firewall I would strongly [recommend] not using
NRPE and run a local Nagios [using] OCSP/OCHP to passive messages back to your main
Check_relayd checks that all redirect & relays loaded by relayd are active. If a redirect/relay or
table are down/empty it will give a CRITICAL message with information regarding what has
failed. If host(s) are down in a given redirect/relay then it will give a WARNING unless there
are 0 up for that relay/redirect in which case it will give a CRITICAL.
If relayd returns any unexpected output (command failure, system errors) this program will
return a CRITICAL.
-h, -?, --help
Print Help Information
Print Version Information
-r, --relay, --redirect
Optional -r argument you can give a list of the expected relays/redirect separated by
commas (,). If it does not find the relay/redirect returns CRITICAL. If a relay/redirect fond that
is not defined returns WARNING.
If you need any support or help with this plugin or if you find any cool ways of improving it
please let me know.
Editor's Note: Reviewing the check's source code, it does a basic inspection on the output of relayctl show summary, looking for active status on redirection or relay entries. There is no performance data passed back in the output, so users looking for trending data should continue to use an alternative graphing utility.
<< Building VPNs with OpenBSD and IPSEC | Reply | Flattened | Expanded | Comparing Encrypted Volumes in OpenBSD >>
Add Story |
Copyright © 2004-2008
All rights reserved.
Articles and comments are copyright their respective authors,
submission implies license to publish on this web site.
Contents of the archive prior to April 2nd 2004 as well as images
and HTML templates were copied from the fabulous original
Jim's kind permission.
Some icons from slashdot.org
used with permission from Kathleen.
This journal runs as CGI with
on OpenBSD, the
source code is
Search engine is ht://Dig.
undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]