Cannot view trends
Joerg Linge
pitchfork at ederdrom.de
Sat Mar 15 10:06:32 CET 2008
Albrecht Dreß schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> sorry if this is a dumb question, I just joined here...
Thats not a dump question!
> My problem is that I am not able to view any trend graph in Nagios 3.0. I run a
> self-compiled package on Ubuntu 7.10/amd64.
>
> I configured cgi.cfg as follows:
>
> <snip>
> use_authentication=1
> authorized_for_system_information=*
> authorized_for_configuration_information=*
> authorized_for_system_commands=*
> authorized_for_all_services=*
> authorized_for_all_hosts=*
> authorized_for_all_service_commands=*
> authorized_for_all_host_commands=*
> </snip>
>
> Allowed users are authenticated by Apache, so this should be fine for my
> environment.
>
> With this setup, I can view *anything* in the Reporting section, i.e.
> Availibilities, Alert Histogram, History and Summary, Notifications and Event
> log, *except* for Trends. The first two steps work, but finally I just get
>
> It appears as though you are not authorized to view information for the
> specified host...
>
> The same happens e.g. when viewing the availability report for a single host.
> The tables are produces, but instead of the graph only "[Broken image icon] Host
> state trends" is shown.
>
> 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.
>
> Any idea what I did wrong here?
I can confirm this.
Nagios 3.0rc2 works correct but 3.0rc3++ fails.
Can you please post this fine bug report to nagios-devel?
Joerg
-------------------------------------------------------------------------
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-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