![]() |
![]() |
Subject: | Start Monitoring script |
Author: | [Not Specified] |
Posted: | 2016-09-27 04:14 |
Hi,
We have several perl monitoring scripts. Is it possible to start the scripts on specific hosts using ZenOSS
Is it also possible to create an event using a specifc command in the script
thx!
kr
Sren
Subject: | You can run the scripts |
Author: | Jane Curry |
Posted: | 2016-09-28 14:31 |
You can run the scripts through a COMMAND template, ensuring you tick the "Use ssh" button. You would obviously need to setup ssh config properties of username and password and/or key file. In the command template, you specify what event should be generated.
If your event needs to be more complex (eg. based on various outcomes of the script) then you may need an event transform in addition to process different options.
You might look at the ZenPack Developers' Guide, chapter 12.3.2 for guidance - https://github.com/ZenossDevGuide/DevGuide
Cheers,
Jane
Email: jane.curry@skills-1st.co.uk Web: https://www.skills-1st.co.uk
Subject: | Hi Jane, |
Author: | [Not Specified] |
Posted: | 2016-09-29 00:37 |
Hi Jane,
thanks for the answer! Is it also possible to create an event in the event browser with a specific command I have read in the admin guide that is possible from the localhost for test cases but is it also possible from other servers
kr
Sren
Subject: | Yup - look at zensendevent |
Author: | Jane Curry |
Posted: | 2016-10-11 12:47 |
Yup - look at zensendevent (zenzendevent --help) for generating test events from the Zenoss server.
The other option would be to use the JSON API which will allow you to generate an event from any system - have a look here -https://gist.github.com/jcurry/204f81119cd56013ac98 for an example.
Cheers,
Jane
Email: jane.curry@skills-1st.co.uk Web: https://www.skills-1st.co.uk
< |
Previous Linux Monitor Package |
Next Localhost heartbeat failure |
> |