Notification script from the command line

Can we call the notification script like victorops directly from the command line to send a test message ?

Yes. You have to pass the “alert” information as environment variables starting with NOTIFY_. Have a look at the notification plugin script to figure out which variables it uses.

I ended up using this now.
cmk --notify --spoolfile FILE

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.