Cannot view trends

Albrecht Dreß albrecht.dress at arcor.de
Fri Mar 14 20:29:00 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

sorry if this is a dumb question, I just joined here...

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?

Thanks in advance,
Albrecht.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH2tH8n/9unNAn/9ERAuPuAJ9HQzW8Gsl+DFgBglrYVI+3O3LwQACfWB5j
ea3o2kbfX3mYBOUtsXVEF+Q=
=GqRc
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
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