event handler is not working for me

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
alex.shane
Posts: 1
Joined: Wed Feb 01, 2017 2:55 pm

event handler is not working for me

Post by alex.shane »

I am running Nagios XI on CentOS 7 and trying to push my script to populate events to our web portal, here is what we use

curl --user test1:xxxx "https://crucible01.service-now.com/api/ ... e/em_event" --request POST --header "Accept:application/json" --header "Content-Type:application/json" --data "{\"source\":\"NagiosXI\",\"node\":\"$HOSTNAME\",\"type\":\"$SERVICEDESC\",\"severity\":\"$HOSTSTATEID\",\"description\":\"$HOSTOUTPUT\",\"event_class\":\"NagiosXI\",\"message_key\":\"NagiosXI_$SERVICEDESC_$HOSTNAME\"}"

it's not populating description, type, resource, Severity and alert. Also showing an error in state column. Let me know if I am doing anything wrong with the configurations or the script?

Thank,
Alex
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: event handler is not working for me

Post by avandemore »

Have you read through this document?

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Have you confirmed the handler is getting the vars?
Previous Nagios employee
Locked