Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glensc/monitoring-plugin-check_amavis
Nagios plugin to check amavisd-new daemon
https://github.com/glensc/monitoring-plugin-check_amavis
Last synced: about 2 months ago
JSON representation
Nagios plugin to check amavisd-new daemon
- Host: GitHub
- URL: https://github.com/glensc/monitoring-plugin-check_amavis
- Owner: glensc
- Created: 2014-03-28T14:14:21.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-07-10T12:54:37.000Z (over 7 years ago)
- Last Synced: 2024-10-14T11:38:49.929Z (3 months ago)
- Language: Perl
- Homepage: http://exchange.nagios.org/directory/Plugins/Anti-2DVirus/Amavis/check_amavis/details
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Nagios/Icinga plugin to check amavisd-new daemon
`check_amavis` checks if [amavisd-new][1] daemon is working and if its antivirus engine is working.
This check talks with amavisd-new daemon (default port is 10024) with SMTP protocol.
It tests if the daemon is up and if it's able to scan an email with a virus (EICAR test virus is sent).Please note that if `amavisd-new` is run on a different machine, you should enable the connection from nagios ip address (take a look at `amavisd.conf`).
This Perl script needs [GetOpt::Long][2], [MIME::Tools][3] and [Net::SMTP][4] to work.
Parameters:
- `--server` amavisd-new address (mandatory)
- `--port` amavisd-new port (default 10024)
- `--from` sender email address (mandatory)
- `--to` recipient address (if not present copied from `--from`)
- `--debug` useful for debugging (launch it at command line)Command configuration:
```
define command {
command_name check_amavis
command_line $USER1$/check_amavis.pl --server $HOSTADDRESS$ --from email_address --to email_address --port 10024
}
```where `email_address` is a valid email address handled by amavisd.
## Copyright
License: GPL v2
(c) 2011-2017 Elan Ruusamäe (maintainer from version 1.1 and upwards)
[1]: http://www.amavis.org/
[2]: http://perldoc.perl.org/Getopt/Long.html
[3]: http://search.cpan.org/perldoc?MIME::Tools
[4]: http://search.cpan.org/perldoc?Net::SMTP