Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check SmarterMail Queue - check_queue_sm
1.0
2016-08-11
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
GPL
6195
File | Description |
---|---|
check_queue_sm | Main File - Check SmarterMail Queue |
mx_wsdl.php | Library - SmarterMail Webservice Library |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
The plugin is a PHP script and should run on every linux distribution with PHP installed. It has been tested with SmarterMail 5.x or above and Nagios 4.0.x
This will display the current number of messages in queue of a SmarterMail Server.
Client configuration
===================
1) You must have installed SmarterMail Mail Server 5.x or above
Server configuration
====================
1) Put the script files in the appropiate directory on the server. If you compile from source, it should be /usr/local/nagios/libexec.
2) You must have installed PHP 5.2 or above and PHP-SOAP library
3) Be sure you can connect to SmarterMail Webservice client from server
4) Create command in the configuration file:
define command {
command_name check_queue_sm
command_line $USER1$/check_queue_sm -H=$HOSTADDRESS$ -P=$ARG1$ -p=$ARG2$ -w=$ARG3$ -c=$ARG4$
}
5) Edit your services configuration and add a check_command directive:
check_command check_queue_sm!PORT!PASSWORD!WARNING_VALUE!CRITICAL_VALUE
Example:
check_command check_queue_sm!80!password!200!400
* PORT - 80: port where the SmarterMail Webservice is listening
* PASSWORD - password: SmarterMail admin password
* WARNING_VALUE - 200: value when receive a warning alert
* CRITICAL_VALUE - 400: value when receive a critical alert
6) Check and reload configuration:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios reload
Client configuration
===================
1) You must have installed SmarterMail Mail Server 5.x or above
Server configuration
====================
1) Put the script files in the appropiate directory on the server. If you compile from source, it should be /usr/local/nagios/libexec.
2) You must have installed PHP 5.2 or above and PHP-SOAP library
3) Be sure you can connect to SmarterMail Webservice client from server
4) Create command in the configuration file:
define command {
command_name check_queue_sm
command_line $USER1$/check_queue_sm -H=$HOSTADDRESS$ -P=$ARG1$ -p=$ARG2$ -w=$ARG3$ -c=$ARG4$
}
5) Edit your services configuration and add a check_command directive:
check_command check_queue_sm!PORT!PASSWORD!WARNING_VALUE!CRITICAL_VALUE
Example:
check_command check_queue_sm!80!password!200!400
* PORT - 80: port where the SmarterMail Webservice is listening
* PASSWORD - password: SmarterMail admin password
* WARNING_VALUE - 200: value when receive a warning alert
* CRITICAL_VALUE - 400: value when receive a critical alert
6) Check and reload configuration:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios reload
Reviews (0)
Be the first to review this listing!