Page 1 of 1

Not possible to send test notifications?

Posted: Tue Jun 30, 2015 2:56 pm
by bostonangus
I'm looking for a straight forward way to send test notifications.

I'd like to do this without having to write a custom check/test, and without having to purposely trigger a real problem to force the notification.

Is there a way of doing this?

Thanks in advance!

Re: Not possible to send test notifications?

Posted: Tue Jun 30, 2015 2:58 pm
by tmcdonald
Copy the command_line field from your notification command, replace all the appropriate macros by hand, and run the command as the nagios user.

Re: Not possible to send test notifications?

Posted: Tue Jun 30, 2015 3:08 pm
by bostonangus
Perfect, thanks!

Re: Not possible to send test notifications?

Posted: Tue Jun 30, 2015 3:14 pm
by tmcdonald
I'll be closing this thread now, but feel free to open another if you need anything in the future!