Passive checks via Exim
Matt Johnson
johnsonmlw at yahoo.com
Sun Jan 16 21:50:02 CET 2005
--- Horvath Tamas <zsitfa at axelero.hu> wrote:
> Hi List Members!
>
> I run Nagios 1.2 on Debian 3.1. It seems to me, that
> I'll have some type of
> checks which can send their results via E-Mail. My
> MTA is Exim!
Yes, I did this last week with some success. Go into
/etc/exim4/conf.d
My config file is split into, so I go into the /router
directory. Find 400-exim4-config_system_aliases file
and uncomment "user = list" and "group = mail". Also
uncomment pipe_transport = address_pipe
Now go into /etc/aliases and put a nagios alias to
pipe mail to nagios to a command.
You can pipe to the command:
nagios |
/usr/lib/nagios/plugins/eventhandlers/submit_check_result
which expects arguments after the command (the host,
service, code "0" etc.
It's all in the docs for passive checks, freshness
checks and volatile services.
I had to chmod 777 /var/run/nagios/nagios.cmd every
time I restarted nagios to get this to work.
All the best. Ask more questions if needed.
--
Matt
___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list