There is still a small problem though... With that method, every service with obsess_over_service enabled will execute the command, and every command defined as ocsp_command in nagios.cfg will be executed by services enabling obsess_over_service :s.
Well... don't know if ther is a better way and it works so I keep it for now... ----- Mail Original ----- De: "Marc Powell" <m...@ena.com> À: "Nagios Users" <nagios-users@lists.sourceforge.net> Envoyé: Jeudi 12 Février 2009 16:51:14 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [Nagios-users] Notification on OK-state On Feb 12, 2009, at 8:45 AM, sri.lu...@free.fr wrote: > Thank you very much for the lead. It helped me a lot and. > > I followed your advice and I used the ocsp_command directive from > the nagios.cfg with a script printing into the file nagios.cmd the > external command SEND_CUSTOM_SVC_NOTIFICATION and it works fine now. ... and that is an interesting trick as well ;) I wouldn't have thought to send the notification that way. -- Marc ------------------------------------------------------------------------------ _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ 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