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?
Integration Nagios3 withServiceNow
-
bolson
Re: Integration Nagios3 withServiceNow
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
They are not populating automatically now .
If I replace the argument variables to specific data, all display correct on my ServiceNow instance.
If I replace the argument variables to specific data, all display correct on my ServiceNow instance.
-
bolson
Re: Integration Nagios3 withServiceNow
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
If $HOSTNAME$, $HOSTSTATE$, $SERVICESTATE$, $LONGDATETIME$ replace to the specific data.
But empty If I run like this:
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
In order for the script to work, the variables (either programmatically or at run-time need to be populated with actual data. Hostname, etc.