![]() |
![]() |
Subject: | Can't POST data from Zenoss to other server |
Author: | [Not Specified] |
Posted: | 2016-03-17 14:56 |
I have a small script written in python, which is supposed to POST some data on a specific URL, The problem is:
- I am integrating this script in zenoss -> events (http://ip:port/zport/dmd/Events/evconsole) -> click on some event class -> settings -> transform(here I copy-paste my script)
When the events are triggered, the script is called, but no data it's POSTed to the other IP (a different server) even if the script is running correctly - I don't get any error messages. So, I guess there are some restrictions at the network layer and somehow the POSTed data isn't sent by Zenoss.
Could you please guys tell me what should I modify (perhaps a .conf file or hosts) or what should I do to be able to POST some data on other server
Subject: | instead of using a transform |
Author: | Andrew Kirch |
Posted: | 2016-03-21 08:53 |
instead of using a transform why not run your script in a COMMAND notification
Andrew Kirch
akirch@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
Subject: | Hello Andrew and thanks for |
Author: | [Not Specified] |
Posted: | 2016-03-21 13:33 |
Hello Andrew and thanks for your reply,
Can you please redirect me to some documentation on how can I achieve this Or maybe some stepts that I need to follow to do it
Thanks ^^
Subject: | http://wiki.zenoss.org/Notify |
Author: | Andrew Kirch |
Posted: | 2016-03-21 13:51 |
http://wiki.zenoss.org/Notify_Me_of_Important_Events#Command
Andrew Kirch
akirch@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
Subject: | Thanks very much. I'll look |
Author: | [Not Specified] |
Posted: | 2016-03-21 14:33 |
Thanks very much. I'll look into that. More, another question:
- can you please tell me (if possible) what is the default password for zenoss user When I'm trying to:
su - zenoss
it succesfully logs in as zenoss user but I just get access denied for every command I run. Couldn't find the default password anywhere
Subject: | You can set that password as |
Author: | Andrew Kirch |
Posted: | 2016-03-21 14:42 |
You canset that password as root.
Andrew Kirch
akirch@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
Subject: | You're right. I don't know |
Author: | [Not Specified] |
Posted: | 2016-03-21 15:16 |
You're right. I don't know why this didn't came to my mind. It worked.
How can I call a python script from the Command I just set up the triggers and also added in the command field(in Edit Notification) the following:
/root/script.py.
Did I do something wrong
PS: I really appreciate your help and sorry for wasting your time.
Subject: | MrGrj, |
Author: | [Not Specified] |
Posted: | 2016-04-21 03:33 |
MrGrj,
The script will need to be in a path accessible by Zenoss. Are you running Zenoss 4 or 5
ZenMaster Shane William Scott (Hackman238)
CTO
GoVanguard Inc.
sscott@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
< |
Previous Zenoss Graphs Showing Incorrect Data |
Next Zenoss 5 - modifying Zenoss core code - what containers and how to persist? |
> |