I have a RHEL5 server with the zenoss-plugins rpm installed, however it 
installed the zenplugin.py file in /usr/bin/ not /opt/zenoss/libexec, which is 
the default configured for zCommandPath in the web ui. I have set the 
zCommandPath for this host to /usr/bin in the zProperties, however when I run 
zencommand from the command line, it shows it is still attempting to run 
/opt/zenoss/libexec/zenplugin.py:


Code:
DEBUG:zen.SshClient:command /opt/zenoss/libexec/zenplugin.py disk / data: ''
DEBUG:zen.zencommand:Process zenplugin.py disk /  stopped (127), 0.807522 
elapsed
DEBUG:zen.zencommand:The result of "/opt/zenoss/libexec/zenplugin.py disk /" 
was ""
DEBUG:zen.zencommand:Sending event {'severity': 3, 'message': 'Cmd: 
/opt/zenoss/libexec/zenplugin.py disk / - Code: 127 - Msg: Command not found', 
'component': '', 'agent': 'zencommand', 'summary': 'Cmd: 
/opt/zenoss/libexec/zenplugin.py disk / - Code: 127 - Msg: Command not found', 
'manager': 'localhost', 'eventKey': 'disk', 'device': 'xxx.xxx.xxx.xxx', 
'eventClass': '/Status/Filesystem', 'performanceData': ''}




however, the check_http I had set up earlier is now no longer working because 
it is looking in /usr/bin:

 
Code:
DEBUG:zen.zencommand:The result of "/usr/bin/check_http -H xxx.xxx.xxx.xxx" was 
""
DEBUG:zen.zencommand:Sending event {'severity': 3, 'message': 'Cmd: 
/usr/bin/check_http -H xxx.xxx.xxx.xxx - Code: 126 - Msg: Command invoked 
cannot execute, permissions problem or command is not an executable', 
'component': '', 'agent': 'zencommand', 'summary': 'Cmd: /usr/bin/check_http -H 
xxx.xxx.xxx.xxx - Code: 126 - Msg: Command invoked cannot execute, permissions 
problem or command is not an executable', 'manager': 'localhost', 'eventKey': 
'root-webcheck', 'device': 'xxx.xxx.xxx.xxx', 'eventClass': '/Cmd/Fail', 
'performanceData': ''}



This seems to indicate that the zCommandPath for a specific host refers to the 
path on the zenoss server which plugins are executed from, not the path on the 
remote host for zenplugin.py, as is indicated in the documentation here: 
http://www.zenoss.com/community/docs/zenoss-guide/2.2.3/ch14s01.html#d0e5376

So ...WTF is going on here?




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=25495#25495

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to