Page 1 of 1

[Nagios-devel] Cannot view trends

Posted: Sat Mar 15, 2008 2:44 am
by Guest
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I originally posted this message to the nagios-users list and got the feedback
that it would better fit here. Just as an other information, a reply in the
users list said that it *did* actually work with 3.0rc2, and IIRC I also saw
trend graphs with that version.

Thanks, Albrecht.


- -------- Original-Nachricht --------
Betreff: Cannot view trends
Datum: Fri, 14 Mar 2008 20:29:00 +0100
Von: Albrecht Dreß
An: [email protected]

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:


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


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:


~ printf("\n");
~ }

#ifndef DEBUG
~ /* check authorization... */
~ if(display_type==DISPLAY_HOST_TRENDS){
~ temp_host=find_host(host_name); // fail here!!!


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

iD8DBQFH26h0n/9unNAn/9ERAvzcAJ99U3lx8Acr3Gg5UvhyWooIkQfKTwCeJ7wj
+mxg5UiFdBtk9Sg9awll6iI=
=iQcd
-----END PGP SIGNATURE-----





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]