On-Demand Macros
Hari Sekhon
harisekhon at gmail.com
Fri Jul 28 12:24:42 CEST 2006
Mika Borner wrote:
> Hi
>
> Can somebody explain me the on-demand macros? I just don't get it after
> RTFMing.
>
> I have a service check which is run on host1. The service itself is
> runs on host2. How can I run the check, in a way that it does not use to
> hostname defined in the service description?
>
> How do I have to define the service?
>
> Kind regards
> Mika
>
>
>
>
> -------------------------------------------------------------------------
> This message is intended for the addressee only and may
> contain confidential or privileged information. If you
> are not the intended receiver, any disclosure, copying
> to any person or any action taken or omitted to be taken
> in reliance on this e-mail, is prohibited and may be un-
> lawful. You must therefore delete this e-mail.
> Internet communications may not be secure or error-free
> and may contain viruses. They may be subject to possible
> data corruption, accidental or on purpose. This e-mail is
> not and should not be construed as an offer or the
> solicitation of an offer to purchase or subscribe or sell
> or redeem any investments.
> -------------------------------------------------------------------------
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
please clarify, the nagios is running on host 1 and the service is on
host 2. The definitions are pretty straight forward, don't be shy to
read all the docs through 3-4 times to make sure you understand.
define command{
command name SOMENAMEGOESHERE
command_line path/to/plugin -o -p -t -i -o -n -s -H 192.168.1.50
}
if in the options you put -H $HOSTADDRESS$ then it uses ip of the host
name from the service description (which is defined in the host {}
definition for that name), otherwise you could put the ip as shown above.
re-read all the docs over and over until you get it, sometimes I have to
do that too...
-h
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list