TECHZEN Zenoss User Community ARCHIVE  

Can zensendevent be used from remote server

Subject: Can zensendevent be used from remote server
Author: [Not Specified]
Posted: 2015-03-27 04:41

Hi Experts,

I undertsand we can create alerts using zensendevent on commandline as zenoss user on zenoss RM. Can we use zensendevent script to to be called remotely from a windows server. I understand we can do SSH from a remote box to zenoss server and call the script. But can we achive this from a windows server.

Also by placing this zensendevent script on windows server can we call the script locally and generate the alerts in zenoss. Please advise.

Regards,
Gowrish



Subject: Its just a python script that
Author: Nick Muir
Posted: 2015-03-27 05:13

Its just a python script that does XML-RPC. If you can install python on windows and have the required libraries it should work.

The script includes the following:

os
socket
xmlrpclib
optparse

You could also 'compile' the script into a self contained exe using something like py2exe.

http://sourceforge.net/projects/py2exe/

Nick



Subject: Hi Nick,
Author: [Not Specified]
Posted: 2015-03-27 05:18

Hi Nick,

Thank you for your response, But when we call the script from a windows server how we can pass the zenoss resource managers details so that it will create events in zenoss RM.

Other than python libraries, does it require anything else to call the script.



Subject: It has a number of command
Author: Nick Muir
Posted: 2015-03-27 06:31

It has a number of command line arguments. I use the folllowing:

zensendevent -d -p -k -s --server --auth=:



< Previous
Clearing Interface Data
  Next
Zenoss Core 5 - Google Maps no longer plotting locations for devices
>