Hi has anyone connected Nagios Curl calls to a freshservices ticket system ?
I have the curl call ready and I have tested it from a api tester and the nagios server itself.
That works , alert is reported into freshservice.
But how do I get Nagios to use the command ?
created contact and contact group and added this contact to use for alerting.
created a command for host and service to be used
curl --location --request POST 'https://nseu.euc-alerts.freshservice.co ... e66/alerts' \ --header 'Content-Type: application/json' \ --header 'Authorization: auth-key eyJhbG_keymaterial_dFp0' \ --data-raw '{ "metric_name": "Availability", "hostname": "$HOSTNAME$", "message": "$NOTIFICATIONTYPE$ - $HOSTNAME$ is $HOSTSTATE$", "ip_address": "$HOSTADDRESS$", "severity": "$HOSTSTATE$", "event_id": "$HOSTEVENTID$", "output": "$HOSTOUTPUT$", "perf_data": "$HOSTPERFDATA$", "action_url": "$HOSTACTIONURL$", "check_command": "$HOSTCHECKCOMMAND$", "problem_id": "$HOSTPROBLEMID$" , "long_datetime": "$LONGDATETIME$", "notification_comment": "$NOTIFICATIONCOMMENT$", "notification_type": "$NOTIFICATIONTYPE$", "contact_name": "$CONTACTNAME$" } '
Both are working.
the doc from feshservice:
https://support.freshservice.com/suppor ... management
How do I get Nagios to fill in the variables and have it sent to freshservice?
thanks
Anyone have Nagios sent curl status reports > Freshservice?
Re: Anyone have Nagios sent curl status reports > Freshservi
I see that you opened a ticket for this as well so I will close the post and you can continue to work on it in the ticket.
Be sure to check out our Knowledgebase for helpful articles and solutions!