Issue with the histogram cgi

Silva, Jorge jorge.silva at nbf.ca
Tue Jul 8 21:42:34 CEST 2008


 
Hi - I have just recently upgraded to 3.0.3 and now am having problems
accessing the trends report (not sure if other have reported and I missed
the post)
This is what I get :
It appears as though you are not authorized to view information for the
specified service.

I dug around a bit and found the following post :
http://www.websearchking.com/?q=nagios+not+authorized+to+view+information+&c
=15

And it appears that some functionality is broken - I did a diff on the 3.0.1
and 3.0.3 and this is what I found :
# diff histogram.c ../../nagios-3.0.1/cgi/histogram.c
410c410
<                       printf("<input type='hidden' name='host'
value='%s'>\n",url_encode(host_name));
---
>                       printf("<input type='hidden' name='host'
value='%s'>\n",host_name);
412c412
<                               printf("<input type='hidden' name='service'
value='%s'>\n",url_encode(svc_description));
---
>                               printf("<input type='hidden' name='service'
value='%s'>\n",svc_description);
792c792
<                       printf("<input type='hidden' name='host'
value='%s'>\n",url_encode(host_name));
---
>                       printf("<input type='hidden' name='host'
value='%s'>\n",host_name);
794c794
<                               printf("<input type='hidden' name='service'
value='%s'>\n",url_encode(svc_description));
---
>                               printf("<input type='hidden' name='service'
value='%s'>\n",svc_description);

I copied the histogram.c to 3.03 - rebuilt the cgi and it is working.

Thanks
JOrge

****************************************************************************************
AVIS DE NON-RESPONSABILITÉ: Ce document transmis par courrier électronique est destiné uniquement à la personne ou à l'entité à qui il est adressé et peut contenir des renseignements confidentiels et assujettis au secret professionnel. La confidentialité et le secret professionnel demeurent malgré l'envoi de ce document à la mauvaise adresse électronique. Si vous n'êtes pas le destinataire visé ou la personne chargée de remettre ce document à son destinataire, veuillez nous en informer sans délai et détruire ce document ainsi que toute copie qui en aurait été faite. Toute distribution, reproduction ou autre utilisation de ce document est strictement interdite. De plus, le Groupe Financière Banque Nationale et ses filiales ne peuvent pas être tenus responsables des dommages pouvant être causés par des virus ou des erreurs de transmission.                                                                                                                                             
                                                                                                                                                           DISCLAIMER: This documentation transmitted by electronic mail is intended for the use of the individual to whom or the entity to which it is addressed and may contain information which is confidential and privileged. Confidentiality and privilege are not lost by this documentation having been sent to the wrong electronic mail address. If you are not the intended recipient or the person responsible for delivering it to the intended recipient please notify the sender immediately and destroy this document as well as any copies of it. Any distribution, reproduction or other use of this document is strictly prohibited. National Bank Financial Group and its affiliates cannot be held liable for any damage that may be caused by viruses or transmission errors.
****************************************************************************************



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08




More information about the Developers mailing list