The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Setup Event Management

stryker129
Mega Guru

I am a newbie in Event management and I can't understand how it actually works.

I have a Linux-server and I'm trying to set up a monitoring of some services and availability of host.

From my understanding: I need to create a new "Connector Definition" which include some JS or Groovy script. Then I need to create     "Connector Instance" which contains information about my host.

Questions:

- How does the script has to look like for my purpose? Are there any differences in scripts if I use Linux and Windows servers?

- Which attributes I have to import on "Connector Parameters"? Where can I get it from?

How/from can I fetch information of my host availability using "ping" command and create alert in case of "host is down"?

Thanks

8 REPLIES 8

Thanks, I'll try to use it.



I have some questions:


When I was running python script - it was executing but didn't display any results. How can I check result/response in terminal or on my Service Now instance?


Is there some video or manual guide (not Servicenow wiki) on step-by-step setup implementation of collecting events?


adar
ServiceNow Employee
ServiceNow Employee

Hi Ivan,



I suggest you review the various options referenced on this page to get a better understanding: Event collection configuration



Specifically regarding the Python script, if you want to see the response locate the following line in the code:


f.read()



And replace with these two lines:


resp = f.read()


print resp


adar
ServiceNow Employee
ServiceNow Employee

There will be a connector for NagiosXi in Jakarta. It will be backward compatible so that the code will run as-is on earlier versions. You can open a ticket with ServiceNow Support to possibly get early access specifically for this script.


For non XI version of Nagios, you can use SNMP (this will work for Xi as well, if SNMP is a good option for you). See here Event collection for SNMP traps for configuring SN to listen for SNMP events.


jwemerso
Kilo Explorer

Zabbix is easy. There's a built-in connector to Zabbix that leverages your MID Server (if you've got one), but that's only in Istanbul.



The other servers have options, but the easiest would be to create a web service around your monitoring environment that can flag the events and alerts into ServiceNow through JSON. Here's a KB article on how that could look; http://wiki.servicenow.com/index.php?title=Integrating_External_Events_with_Event_Management#gsc.tab...