Cannot view trends

Ethan Galstad nagios at nagios.org
Mon Mar 31 21:10:01 CEST 2008


Hendrik BŠäcker wrote:
> Hi List,
> 
> I've spent some time with the gdb too.
>> Running trends.cgi in gdb, it apparently fails at this point:
>>
>> <snip>
>> ~                 printf("</table>\n");
>> ~                 }
>>
>> #ifndef DEBUG
>> ~         /* check authorization... */
>> ~         if(display_type==DISPLAY_HOST_TRENDS){
>> ~                 temp_host=find_host(host_name);  // fail here!!!
>> <snip>
>>
>> because the call to find_host() returns NULL.  Again, running the other scripts
>> from the command line, with the same host entry, *does* work fine.
>>   
> That's true. find_host() returns NULL cause skiplist_find_first() 
> returns NULL behind.
> 
> I am not familar with the new skiplist logic, so perhaps someone else 
> can make a review of that gdb run.
>[snip]



I think I tracked down the problem.  A fix has been posted to CVS - I'll
make a new 3.0.1 release tomorrow if the patch works for people.


Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web:   www.nagios.org

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list