Sorry i did not see the 3 cgi's, since the compilation stopped abruptly during compiling statusmap.cgi.<br><br>Thanks,Satish<br><br><b><i>satish kumar <satish_lsurf@yahoo.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> I got this error while compiling executing "make all" command during reinstallation.After installation i did see the trends.cgi statusmap.cgi & histogram.cgi.<br><br>I tried copying trends.cgi from another box and executed the script, this gave me error in apache log as :<br>[Thu Apr 13 06:06:03 2006] [error] [client 10.127.108.105] Premature end of script headers: trends.cgi, referer: http://192.168.120.85/nagios/side.html<br>[Thu Apr 13 06:06:03 2006] [error] [client 10.127.108.105] /usr/local/nagios/sbin/trends.cgi: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory, referer:
 http://192.168.120.85/nagios/side.html<br><br>Looks like i have some library missing on the box.Please let me know what can i do?<br>==================================<br>gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o statusmap.cgi statusmap.c getcgi.o cgiutils.o cgiauth.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o  -lgd  -lz -lm -lpng<br>/tmp/ccdr0t72.o(.text+0x35d5): In function `load_image_from_file':<br>/home/netops/nagios-2.2/cgi/statusmap.c:2215: undefined reference to `gdImageCreateFromJpeg'<br>collect2: ld returned 1 exit status<br>make[1]: *** [statusmap.cgi] Error 1<br>make[1]: Leaving directory `/home/netops/nagios-2.2/cgi'<br>make: *** [all] Error 2<br>================================================<br><br><b><i>Marc Powell <marc@ena.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> I'm running out of ideas myself and your problem seems to be
 unique. Try running the trends.cgi from the command line as the nagios user --<br><br>su - nagios<br>bash<br>cd /path/to/nagios/sbin<br>export REQUEST_METHOD="GET"<br>export QUERY_STRING="input=gethost"<br>./trends.cgi<br><br>You should see a lot of HTML but in that should be a listing of your hosts. You may see error information so be on  the lookout for it. This will at least move us in the direction of eliminating apache as a problem.<br><br>I'd also re-verify my installation against the documentation.<br><br>--<br>Marc <br><br>> -----Original Message-----<br>> From: satish kumar [mailto:satish_lsurf@yahoo.com]<br>> Sent: Tuesday, April 11, 2006 7:51 PM<br>> To: Marc Powell; nagios-users@lists.sourceforge.net<br>> Subject: RE: [Nagios-users] Not able ot view hosts/services in the<br>> Trends.cgi link<br>> <br>> Hi Marc,<br>> <br>> The Configs are exactly matching and still i am not able to see the<br>> host/service list on trends.cgi
 link. I am still seeing the:<br>> <br>> Host and Service State Trends<br>> Last Updated: Wed Apr 12 00:47:52 GMT 2006<br>> Nagios® - www.nagios.org <http:><br>> Logged in as nagios<br>> <br>> - Notifications are disabled<br>> - Service checks are disabled<br>> But the i have all the service checks, notifications  enabled as specified<br>> earlier.<br>> <br>> Thanks, Satish<br>> <br>> <br>> <br>> Marc Powell <marc@ena.com> wrote:<br>> <br>>  Mine are as follows --<br>> <br>>  $ ls -al /usr/local/nagios /<br>>  total 5584<br>>  drwxrwxr-x 8 nagios nagios 4096 Mar 8 15:25 .<br>>  drwxr-xr-x 22 root root 4096 Mar 23 16:13 ..<br>>  drwxrwxr-x 2 nagios nagios 4096 Apr 4 14:22 bin<br>>  drwxr-xr-x 4 nagios nagios 4096 Apr 4 14:07 etc<br>>  drwxrwxr-x 2 nagios nagios 4096 Apr 3 16:17 sbin<br>>  drwxrwxr-x 8 nagios nagios 4096 Apr 3 16:17 share<br>>  drwxr-xr-x 2 nagios nagios 4096 Apr 11 00:12
 tmp<br>>  drwxrwxr-x 4 nagios nagios 4096 Apr 11 10:16 var<br>> <br>>  $ ls -al /usr/local/nagios/etc<br>>  total 356<br>>  drwxr-xr-x 4 nagios nagios 4096 Apr 4 14:07 .<br>>  drwxrwxr-x 8 nagios nagios 4096 Mar 8 15:25 ..<br>>  -rw-r--r-- 1 nagios nagios 9610 Jan 3 09:16 cgi.cfg<br>>  -rw-r--r-- 1 nagios nagios 44947  Jan 4 10:24 comment.log<br>>  drwxr-xr-x 5 nagios nagios 4096 Apr 4 17:33 ena_config<br>>  -rw-r--r-- 1 nagios nagios 32238 Apr 4 14:06 nagios.cfg<br>>  -rw-r--r-- 1 nagios nagios 1804 Jan 2 16:14 resource.cfg<br>>  -rw-r--r-- 1 nagios nagios 1640 Nov 29 17:53 send_nsca.cfg<br>>  -rw-r--r-- 1 nagios nagios 3822 Apr 11 00:12 template.cfg<br>> <br>>  $ ls -al /usr/local/nagios/var<br>>  total 20440<br>>  drwxrwxr-x 4 nagios nagios 4096 Apr 11 10:16 .<br>>  drwxrwxr-x 8 nagios nagios 4096 Mar 8 15:25 ..<br>>  drwxrwxr-x 2 nagios nagios 28672 Apr 11 00:00 archives<br>>  -rw-rw-r-- 1 nagios nagios 30404
 Apr 11 09:47 comments.dat<br>>  -rw-rw-r-- 1 nagios nagios 239 Feb 13 12:10 downtime.dat<br>>  -rw-r--r-- 1 nagios nagios 6 Apr 11 00:12 nagios.lock<br>>  -rw-rw-r-- 1 nagios nagios 2677024 Apr 11 10:16 nagios.log<br>>  -rw-r--r-- 1 nagios nagios 5782334 Apr 11 00:12 objects.cache<br>>  -rw------- 1 nagios nagios 6315126 Apr 11  10:12 retention.dat<br>>  drwxr-xr-x 2 nagios nagios 4096 Apr 11 00:07 rw<br>>  -rw-rw-r-- 1 nagios nagios 6024721 Apr 11 10:16 status.dat<br>> <br>>  Apache configuration documentation is found at<br>> http://nagios.sourceforge.net/docs/2_0/installweb.html<br>> <br>>  --<br>>  Marc<br>> <br>>  > -----Original Message-----<br>>  > From: satish kumar [mailto:satish_lsurf@yahoo.com]<br>>  > Sent: Tuesday, April 11, 2006 10:14 AM<br>>  > To: Marc Powell; nagios-users@lists.sourceforge.net<br>>  > Subject: RE: [Nagios-users] Not able ot view hosts/services in the<br>>  >
 Trends.cgi link<br>>  ><br>>  > Hi Marc,<br>>  ><br>>  > Right now i am not in office and i do not have access to the<br>> network.<br>>  > Please let me know what should be the permission/owner of<br>>  > /usr/local/nagios<br>>  > /usr/local/nagios/etc<br>>  > /usr/local/nagios/var<br>>   ><br>>  > And what exactly is required to be inside httpd.conf as part of<br>> Nagios in<br>>  > Apache.So that i can verify when i am in office,which avoids me<br>> waiting<br>>  > another 12 hours in you replying back to me.<br>>  ><br>>  > Thanks, Satish<br>>  ><br>>  > Marc Powell wrote:<br>>  ><br>>  > Please post an 'ls -al' of the following directories --<br>>  ><br>>  > /usr/local/nagios<br>>  > /usr/local/nagios/etc<br>>  > /usr/local/nagios/var<br>>  ><br>>  > Also post your apache config parts related to nagios.<br>> 
 ><br>>  > Thanks,<br>>  ><br>>  > marc<br>>  ><br>>  > > -----Original Message-----<br>>  > > From: satish kumar [mailto:satish_lsurf@yahoo.com]<br>>  > > Sent: Monday, April 10, 2006 10:59 PM<br>>  > > To: satish kumar; Marc Powell; nagios-<br>> users@lists.sourceforge.net<br>>   > > Subject: RE: [Nagios-users] Not able ot view hosts/services in<br>> the<br>>  > > Trends.cgi link<br>>  > ><br>>  > > Hi All,<br>>  > ><br>>  > > I am still finding the problem and is it related to any rpms<br>>  > missing (gd,<br>>  > > libpng,libjpeg etc......).Please help me in this issue.<br>>  > ><br>>  > > Thanks, Satish<br>>  > ><br>>  > > satish kumar wrote:<br>>  > ><br>>  > > Hi,<br>>  > ><br>>  > > I have enabled the notification & Service checks and the nagios<br>> 
 > has<br>>  > > sent a lot of notifications for various services.And the<br>>  > permission wise<br>>  > > others has rx permissions where apache belongs to.I am pasting<br>> the<br>>  > output<br>>  > > of the command below.<br>>  > > =====================<br>>  > > [root@exlinux3 bin]#  ./nagios -v ../etc/nagios.cfg<br>>  > ><br>>  > > Nagios 2.1<br>>  > > Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)<br>>  > > Last Modified: 03-27-2006<br>>  > > License: GPL<br>>  > ><br>>  > > Reading configuration data...<br>>  > ><br>>  > > Running pre-flight check on configuration data...<br>>  > ><br>>  > > Checking services...<br>>  > > Checked 222 services.<br>>  > > Checking hosts...<br>>  > > Checked 67 hosts.<br>>  > > Checking host groups...<br>>  > >
 Checked 19 host groups.<br>>  > > Checking service groups...<br>>  > > Checked 0 service groups.<br>>  > > Checking contacts...<br>>  > > Checked 8 contacts.<br>>  > > Checking contact groups...<br>>  > > Checked 5 contact groups.<br>>  > > Checking service escalations...<br>>  > >  Checked 0 service escalations.<br>>  > > Checking service dependencies...<br>>  > > Checked 0 service dependencies.<br>>  > > Checking host escalations...<br>>  > > Checked 0 host escalations.<br>>  > > Checking host dependencies...<br>>  > > Checked 0 host dependencies.<br>>  > > Checking commands...<br>>  > > Checked 105 commands.<br>>  > > Checking time periods...<br>>  > > Checked 3 time periods.<br>>  > > Checking extended host info definitions...<br>>  > > Checked 0 extended host info definitions.<br>>  >
 > Checking extended service info definitions...<br>>  > > Checked 0 extended service info definitions.<br>>  > > Checking for circular paths between hosts...<br>>  > > Checking for circular host and service dependencies...<br>>  > > Checking global event handlers...<br>>  > > Checking obsessive compulsive  processor commands...<br>>  > > Checking misc settings...<br>>  > ><br>>  > > Total Warnings: 0<br>>  > > Total Errors: 0<br>>  > ><br>>  > > Things look okay - No serious problems were detected during the<br>>  > pre-<br>>  > > flight check<br>>  > > ======================<br>>  > ><br>>  > > Thanks, Satish<br>>  > ><br>>  > > Marc Powell wrote:<br>>  > ><br>>  > > According to your own screenshots Notifications are disabled<br>>  > > and Service<br>>  > > checks are
 disabled. While I haven't personally experienced<br>>  > > the symptoms<br>>  > > you're seeing, the three screenshots seem to imply a problem<br>>  > > reading the<br>>  > > config files. Does your web server have permission to read the<br>>  > > .cfg<br>>  > > files? Can you use the View Config link to see  your<br>>  > > configuration?<br>>  > ><br>>  > > Also, from the command line as the nagios user run<br>>  > > '/path/to/nagios/bin/nagios -v /path/to/nagios/etc/nagios.cfg'<br>>  > > and post<br>>  > > it's output. Perhaps if you posted the screenshots where other<br>>  > > can see<br>>  > > them someone else who has seen the problem before can help<br>>  > > you.<br>>  > ><br>>  > > --<br>>  > > Marc<br>>  > ><br>>  > > > -----Original Message-----<br>>  > > > From: satish
 kumar [mailto:satish_lsurf@yahoo.com]<br>>  > > > Sent: Friday, April 07, 2006 1:25 PM<br>>  > > > To: Marc Powell<br>>  > > > Subject: RE: [Nagios-users] Not able ot view hosts/services<br>>  > > in the<br>>  > > > Trends.cgi link<br>>  > > ><br>>  > > > I am forwarding the  screenshots, Please let me know for<br>>  > > further<br>>  > > > troubleshooting.<br>>  > > > I am running nagios 2.0, with notification & services<br>>  > > enabled.There<br>>  > > are no<br>>  > > > errors found in the apache logs.Regarding Auth problem, i<br>>  > > have enabled<br>>  > > all<br>>  > > > the parameters with the user nagios as owner.<br>>  > > ><br>>  > > > Thanks, satish<br>>  > > ><br>>  > > > Marc Powell wrote:<br>>  > > ><br>>  > >
 ><br>>  > > ><br>>  > > > > -----Original Message-----<br>>  > > > > From: nagios-users-admin@lists.sourceforge.net<br>>  > > [mailto:nagios-<br>>  > > > users-<br>>  > > > > admin@lists.sourceforge.net] On Behalf Of Hugo van der<br>>  > > Kooij<br>>  > > >  > Sent: Thursday, April 06, 2006 12:31 AM<br>>  > > > > To: nagios<br>>  > > > > Subject: Re: [Nagios-users] Not able ot view<br>>  > > hosts/services in<br>>  > > the<br>>  > > > > Trends.cgi link<br>>  > > > ><br>>  > > > > On Wed, 5 Apr 2006, satish kumar wrote:<br>>  > > > ><br>>  > > > > > I am not able to see the hosts/services when we click<br>>  > > the<br>>  > > links<br>>  > > > on<br>>  > > > > trends.cgi, statusmap.cgi & alert
 histogram.cgi.I get the<br>>  > > common<br>>  > > > message<br>>  > > > > on the lefthand side of the webpage as<br>>  > > > > ><br>>  > > > > > Host and Service State Trends<br>>  > > > > > Last Updated: Thu Apr 6 01:13:00 WET 2006<br>>  > > > > >  Nagios(r) - www.nagios.org<br>>  > > > > > Logged in as nagios<br>>  > > > > ><br>>  > > > > > - Notifications are disabled<br>>  > > > > > - Service checks are disabled<br>>  > > > ><br>>  > > > > If you read this message you should pay attention to it<br>>  > > and<br>>  > > enable<br>>  > > > > notifications anc service checks as suggested.<br>>  > > ><br>>  > > > And it would do nothing to resolve his problem. Those are<br>>  > > just<br>>  >
 > > informational messages about the overall nagios<br>>  > > configuration<br>>  > > and<br>>  > > > have<br>>  > > > nothing to do with the functionality of the cgi's in<br>>  > > question.<br>>  > > ><br>>  > > > To the OP: You have not provided enough information to<br>>   > > determine<br>>  > > > what<br>>  > > > might be going on. What nagios version are you running? Is<br>>  > > there<br>>  > > any<br>>  > > > other information in the right frame when you click on those<br>>  > > links?<br>>  > > > Can<br>>  > > > you post a screenshot somewhere (don't send it to the list)?<br>>  > > Do<br>>  > > you<br>>  > > > see<br>>  > > > any errors in your web server logs? There are a number of<br>>  > > FAQ's<br>>  > > > related<br>> 
 > > > to these CGIs, please review them to make sure you've<br>>  > > covered<br>>  > > those<br>>  > > > problems.<br>>  > > ><br>>  > ><br>>  > ><br>>  > > -------------------------------------------------------<br>>  > > This SF.Net email is sponsored by xPML, a  groundbreaking<br>>  > > scripting language<br>>  > > that extends applications into web and mobile media. Attend<br>>  > > the live webcast<br>>  > > and join the prime developer group breaking into this new<br>>  > > coding territory!<br>>  > > http://sel.as-<br>>  > > us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642<br>>  > > _______________________________________________<br>>  > > Nagios-users mailing list<br>>  > > Nagios-users@lists.sourceforge.net<br>>  > >
 https://lists.sourceforge.net/lists/listinfo/nagios-users<br>>  > > ::: Please include Nagios version, plugin version (-v) and OS<br>>  > > when reporting any issue.<br>>  > > ::: Messages without supporting info will risk being sent to<br>>  > > /dev/null<br>>  > ><br>>  > ><br>>  > ><br>>  > >  ________________________________<br>>  > ><br>>  > > Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries<br>>  > ><br>>  > > evt=39666/*http://beta.messenger.yahoo.com/> for just 2�/min<br>>  > with<br>>  > > Yahoo! Messenger with Voice.<br>>  > ><br>>  > ><br>>  > > ________________________________<br>>  > ><br>>  > > Blab-away for as little as 1�/min. Make PC-to-Phone Calls<br>>  > ><br>>  > > evt=39663/*http://voice.yahoo.com> using Yahoo! Messenger with<br>>  >
 Voice.<br>>  ><br>>  ><br>>  > -------------------------------------------------------<br>>  > This SF.Net email is sponsored by xPML, a groundbreaking scripting<br>>  > language<br>>  > that extends applications into web and mobile media. Attend the<br>> live<br>>  > webcast<br>>  > and join the prime developer group  breaking into this new coding<br>>  > territory!<br>>  > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642<br>>  > _______________________________________________<br>>  > Nagios-users mailing list<br>>  > Nagios-users@lists.sourceforge.net<br>>  > https://lists.sourceforge.net/lists/listinfo/nagios-users<br>>  > ::: Please include Nagios version, plugin version (-v) and OS when<br>>  > reporting any issue.<br>>  > ::: Messages without supporting info will risk being sent to<br>>  > /dev/null<br>>  ><br>> 
 ><br>>  ><br>>  > ________________________________<br>>  ><br>>  > New Yahoo! Messenger with Voice. Call regular phones from your PC<br>>  ><br>>  > evt=39666/*http://beta.messenger.yahoo.com> and save big.<br>> <br>> <br>>  -------------------------------------------------------<br>>  This SF.Net email is sponsored by  xPML, a groundbreaking scripting<br>> language<br>>  that extends applications into web and mobile media. Attend the live<br>> webcast<br>>  and join the prime developer group breaking into this new coding<br>> territory!<br>>  http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642<br>>  _______________________________________________<br>>  Nagios-users mailing list<br>>  Nagios-users@lists.sourceforge.net<br>>  https://lists.sourceforge.net/lists/listinfo/nagios-users<br>>  ::: Please include Nagios version, plugin version (-v) and OS when<br>>
 reporting any issue.<br>>  ::: Messages without supporting info will risk being sent to<br>> /dev/null<br>> <br>> <br>> <br>> ________________________________<br>> <br>> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates<br>> starting at 1�/min.<br>> <http:><br>>  evt=39666/*http://beta.messenger.yahoo.com><br><br><br>-------------------------------------------------------<br>This SF.Net email is sponsored by xPML, a groundbreaking scripting language<br>that extends applications into web and mobile media. Attend the live webcast<br>and join the prime developer group breaking into this new coding territory!<br>http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642<br>_______________________________________________<br>Nagios-users mailing list<br>Nagios-users@lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/nagios-users<br>::: Please include Nagios version, plugin
 version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></http:></marc@ena.com></http:></blockquote><br><div>   </div><hr size="1">Love cheap thrills? Enjoy PC-to-Phone <a href="http://us.rd.yahoo.com/mail_us/taglines/postman9/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com/"> calls to 30+ countries</a> for just 2�/min with Yahoo! Messenger with Voice.</blockquote><br><p>
                <hr size=1>Love cheap thrills? Enjoy PC-to-Phone <a href="http://us.rd.yahoo.com/mail_us/taglines/postman9/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com/"> calls to 30+ countries</a> for just 2�/min with Yahoo! Messenger with Voice.<p>
        
                <hr size=1><a href="http://us.rd.yahoo.com/mail_us/taglines/postman3/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com">Yahoo! Messenger with Voice.</a> PC-to-Phone calls for ridiculously low rates.