|Nagios (IT Infrastructure Monitoring)|
XWall has an interface to query the status of the queue that can be used to signal the status to Nagios.
|How it works|
A Perl script opens a connection on port 25 to XWall and sends a special ESMTP command.
XWall will then return the current state of the queue ( e.g. OK, WARNING or CRITICAL) and the amount of messages in the queue.
Nagios gets the output of the script and based on the rules, it triggers an action.
A sample connection looks like:
By default XWall does not allow access to the data.
Note: Substitute 10.0.0.1 with the IP address of your Nagios machine.
The default values for warnign and critical are:
Extract check_xwall.pl and copy it to /usr/local/nagios/libexec
Make the script executable using
cmod 755 /usr/local/nagios/libexec/check_xwall.pl
cmod 755 /usr/local/nagios/
Add the command definition from sample-nagios.cfg to your nagios cfg file
Bind a Nagios service and/or host to the command
On the XWall server, add the commands from sample-xwall.ini to XWall. ini to permit Nagios to query the XWall server
Run the script manually to see if there is any problem using a command line like
/usr/local/nagios/libexec/check_xwall.pl -H yourxwall.yourdomain.com --debug
Note: The sample assumes that the Nagios plug-in are installed in /usr/local/nagios/libexec If they are in a different direcory, then you need to change the direcory in the samples and also in check_xwall.pl