Marc Powell wrote:
> On Jan 15, 2010, at 8:15 AM, Assaf Flatto wrote:
>
>   
>> Hello
>> I have come up with an issue I have not encountered in previous versions 
>> of nagios ( the issue is on 3.20 from source on SLES 10.2 64 bits ).
>>
>> I am trying to map a parent child relationships that match my physical 
>> network ( host connected to switch), and I am getting this error  SWITCH 
>> is not a valid parent for host 'HOST'!
>>     
>
> hm. The code bit that generates this error is --
>
>                 /* check all parent parent host */
>                 
> for(temp_hostsmember=temp_host->parent_hosts;temp_hostsmember!=NULL;temp_hostsmember=temp_hostsmember->next){
>
>                         
> if((temp_host2=find_host(temp_hostsmember->host_name))==NULL){
>                                 logit(NSLOG_VERIFICATION_ERROR,TRUE,"Error: 
> '%s' is not a valid parent for host 
> '%s'!",temp_hostsmember->host_name,temp_host->name);
>
>
> I read this to indicate that the parents name you've specified (SWITCH) 
> doesn't have a valid host{} definition (i.e. doesn't exist). I could very 
> easily be reading this wrong though.
>
>   
>> Both HOST and SWITCH are on the same logical network ( 10.0.8.x ) , and 
>> from the manual it implies that since they are on the same subnet the 
>> definition i with to present is no longer valid in nagios (although it 
>> used to be in older versions).
>>     
>
> Not sure what you're reading here (reference?) but Nagios has no 
> understanding of addressing or subnets. It wouldn't know or care if they were 
> on the same subnet. It must be something else.
>
> --
> Marc
Sorry , I was an idiot . I move the directory that  contained my network 
objects to a new location and forgot to update the nagios.cfg .

Sorry for this .

Assaf


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to