On Apr 30, 2009, at 11:12 AM, Ed Donahue wrote: > Is it possible to trigger an alert by sending an email to nagios > (passive check)?
Possible? Yes. > I'm guessing it isn't a straight forward as that, just wonder if it > is doable, > and any links to examples would be cool too. I'm not aware of anyone actually doing it but I would approach it from one of these methods -- - use procmail/maildrop to pipe the incoming message through a script that parses the body format you've chosen and submits an appropriate PROCESS_SERVICE_CHECK_RESULT external command. http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=114 . I expect this could be a pretty straightforward perl script. - write a script that parses the mailspool or checks the POP/IMAP account and submits an appropriate PROCESS_SERVICE_CHECK_RESULT external command. Of the two, the first seems easiest/best... -- Marc ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users@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