Cannot view trends
Hendrik Bäcker
andurin at process-zero.de
Sat Mar 15 15:53:52 CET 2008
Hi List,
Albrecht Dreß schrieb:
> 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.
>
>
I'm able to reproduce this. Even with the "default" minimal config the
'localhost' couldn't be found.
In "find_host()" the hostnames are already o, but the next call
"skiplist_find_first()" in objects.c line 2754 results in "NULL".
Interesting:
Other CGIs that are calling "find_host()" are running quiet fine.
I don't think that this is a problem in find_host() or
skiplist_find_first() but calling the find_host() from trends.c looks
like the same as in avail.c for example.
Actual I'm a little bit confused and wouldn't be scared if the 'error'
lies right to my feets.
Regards,
Hendrik
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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