alex0cy
2012-10-04 13:38:38 UTC
alex0cy [http://community.zenoss.org/people/alex0cy] created the discussion
"Re: Script Monitoring"
To view the discussion, visit: http://community.zenoss.org/message/68859#68859
--------------------------------------------------------------
I can see 2 solutions:
1. You shall create script on zenoss machine, which will ssh to remote server, run scripts there, check results in file, print message which will be shown in event console and exit with corresponding exit code (0: ok, 1: warning, 2: critical). This script shall be put in local 'command-type' template, attached to device.
2. You can trigger remote scripts by snmp requests (man snmpd.conf, check 'pass' parameter) and then query each script value by 'snmp-type' template. Events will be triggered by threshold. You will need to assign separate OID to each remote script.
Although second way looks more complicated it will give nice results and will follow zenoss ideology.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68859#68859]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Re: Script Monitoring"
To view the discussion, visit: http://community.zenoss.org/message/68859#68859
--------------------------------------------------------------
I can see 2 solutions:
1. You shall create script on zenoss machine, which will ssh to remote server, run scripts there, check results in file, print message which will be shown in event console and exit with corresponding exit code (0: ok, 1: warning, 2: critical). This script shall be put in local 'command-type' template, attached to device.
2. You can trigger remote scripts by snmp requests (man snmpd.conf, check 'pass' parameter) and then query each script value by 'snmp-type' template. Events will be triggered by threshold. You will need to assign separate OID to each remote script.
Although second way looks more complicated it will give nice results and will follow zenoss ideology.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/68859#68859]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]