Not possible to send test notifications?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
bostonangus
Posts: 10
Joined: Tue Jun 30, 2015 2:17 pm

Not possible to send test notifications?

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Not possible to send test notifications?

Post 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.
Former Nagios employee
bostonangus
Posts: 10
Joined: Tue Jun 30, 2015 2:17 pm

Re: Not possible to send test notifications?

Post by bostonangus »

Perfect, thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Not possible to send test notifications?

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked