Hi, I want to run a command every minute. This command will run a particular executable; basically it's entirely custom (I have no control over the executable).
My strategy is to wrap a shell command around this executable. I want Zenoss to run my shell command, but I can't get it to work. This command is not related to any of our devices, per se, so I went into Zenoss version 2.2.3-30, and created a new device called "Scripter". That device is of class /Scripter. There is no IP associated with it, and I told it not to use SNMP when I created it. My command name is /usr/local/bin/checkml. I went to my MainViews->Device List-> and clicked on Scripter. Then I went to More->zProperties. I changed my zCommandPath to /usr/local/bin/checkml. I changed my zCommandSearchPath to checkml. Then I went to my Performance Templates, and added a template called "MLink". I add a Data Source of name MLink and type COMMAND. In the Command Template I give the full path of my command. Any attempt to test my command fails with "Executing command against Scripter /bin/sh: /usr/local/bin/checkml/: Not a directory DONE in 0 seconds" Somehow my Performance Template ends up with a Definition Path of /Devices/Scripter/devices/Scripter (I don't know where that came from). Anyway, I'm lost. I have an error code in my email: "Cmd: /usr/local/bin/checkml/ - Code: 126 - Msg: Command invoked cannot execute, permissions problem or command is not an executable Event Detail:..." I wonder why it's trying to execute my command as a directory (it installs a trailing slash)? Can anyone help? I am completely befuddled as to how I get Zenoss to run a command every minute for us... Thanks. -the Pupp -------------------- m2f -------------------- Read this topic online here: http://forums.zenoss.com/viewtopic.php?p=27064#27064 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
