![]() |
![]() |
Subject: | Syslog need to trigger email and close automatically |
Author: | [Not Specified] |
Posted: | 2015-08-13 03:52 |
Setup log monitoring on server and send the syslog to Zenoss. How can I trigger email notification in Zenoss after receiving this syslog and then auto close the event after sending email notification
Shall I create two notification , one is for email and another is for command Can the command notification (to close the event) work after email notification how to write this command content so that event can auto close after sending email Thanks
Subject: | Hi, Anyone knows? For the |
Author: | [Not Specified] |
Posted: | 2015-08-13 20:07 |
Hi, Anyone knows For the Zenoss event which will not be auto clear, how to close this event after trigger email I check the command in notification, seems the command in content can only get the event value, cannot modify the event and change the status to close after sending email.
Subject: | Anyone knows how to auto |
Author: | [Not Specified] |
Posted: | 2015-08-20 01:17 |
Anyone knows how to auto close an event after trigger email notification Thanks
Subject: | Anyone knows how to auto |
Author: | [Not Specified] |
Posted: | 2015-08-21 03:18 |
Anyone knows how to auto close an event after trigger email notification Thanks
Subject: | the easiest way would be to |
Author: | Andrew Kirch |
Posted: | 2015-08-24 13:52 |
the easiest way would be to use a crontab to send a 'zensendevent' to close it on receiving an e-mail. (Add a system account, and have the crontab fire, read the e-mail, and close hte event)
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: | Ah -- even better than an |
Author: | [Not Specified] |
Posted: | 2015-08-24 13:58 |
Ah -- even better than an email parse.... You could set up a second notification, like a companion to the email notification - this time a COMMAND notification using the same trigger-- that pauses a second or two and then does the event close. If you can get the event uuid, that's all you'd need.
Subject: | Hi thanks. Follow the |
Author: | [Not Specified] |
Posted: | 2016-03-09 22:24 |
Hi thanks. Follow the suggestion, I am trying to add below command in .sh file and then use command notification in zenoss to run .sh file to close the event.But I saw below error in zenactiond.
Unauthorized: You are not allowed to access 'dmd' in this context
curl -u "admin:zenoss" -X POST -H "Content-Type:application/json" -d '{"action":"EventsRouter","method":"close","data":[{"evids":[$ZenEventID],"params":"{\"severity\":[5,4,3,2,1,0],\"eventState\":[0,1,2]}","limit":1}],"type":"rpc","tid":1}' "zenossserver:8080/zport/dmd/evconsole_router"
Same error if I manually run in terminal in linux server.
curl -u "admin:zenoss" -X POST -H "Content-Type:application/json" -d '{"action":"EventsRouter","method":"close","data":[{"evids":["005056ae-25fd-9290-11e5-e6700dac9dab"],"params":"{\"severity\":[5,4,3,2,1,0],\"eventState\":[0,1,2]}","limit":1}],"type":"rpc","tid":1}' "zenossserver:8080/zport/dmd/evconsole_router"
Subject: | FYI, I can run it on my test |
Author: | [Not Specified] |
Posted: | 2016-03-09 22:27 |
FYI, I can run it on my test server,don't know what's wrong in production server.
Subject: | Hi Support, |
Author: | [Not Specified] |
Posted: | 2016-03-17 22:43 |
Hi Support,
Any idea why I cannot run the curl command Thanks
Subject: | Hi Support, |
Author: | [Not Specified] |
Posted: | 2016-03-21 01:40 |
Hi Support,
Would you please advise why I cannot run the curl command to close the event Thanks
< |
Previous How configure disk space thershold |
Next Can't Ping or SNMP to ESXi |
> |