Integration Nagios3 withServiceNow

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.
Alex_galych
Posts: 9
Joined: Wed Aug 02, 2017 3:01 am

Re: Integration Nagios3 withServiceNow

Post by Alex_galych »

Ok, I'll try.
One more thing:
A new record appears in mysql database when I add a new host to Nagios. Then on my ServiceNow instance creates new record too and all changes apply to this record.
I want to create a new event instead of updating existed one. How can I do this?
As I understand I suiold edit file sn_ticketer.pl. What part of script do I need to edit?
bolson

Re: Integration Nagios3 withServiceNow

Post by bolson »

Are you populating the argument variables $HOSTNAME$, $HOSTSTATE$, $SERVICESTATE$, $LONGDATETIME$, and $HOSTOUTPUT$ with actual data?
Alex_galych
Posts: 9
Joined: Wed Aug 02, 2017 3:01 am

Re: Integration Nagios3 withServiceNow

Post by Alex_galych »

They are not populating automatically now .
If I replace the argument variables to specific data, all display correct on my ServiceNow instance.
bolson

Re: Integration Nagios3 withServiceNow

Post by bolson »

I'm not sure I understand. Are you saying that everything is working as expected now?
Alex_galych
Posts: 9
Joined: Wed Aug 02, 2017 3:01 am

Re: Integration Nagios3 withServiceNow

Post by Alex_galych »

If $HOSTNAME$, $HOSTSTATE$, $SERVICESTATE$, $LONGDATETIME$ replace to the specific data.

But empty If I run like this:

Code: Select all

./sn_ticketer.pl --page="em_event.do" --host="$HOSTNAME$" --state="$HOSTSTATE$" --category="Nagios" --short_description="$HOSTNAME$ is $SERVICESTATE$" --description="Host: $HOSTNAME$\nState: $HOSTSTATE$\nTime: $LONGDATETIME$\nDescription: $HOSTOUTPUT$\n\n"
bolson

Re: Integration Nagios3 withServiceNow

Post by bolson »

In order for the script to work, the variables (either programmatically or at run-time need to be populated with actual data. Hostname, etc.
Locked