steve stoltz
2012-11-13 13:54:19 UTC
steve stoltz [http://community.zenoss.org/people/sstoltz] created the discussion
"Intergrating Nagios commands"
To view the discussion, visit: http://community.zenoss.org/message/69879#69879
--------------------------------------------------------------
I am trying to set up my nagios command with the zencommands and I have been able to hardcode the command using the specific host, but I want to use the TAILS ${here/manageIp} so I can create a generic template for all my devices. But when i run the command it seems the ${here/manageIp} is not being processed first before the script reads in the data, so the script reads and thinks -H ${here/manageIp} is the host name. Do I have the TAILS part wrong or am I missing something?
This works great:
/opt/zenoss/libexec/./check_disabled -db myhostname.com/username
but for some reason this command is not.
/opt/zenoss/libexec/./check_disabled -db -H ${here/manageIp}-u /username
Thanks for any help
Steve
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69879#69879]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Intergrating Nagios commands"
To view the discussion, visit: http://community.zenoss.org/message/69879#69879
--------------------------------------------------------------
I am trying to set up my nagios command with the zencommands and I have been able to hardcode the command using the specific host, but I want to use the TAILS ${here/manageIp} so I can create a generic template for all my devices. But when i run the command it seems the ${here/manageIp} is not being processed first before the script reads in the data, so the script reads and thinks -H ${here/manageIp} is the host name. Do I have the TAILS part wrong or am I missing something?
This works great:
/opt/zenoss/libexec/./check_disabled -db myhostname.com/username
but for some reason this command is not.
/opt/zenoss/libexec/./check_disabled -db -H ${here/manageIp}-u /username
Thanks for any help
Steve
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69879#69879]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]