Ok... I dug up the mechanism that Erik used to expand commands. You can
use
dev - the device object
devname - the name of the device
compname - the component name
zNagiosPath - the setting of Z-Property "zNagiosPath" as inherited
by this device
now: the current time as a DateTime object
The template is expanded using TALES, so you can do things like:
check_mailq $devname -w 10 -c 20
Or,
check_ping -H ${dev/manageIp} -w 1,1% -c 1,10%
-Eric
Gary T. Giesen wrote:
Now that we have the new Nagios plugin support, are there any
variables we can use in the host template? Right now I've got a couple
devices setup to use the plugins at the device level, but in order to
define plugins at a higher level, we need the ability to use variables
to specify things like the machine's IP (Nagios provides
$HOSTADDRESS$). Does zenoss have such a facility?
Gary
_______________________________________________
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