Tried passing script in as this..

/opt/zenoss/libexec/check_mysql_query -q 'select at_status from at_servers 
where at_server_id=1' -H ${devname} -d at -u at -p at |tail -1|awk '{print $10}'
2.000000

However interestingly enough the change by itself didn't got synced, so i have 
reseted the bindings to this template and then recreated a new template.
Now zenoss cannot find anything new for a device in question (zenos run -d XXX 
-v10 says schedule has 0 commands).

I've taught maybe this is a bug and due to the same name of the new template as 
the old one, so I have created another one, for a different device  but this 
one gives me no results either ..


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 {'manager': 'localhost', 'severity': 0, 
'device': 'it01', 'eventClass': '/App/Start', 'component': 'zencommand', 
'agent': 'zencommand', 'summary': 'started'}
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 {'manager': 'localhost', 'severity': 3, 
'device': 'backup01', 'eventClass': '/App/Stop', 'component': 'zencommand', 
'agent': 'zencommand', 'summary': 'stopped'}
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


my Event Class for this data point is /Cmd/Fail
Shoudl it be something else in order for zencommand to discover it?




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

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

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



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

Reply via email to