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
event handler is not working for me
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: event handler is not working for me
Have you read through this document?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Have you confirmed the handler is getting the vars?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Have you confirmed the handler is getting the vars?
Previous Nagios employee