You may want to see my thread here:
http://community.zenoss.com/forums/viewtopic.php?p=19952#19952
Specifically near the end with putting the script in /opt/zenoss/libexec ...
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University



blocke wrote:
Hello all.  Zencommand on my system appears to be ignoring... well... commands.

I'm following this guide:

http://www.zenoss.com/community/docs/howtos/create-modify-nagios-templates

I'm attempting to add an external command as a datasource for a datapoint on a 
graph.  I have the command added as detailed in the above document and it is 
marked as being enabled.

Unfortunately zencommand seems to be ignoring it completely.  I've restarted zencommand 
several times and both it and running zencommand manually confirm it isn't even being 
"seen" by zcommand with:



Code:

[EMAIL PROTECTED] log]$ zencommand run -d X.X.X.X -v 10
DEBUG:zen.zencommand:run
DEBUG:zen.zencommand:Connecting to localhost
DEBUG:zen.zencommand:Logging in as admin
WARNING:zen.zencommand:Reconnected to ZenHub
DEBUG:zen.zencommand:setting up services EventService, CommandConfig
DEBUG:zen.zencommand:chaining getInitialServices with d2
DEBUG:zen.zencommand:callback after getting service EventService
DEBUG:zen.zencommand:callback after getting service CommandConfig
DEBUG:zen.zencommand:Calling connected.
DEBUG:zen.zencommand:connected
DEBUG:zen.zencommand:Sending event {'severity': 0, 'component': 'zencommand', 
'agent': 'zencommand', 'summary': 'started', 'manager': 'localhost', 'device': 
'XXXXXXX', 'eventClass': '/App/Start'}
DEBUG:zen.zencommand:Fetching config
DEBUG:zen.zencommand:Updated configCycleInterval config to 360
DEBUG:zen.zencommand:Loading classes ['Products.ZenModel.MinMaxThreshold']
INFO:zen.zencommand:---------- - schedule has 0 commands
DEBUG:zen.zencommand:Sending event {'severity': 3, 'component': 'zencommand', 
'agent': 'zencommand', 'summary': 'stopped', 'manager': 'localhost', 'device': 
'XXXXXXX', 'eventClass': '/App/Stop'}
DEBUG:zen.zencommand:Finished config fetch
INFO:zen.zencommand:---------- - schedule has 0 commands
DEBUG:zen.zencommand:removing service EventService
DEBUG:zen.zencommand:removing service CommandConfig
INFO:zen.zencommand:zencommand shutting down




Meanwhile zentestcommand finds it just fine:


Code:

[EMAIL PROTECTED] log]$ zentestcommand -d XXX.XXX.XXX.XXX 
--datasource=ccaUserCount
1432




Is the above document out of date?  Is there anything else I could do to 
diagnose the cause of this issue?

Thanks!




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

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

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



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to