Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_milter
1.0.1
2015-10-29
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
GPL
6906
File | Description |
---|---|
check_milter.pl | check_milter.pl |
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!
OPTIONS
--port (-p) Set the port number for the milter server
--host (-H) Set the host name of the milter server
--timeout (-t) Sets the timeout, defaults to 10 seconds.
--warning= (-w) Sets the warning period for the response time
--critical= (-c) Sets the critical period for the response time
--version (-V) Display current version and exit
--help (-h) Display help message and exit
--man Display man page and exit
To install:
1) add the following to your local-commands file (e.g.
/etc/nagios/conf.d/local-commands.cfg)
# 'check_postgrey' command definition
define command{
command_name check_milter
command_line $USER1$/check_milter.pl -w $ARG1$ -c $ARG2$
}
Note: If your milter server is anywhere other than localhost:8891 you will either need to modify the source or add the -p and/or -h arguments to specify where it can be contacted.
2) Copy check_milter.pl to where your NAGIOS plugins are installed on the host that will be checked and set appropriate access permissions: e.g.
cp check_postgrey.pl /usr/lib64/nagios/plugins/
or
cp check_postgrey.pl /usr/lib/nagios/plugins/
and
chmod +x /usr/lib64/nagios/plugins/check_milter.pl
or
chmod +x /usr/lib64/nagios/plugins/check_milter.pl
3) Add the following (adjust parameters to your own requirements) to each host specification that is to be checked:
define service{
use local-service
host_name
service_description Mail: filter policy server
check_command check_milter!3!9
}
--port (-p) Set the port number for the milter server
--host (-H) Set the host name of the milter server
--timeout (-t) Sets the timeout, defaults to 10 seconds.
--warning= (-w) Sets the warning period for the response time
--critical= (-c) Sets the critical period for the response time
--version (-V) Display current version and exit
--help (-h) Display help message and exit
--man Display man page and exit
To install:
1) add the following to your local-commands file (e.g.
/etc/nagios/conf.d/local-commands.cfg)
# 'check_postgrey' command definition
define command{
command_name check_milter
command_line $USER1$/check_milter.pl -w $ARG1$ -c $ARG2$
}
Note: If your milter server is anywhere other than localhost:8891 you will either need to modify the source or add the -p and/or -h arguments to specify where it can be contacted.
2) Copy check_milter.pl to where your NAGIOS plugins are installed on the host that will be checked and set appropriate access permissions: e.g.
cp check_postgrey.pl /usr/lib64/nagios/plugins/
or
cp check_postgrey.pl /usr/lib/nagios/plugins/
and
chmod +x /usr/lib64/nagios/plugins/check_milter.pl
or
chmod +x /usr/lib64/nagios/plugins/check_milter.pl
3) Add the following (adjust parameters to your own requirements) to each host specification that is to be checked:
define service{
use local-service
host_name
service_description Mail: filter policy server
check_command check_milter!3!9
}
Reviews (0)
Be the first to review this listing!