Discussion:
Intergrating Nagios commands
steve stoltz
2012-11-13 13:54:19 UTC
Permalink
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]
jmp242
2012-11-13 14:02:15 UTC
Permalink
jmp242 [http://community.zenoss.org/people/jmp242] created the discussion

"Re: Intergrating Nagios commands"

To view the discussion, visit: http://community.zenoss.org/message/69849#69849

--------------------------------------------------------------
Try ${dev/manageIp}

--
James Pulver
ZCA Member
LEPP Computer Group
Cornell University
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69849#69849]

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]
steve stoltz
2012-11-13 14:19:22 UTC
Permalink
steve stoltz [http://community.zenoss.org/people/sstoltz] created the discussion

"Re: Intergrating Nagios commands"

To view the discussion, visit: http://community.zenoss.org/message/69880#69880

--------------------------------------------------------------
Thanks that worked great,  Is there one to get the host name for the device?  and where can I get a list of these commands options?
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69880#69880]

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]
jmp242
2012-11-13 14:33:44 UTC
Permalink
jmp242 [http://community.zenoss.org/people/jmp242] created the discussion

"Re: Intergrating Nagios commands"

To view the discussion, visit: http://community.zenoss.org/message/69897#69897

--------------------------------------------------------------
Google is your friend:
http://community.zenoss.org/docs/DOC-3768 http://community.zenoss.org/docs/DOC-3768

--
James Pulver
ZCA Member
LEPP Computer Group
Cornell University
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69897#69897]

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]
Loading...