So after some digging around the forums, I came across this post: 
http://community.zenoss.com/forums/viewtopic.php?t=1839. I used the command (as 
the zenoss user):


Code:
zencommand run -d nms.dandd.com -v 10



and got:


Code:
DEBUG:zen.zencommand:Fetching config
DEBUG:zen.zencommand:Updated configCycleInterval config to 30
DEBUG:zen.zencommand:Finished config fetch
DEBUG:zen.zencommand:running '/usr/share/zenoss-plugins/check_pathwrite 
--log=/tmp/write.log --path=/tmp/foo'
DEBUG:zen.zencommand:cmd line: '/bin/sh -c exec 
/usr/share/zenoss-plugins/check_pathwrite --log=/tmp/write.log --path=/tmp/foo'
DEBUG:zen.zencommand:Process check_pathwrite --log=/tmp/write.log 
--path=/tmp/foo  started
DEBUG:zen.Events:Found device=nms.dandd.com
DEBUG:zen.Events:EventClassInst=Start
DEBUG:zen.Events:update status set clearid = '0a584be2355811a2dfffffff' where 
device='nms.dandd.com' and component='zencommand' and eventKey='' and 
(eventClass='/App/Stop' or eventClass='/App/Start'): --> 1
DEBUG:zen.Events:insert into log (evid, userName, text) select evid, "admin", 
"auto cleared" from status where clearid = "0a584be2355811a2dfffffff": --> 1
DEBUG:zen.Events:insert into history set Location='/DD/Server 
Room',prodState=1000,firstTime=1179950636.772,severity=0,component='zencommand',DeviceGroups='|',agent='zencommand',summary='started',dedupid='nms.dandd.com|zencommand|/App/Start||0|started',manager='nms.dandd.com',DeviceClass='/Server/Linux/Fedora',device='nms.dandd.com',eventClass='/App/Start',lastTime=1179950636.772,Systems='|',message='started',eventKey='',deletedTime=null,evid='0a584be2355811a2dfffffff':
 --> 1
DEBUG:zen.Events:DELETE FROM status WHERE clearid IS NOT NULL: --> 1
DEBUG:zen.zencommand:Received exit code: 0
DEBUG:zen.zencommand:Command: '/bin/sh -c exec 
/usr/share/zenoss-plugins/check_pathwrite --log=/tmp/write.log --path=/tmp/foo'
DEBUG:zen.zencommand:Output: "PATH OK: The path '/tmp/foo/' is writable.\n"
DEBUG:zen.zencommand:Process check_pathwrite --log=/tmp/write.log 
--path=/tmp/foo  stopped (0), 1.674335 elapsed
DEBUG:zen.zencommand:The result of "/usr/share/zenoss-plugins/check_pathwrite 
--log=/tmp/write.log --path=/tmp/foo" was "PATH OK: The path '/tmp/foo/' is 
writable."
DEBUG:zen.Events:Found device=nms.dandd.com
DEBUG:zen.Events:EventClassInst=Stop
DEBUG:zen.Events:insert into status set Location='/DD/Server 
Room',prodState=1000,firstTime=1179950638.400,severity=3,component='zencommand',DeviceGroups='|',agent='zencommand',summary='stopped',dedupid='nms.dandd.com|zencommand|/App/Stop||3|stopped',manager='nms.dandd.com',DeviceClass='/Server/Linux/Fedora',device='nms.dandd.com',eventClass='/App/Stop',lastTime=1179950638.400,Systems='|',message='stopped',eventKey='',evid='0a584be2355811a2effffffe'
 on duplicate key update 
prodState=1000,summary='stopped',count=count+1,lastTime=1179950638.400: --> 1
DEBUG:zen.Events:DELETE FROM status WHERE clearid IS NOT NULL: --> 0




(I should mention that I changed the command template a little bit so the text 
in the output above doesn't exactly match the command template I posted 
previously).

After running the test command, I did indeed see output in my log file. But I 
never see any regular output indicating zenoss is running this command 
automatically at my specified interval. Why not?

-Tab

------------------------
 Tab Bennedum




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

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

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



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

Reply via email to