Host not defined

Nate Hausrath hausrath.mailing.list at gmail.com
Tue Aug 17 17:45:07 CEST 2010


That was it.  Thank you.

I copied some of the config options from another template, which included the register 0.  I knew I was overlooking something!

-Nate

On Aug 17, 2010, at 11:23 AM, Breandan Dezendorf wrote:

> On Tue, Aug 17, 2010 at 11:09 AM, Nate Hausrath
> <hausrath.mailing.list at gmail.com> wrote:
>> This should be simple, but for some reason I can't get my nagios config to validate with a new server I want to monitor.  I am monitoring plenty of hosts, but this is the first one I've used the "check_http" command for.  I am following the examples found here:
>> 
>> http://nagios.sourceforge.net/docs/3_0/monitoring-publicservices.html
>> 
>> I am using Nagios Core 3.2.0.
>> 
>> The error message during validation is "Error: Host 'HGSec' specified in service 'HTTP' not defined anywhere!"
>> 
>> And here is my simple config.
>> 
>> define host {
>>        use                     generic-host
>>        host_name               HGSec
>>        alias                   HGSec
>>        address                 X.X.X.X
>>        notification_period             24x7
>>        notification_interval           30
>>        notification_options            d,r
>>        contact_groups                  admins
>>        register                        0
>> }
> 
> You never registered the host.  (register is set to '0')
> 
>> define service {
>>        use                     generic-service
>>        host_name               HGSec
>>        service_description     HTTP
>>        check_command           check_http
>> }
> 
> 
> -- 
> Breandan Dezendorf
> breandan at dezendorf.com
> bwdezend at gmail.com
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> 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


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
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