I try to graph the ping command :<br>the nagiosgraph.log gives:<br>Sat Jan 28 14:48:37 2006 CGI debug: Config rrdtool:/usr/bin/rrdtool<br>Sat Jan 28 14:48:37 2006 CGI debug: @db=<br>Sat Jan 28 14:48:37 2006 CGI info: Listing frparsv03_PING db files in /usr/local/nagios/nagiosgraph/rrd:
<br>Sat Jan 28 14:48:37 2006 CGI info: System /usr/bin/rrdtool graph - -a PNG --start -34560000<br><br>the map file contains :<br><br># Service type: ping<br># output:PING OK - Packet loss = 0%, RTA = 0.00 <span style="color: rgb(255, 0, 0); font-weight: bold;">
m</span><br>/output:PING.*?(\d+)%.+?([.\d]+)\sms/<br>and push @s, [ ping,<br> [ losspct, GAUGE, $1 ],<br> [ rta, GAUGE, $2/1000 ] ];<br><br>and the ouput of the check_ping gives :<br><br>
check_ping -H <a href="http://10.1.1.5">10.1.1.5</a> -w 3000.0,80% -c 5000.0,100% -p 1<br>PING OK - Packet loss = 0%, RTA = 0.42 m<span style="color: rgb(255, 0, 0); font-weight: bold;">s</span><br><br>i see that the rrdtool get no values, so there should be at least an erro in the map file, but i am not a perl coder. The service type uses RTA =
0.00 m and my ouput uses ms instead of just m ...maybe it is one of the reason i get broken links in the http page and no rrd files created.<br><br>Can you give a hand, anyone ? Thank you. <br><br><div><span class="gmail_quote">
2006/1/28, Toto Capuccino <<a href="mailto:shoktai@gmail.com">shoktai@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
i had a look and it fits to install from nagios 2 at leat but i am running version 1.3. Anyone got nagiosgraph running under nagios1.3?<br><div><span class="q"><span class="gmail_quote">2006/1/27, Todd Barbera <<a href="mailto:todd_barbera@wgbh.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
todd_barbera@wgbh.org</a>>:</span></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><span class="e" id="q_1090e6c8e8b4e2f3_3"><p><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;"><a href="http://cvs.sourceforge.net/viewcvs.py/*checkout*/nagiosgraph/nagiosgraph/INSTALL" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://cvs.sourceforge.net/viewcvs.py/*checkout*/nagiosgraph/nagiosgraph/INSTALL</a></span></font></p>
<p><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;"> </span></font></p>
<p><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;">Check out this install link. I believe you
are missing some entries in nagios.cfg (assuming you are using nagiosgraph and
not Nagiosgrapher). </span></font></p>
<p><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;"> </span></font></p>
<p><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;">Todd</span></font></p>
<p><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;"> </span></font></p>
<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">
<p><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"><span>-----Original Message-----<br>
<b><span style="font-weight: bold;">From:</span></b> <a href="mailto:nagios-users-admin@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users-admin@lists.sourceforge.net
</a>
[mailto:<a href="mailto:nagios-users-admin@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users-admin@lists.sourceforge.net</a>] <b><span style="font-weight: bold;">On Behalf Of
</span></b>Toto Capuccino<br></span>
<b><span style="font-weight: bold;">Sent:</span></b> </span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">Friday, January
27, 2006</span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> </span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">12:01 PM</span></font>
<font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"><span><br>
<b><span style="font-weight: bold;">To:</span></b>
<a href="mailto:nagios-users@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users@lists.sourceforge.net</a><br></span><div><span>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [Nagios-users]
Graphing values from nagios</span></div></span></font></p><div><span>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">i didnt get nagiosgraph working, maybe you can help.<br>
I followed the INSTALL paper.</span></font></p>
<ul type="disc">
<li><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I got nagiosgraph.conf, map, insert.pl and
show.cgi in /usr/local/nagios/nagiosgraph/</span></font></li>
</ul>
<ul type="disc">
<li><font face="Times New Roman" size="3"><span style="font-size: 12pt;">In <b><span style="font-weight: bold;">nagios.cfg</span></b>
i set:</span></font></li>
</ul>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> process_performance_data=1<br>
service_perfdata_command=process-service-perfdata</span></font></p>
<ul type="disc">
<li><font face="Times New Roman" size="3"><span style="font-size: 12pt;">In misccommands.cfg:<br>
<br>
define command {<br>
command_name
process-service-perfdata <br>
command_line
/usr/local/nagios/nagiosgraph/insert.pl
"$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$"<br>
}</span></font></li>
</ul>
<ul type="disc">
<li><font face="Times New Roman" size="3"><span style="font-size: 12pt;">an icon in .../share/images/logos/</span></font></li>
<li><font face="Times New Roman" size="3"><span style="font-size: 12pt;">in /usr/local/nagios/etc/serviceextinfo.cfg <br>
<br>
Most services can be graphed with no particular configuration
like this:<br>
<br>
define serviceextinfo {<br>
service_description
serviceblabla<br>
host_name
server01,server02<br>
notes_url
/nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ <br>
icon_image graph.gif<br>
icon_image_alt View graphs<br>
}</span></font></li>
</ul>
<ul type="disc">
<li style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">ScriptAlias
/nagiosgraph/ /usr/local/nagios/nagiosgraph/ in apache2.conf. The result i
get is simply nothing. What did i forgot ? What do i have to put in
nagios.cfg to link to serviceextinfo.cfg ? I put
cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without success. Do i
have to put something in services.cfg? Thanks</span></font></li>
</ul>
<div>
<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;">
<div>
<p><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;">Have you installed a graphing add-on? nagiosgraph works fairly
well. You can pretty much graph anything so long as you have a grasp of Perl. </span></font></p>
<p><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;"> </span></font></p>
<p><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;">Todd</span></font></p>
<div>
<p><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt; color: black;"> </span></font></p>
<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0in 0in 0in 4pt;">
<p><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">-----Original
Message-----<br>
<b><span style="font-weight: bold;">From:</span></b> <a href="mailto:nagios-users-admin@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users-admin@lists.sourceforge.net
</a>
[mailto:<a href="mailto:nagios-users-admin@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users-admin@lists.sourceforge.net</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>Toto Capuccino<br>
<b><span style="font-weight: bold;">Sent:</span></b> </span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">Friday, January
27, 2006</span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> </span></font><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">10:56 AM</span></font>
<font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"><br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nagios-users@lists.sourceforge.net</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [Nagios-users] Graphing
values from nagios</span></font></p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi,<br>
<br>
Can someone show me the way to success ? I want to graph the values i get from
nsclient check-nt -v USEDDISKSPACE on servers. <br>
<br>
Is that possible ? How can i retrieve values monitored ?<br>
<br>
Thanks for thoughts, help, lessons. </span></font></p>
</div>
</div>
</div>
</blockquote>
</div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
</span></div></div>
</span></div></div>
</blockquote></div><br>
</blockquote></div><br>