<html><body>
<p><tt>Whit Blauvelt <whit+nagios@transpect.com> wrote on 03.06.2009 15:13:59:<br>
<br>
> Whit Blauvelt <whit+nagios@transpect.com> </tt><br>
<tt>> 03.06.2009 15:27</tt><br>
<tt>> <br>
> An</tt><br>
<tt>> <br>
> nagios-users@lists.sourceforge.net</tt><br>
<tt>> <br>
> Kopie</tt><br>
<tt>> <br>
> Thema</tt><br>
<tt>> <br>
> [Nagios-users] Please define "defined" in this context</tt><br>
<tt>> <br>
> Hi,<br>
> <br>
> Starting to set up Nagios, and puzzled at something that must be simple, but<br>
> the language is unclear.<br>
> <br>
> The example localhost.cfg has this section:<br>
> <br>
> define service{<br>
>         use                             local-service         ; Name<br>
> of service template to use<br>
>         host_name                       localhost<br>
>         service_description             HTTP<br>
>         check_command                   check_http<br>
>         notifications_enabled           0<br>
>         }<br>
> <br>
> I've changed two things in it: First, I've switched all the host_name's from<br>
> "localhost" to the real hostname. Second, since the http instance on the<br>
> system requires a login, I invoked ./check_http --help and learned:<br>
> <br>
>  -a, --authorization=AUTH_PAIR<br>
>     Username:password on sites with basic authentication<br>
> <br>
> So now I have <br>
> <br>
> define service{<br>
>         use                             local-service         ; Name<br>
> of service template to use<br>
>         host_name                       realhost<br>
>         service_description             HTTP<br>
>         check_command                   check_http --<br>
> authorization=httpuser:pass<br>
>         notifications_enabled           0<br>
>         }<br>
> <br>
> But that doesn't work:<br>
> <br>
> # /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg<br>
> ...<br>
> Error: Service check command 'check_http --<br>
> authorization=httpuser:pass' specified in service 'HTTP' for host <br>
> 'realhost' not defined anywhere!<br>
> <br>
> What does "defined" means in this context? What does "anywhere" mean? I'd<br>
> say that the command is well-defined, in that check_http is a standard<br>
> request, and it's being followed by one of the flags it defines in its help.<br>
> Plus, that overall action is being defined right in "localhost.cfg".<br>
> <br>
> In the context of Nagios "not defined" and "anywhere" must be terms of<br>
> art, rather than common English. How can a beginner learn what they mean in<br>
> Nagios-speak? What's the "where" to put the "definition" to make this simple<br>
> http login request work?<br>
> <br>
> Regards,<br>
> Whit<br>
You need to define the check_http command - in your command definition file....</tt><br>
<br>
<tt>Howard</tt><br>
 <br>
--------------------------<br>
VERTRAULICHKEIT: Diese Nachricht ist ausschließlich für denjenigen bestimmt, an<br>
den sie adressiert ist und kann vertrauliche Informationen enthalten. Falls Sie nicht <br>
der Empfänger dieser Nachricht sind, weisen wir Sie darauf hin, dass die <br>
unberechtigte Weitergabe oder Verwendung sowie das unberechtigte Verteilen oder <br>
Kopieren dieser Nachricht strikt untersagt sind. Falls Sie diese Nachricht irrtümlich <br>
erhalten haben, vernichten Sie sie bitte sofort.<br>
  <br>
CONFIDENTIALITY: This message is intended only for the use of the individuality or <br>
entity to which it is addressed and may contain information that is privileged, <br>
confidential and exempt from disclosure. If you are not the intended recipient you are <br>
notified that any dissemination, distribution, use or copying of this communication is <br>
strictly prohibited. If you received this message in error, please immediately destroy <br>
this message.<br>
--------------------------<br>
</body></html>