Antwort: Please define "defined" in this context

Howard Allison howard.allison at pva.sozvers.at
Wed Jun 3 15:45:53 CEST 2009




Whit Blauvelt <whit+nagios at transpect.com> wrote on 03.06.2009 15:13:59:

> Whit Blauvelt <whit+nagios at transpect.com>
> 03.06.2009 15:27
>
> An
>
> nagios-users at lists.sourceforge.net
>
> Kopie
>
> Thema
>
> [Nagios-users] Please define "defined" in this context
>
> Hi,
>
> Starting to set up Nagios, and puzzled at something that must be simple,
but
> the language is unclear.
>
> The example localhost.cfg has this section:
>
> define service{
>         use                             local-service         ; Name
> of service template to use
>         host_name                       localhost
>         service_description             HTTP
>         check_command                   check_http
>         notifications_enabled           0
>         }
>
> I've changed two things in it: First, I've switched all the host_name's
from
> "localhost" to the real hostname. Second, since the http instance on the
> system requires a login, I invoked ./check_http --help and learned:
>
>  -a, --authorization=AUTH_PAIR
>     Username:password on sites with basic authentication
>
> So now I have
>
> define service{
>         use                             local-service         ; Name
> of service template to use
>         host_name                       realhost
>         service_description             HTTP
>         check_command                   check_http --
> authorization=httpuser:pass
>         notifications_enabled           0
>         }
>
> But that doesn't work:
>
> # /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
> ...
> Error: Service check command 'check_http --
> authorization=httpuser:pass' specified in service 'HTTP' for host
> 'realhost' not defined anywhere!
>
> What does "defined" means in this context? What does "anywhere" mean? I'd
> say that the command is well-defined, in that check_http is a standard
> request, and it's being followed by one of the flags it defines in its
help.
> Plus, that overall action is being defined right in "localhost.cfg".
>
> In the context of Nagios "not defined" and "anywhere" must be terms of
> art, rather than common English. How can a beginner learn what they mean
in
> Nagios-speak? What's the "where" to put the "definition" to make this
simple
> http login request work?
>
> Regards,
> Whit
You need to define the check_http command - in your command definition
file....

Howard

--------------------------
VERTRAULICHKEIT: Diese Nachricht ist ausschließlich für denjenigen
bestimmt, an
den sie adressiert ist und kann vertrauliche Informationen enthalten. Falls
Sie nicht
der Empfänger dieser Nachricht sind, weisen wir Sie darauf hin, dass die
unberechtigte Weitergabe oder Verwendung sowie das unberechtigte Verteilen
oder
Kopieren dieser Nachricht strikt untersagt sind. Falls Sie diese Nachricht
irrtümlich
erhalten haben, vernichten Sie sie bitte sofort.

CONFIDENTIALITY: This message is intended only for the use of the
individuality or
entity to which it is addressed and may contain information that is
privileged,
confidential and exempt from disclosure. If you are not the intended
recipient you are
notified that any dissemination, distribution, use or copying of this
communication is
strictly prohibited. If you received this message in error, please
immediately destroy
this message.
--------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090603/43171711/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
-------------- next part --------------
_______________________________________________
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