Here is my commands.cfg:<div><br></div><div><div># 'process-host-perfdata' command definition</div><div>define command{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>command_name<span class="Apple-tab-span" style="white-space:pre"> </span>process-host-perfdata</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>command_line<span class="Apple-tab-span" style="white-space:pre"> </span>/usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /var/lib/nagios3/host-perfdata.out</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><br></div><div><br></div><div># 'process-service-perfdata' command definition</div><div>define command{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>command_name<span class="Apple-tab-span" style="white-space:pre"> </span>process-service-perfdata</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>command_line<span class="Apple-tab-span" style="white-space:pre"> </span>/usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /var/lib/nagios3/service-perfdata.out</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><br></div><div><br></div><div><br></div><div># begin nagiosgraph configuration</div><div># command to process nagios performance data for nagiosgraph</div>
<div>define command {</div><div> command_name process-service-perfdata-for-nagiosgraph</div><div> command_line /usr/local/nagios/libexec/<a href="http://insert.pl">insert.pl</a></div><div>}</div><div># end nagiosgraph configuratio</div>
<div><br></div><div>And nagios.cfg (added for nagios graph) :</div><div><br></div><div><div># begin nagiosgraph configuration</div><div># process nagios performance data using nagiosgraph</div><div>process_performance_data=1</div>
<div>service_perfdata_file=/var/nagios/perfdata.log</div><div>service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$</div><div>service_perfdata_file_mode=a</div><div>
service_perfdata_file_processing_interval=30</div><div>service_perfdata_file_processing_command=process-service-perfdata-for-nagiosgraph</div><div># end nagiosgraph configuration</div></div><div><br></div><div>Are they correct?</div>
<div><br></div><div><br></div><br><div class="gmail_quote">On Thu, Sep 6, 2012 at 7:19 PM, FTL Nagios <span dir="ltr"><<a href="mailto:ftlnagios@gmail.com" target="_blank">ftlnagios@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Apologies I misses your latest reply saying you had installe dit.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Have you got the correct lines in your command.cfgs file?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Also have you double checked you have entered the correct details in the nagios.cfg file for the broker options etc?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Aravinth Anto [mailto:<a href="mailto:t-aravinth@juspay.in" target="_blank">t-aravinth@juspay.in</a>] <br>
<b>Sent:</b> 06 September 2012 14:36</span></p><div><div class="h5"><br><b>To:</b> Nagios Users List<br><b>Subject:</b> Re: [Nagios-users] Problem in Installing the graph plugin.<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt">I have installed the RRD package. But still I'm getting a 404 error when I try to visit graphs in my browser. <u></u><u></u></p>
<div><p class="MsoNormal">On Thu, Sep 6, 2012 at 6:49 PM, FTL Nagios <<a href="mailto:ftlnagios@gmail.com" target="_blank">ftlnagios@gmail.com</a>> wrote:<u></u><u></u></p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Install the RRD package like you have previously have been asked too.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">sudo apt-get install rrdtool</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Then rerun the <a href="http://install.pl" target="_blank">install.pl</a> script again.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Aravinth Anto [mailto:<a href="mailto:t-aravinth@juspay.in" target="_blank">t-aravinth@juspay.in</a>] <br>
<b>Sent:</b> 06 September 2012 14:07</span><u></u><u></u></p><div><div><p class="MsoNormal"><br><b>To:</b> Nagios Users List<br><b>Subject:</b> Re: [Nagios-users] Problem in Installing the graph plugin.<u></u><u></u></p></div>
</div><div><div><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">I'm using Ubuntu 12.04 and I installed the nagios3 using :<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">
sudo apt-get install -y nagios3<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Can anyone say me how to install this graph plugin. I'm spending days on it!!!<u></u><u></u></p>
<div><p class="MsoNormal">On Thu, Sep 6, 2012 at 6:09 PM, Aravinth Anto <<a href="mailto:t-aravinth@juspay.in" target="_blank">t-aravinth@juspay.in</a>> wrote:<u></u><u></u></p><p class="MsoNormal">I have installed it. And then I run the <a href="http://install.pl" target="_blank">install.pl</a> script. And I also replaced the /usr/local/nagios/share/side.php file with required changes. <u></u><u></u></p>
<div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">When I try to view the contents on browser I get 404 error.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">
Basically it says that :<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">The requested URL /usr/local/nagiosgraph/cgi/show.cgi was not found on this server.<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Eventhough I can view that file!<u></u><u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p><div><p class="MsoNormal">
On Thu, Sep 6, 2012 at 5:50 PM, James Osbourn <<a href="mailto:james.osbourn@citrix.com" target="_blank">james.osbourn@citrix.com</a>> wrote:<u></u><u></u></p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You will need to install the RRD package. How you do this will depend on your operating system.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">James</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Aravinth Anto [mailto:<a href="mailto:t-aravinth@juspay.in" target="_blank">t-aravinth@juspay.in</a>] <br>
<b>Sent:</b> 06 September 2012 13:08<br><b>To:</b> Nagios Users List<br><b>Subject:</b> Re: [Nagios-users] Problem in Installing the graph plugin.</span><u></u><u></u></p></div></div><div><div><p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I run this command : <u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">sudo ./<a href="http://install.pl" target="_blank">install.pl</a> --check-prereq<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><div><p class="MsoNormal">checking required PERL modules<u></u><u></u></p></div><div><p class="MsoNormal"> Carp...1.20<u></u><u></u></p></div><div><p class="MsoNormal">
CGI...3.52<u></u><u></u></p></div><div><p class="MsoNormal"> Data::Dumper...2.130_02<u></u><u></u></p></div><div><p class="MsoNormal"> File::Basename...2.82<u></u><u></u></p></div><div><p class="MsoNormal"> File::Find...1.19<u></u><u></u></p>
</div><div><p class="MsoNormal"> MIME::Base64...3.13<u></u><u></u></p></div><div><p class="MsoNormal"> POSIX...1.24<u></u><u></u></p></div><div><p class="MsoNormal"> RRDs... ***FAIL***<u></u><u></u></p></div><div><p class="MsoNormal">
Time::HiRes...1.972101<u></u><u></u></p></div><div><p class="MsoNormal">checking optional PERL modules<u></u><u></u></p></div><div><p class="MsoNormal"> GD...2.46<u></u><u></u></p></div><div><p class="MsoNormal">checking nagios installation<u></u><u></u></p>
</div><div><p class="MsoNormal"> found nagios at /usr/local/nagios/bin/nagios<u></u><u></u></p></div><div><p class="MsoNormal">checking web server installation<u></u><u></u></p></div><div><p class="MsoNormal"> found apache at /usr/sbin/apache2<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">*** one or more problems were detected!<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">
<u></u><u></u></p></div><div><p class="MsoNormal">It seems that RRDs... ***FAIL*** . So how can I skip this error?<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p>
</div><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">On Thu, Aug 2, 2012 at 7:20 PM, James Osbourn <<a href="mailto:james.osbourn@citrix.com" target="_blank">james.osbourn@citrix.com</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Did you run the install and check your prerequisites, I found that some of these are not present by default, You can run</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">sudo ./install –check=prereq</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If everything is ok, you can proceed, otherwise you will need to install the missing packages</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">At install time you may need to pass the argument for a standalone installation, this all depends on your environment</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">sudo ./install –standalone</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Once installation has completed you can test that the server is working by going to one of the following websites</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><a href="http://%3cserver%3e/nagiosgraph/cgi-bin/showconfig.cgi" target="_blank">http://<server>/nagiosgraph/cgi-bin/showconfig.cgi</a> or <a href="http://%3cserver%3e/nagiosgraph/cgi-bin/show.cgi" target="_blank">http://<server>/nagiosgraph/cgi-bin/show.cgi</a><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">This assumes your cgi data is located in cgi-bin and that you are running apache.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">This should help to get nagiosgraph working, you will then need to update Nagios to use the graphing plugin.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">James</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Aravinth Anto Intern [mailto:<a href="mailto:t-aravinth@juspay.in" target="_blank">t-aravinth@juspay.in</a>] <br>
<b>Sent:</b> 02 August 2012 14:38<br><b>To:</b> Nagios Users List<br><b>Subject:</b> [Nagios-users] Problem in Installing the graph plugin.</span><u></u><u></u></p></div></div><div><div><p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Hi all, I'm trying to install Nagios Plugin : <a href="http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details" target="_blank">http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details</a><br>
<br><br>I downloaded it, unzip it and then I run the <a href="http://install.pl" target="_blank">install.pl</a> as<br><br><b>sudo ./<a href="http://install.pl" target="_blank">install.pl</a><br></b><br><br>I accepted every directory as default and done with installation. <br>
<br>I changed the side.php to add my Trends link that are supported by this plugin. I restarted the server. But when I click on certain links. I get an error :<br><br><br><b>The requested URL /usr/local/nagiosgraph/cgi/showgroup.cgi was not found on this server.<br>
</b><br><br>Why this is happening? I can go into the directory /usr/local/nagiosgraph/cgi/ and view the .cgi file showgroup.cgi.<br><br>But why its not working? <br><br><br>Thanks in adavnce <u></u><u></u></p></div></div>
</div></div></div><p class="MsoNormal"><br>------------------------------------------------------------------------------<br>Live Security Virtual Conference<br>Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>will include endpoint security, mobile security and the latest in malware<br>threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><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<u></u><u></u></p></div><p class="MsoNormal"> <u></u><u></u></p>
</div></div></div></div></div></div><p class="MsoNormal"><br>------------------------------------------------------------------------------<br>Live Security Virtual Conference<br>Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>will include endpoint security, mobile security and the latest in malware<br>threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><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<u></u><u></u></p></div><p class="MsoNormal"> <u></u><u></u></p>
</div></div></div></div><p class="MsoNormal"> <u></u><u></u></p></div></div></div></div></div><p class="MsoNormal"><br>------------------------------------------------------------------------------<br>Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>threat landscape has changed and how IT managers can respond. Discussions<br>will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>_______________________________________________<br>Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><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<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p>
</div></div></div></div><br>------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><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></blockquote></div><br></div>