I get rrd files generated setting this command with perl path<br>
<br>
define command{<br>
command_name process-service-perfdata<br>
command_line /usr/bin/perl /usr/share/nagios/nagiosgraph/insert.pl<br>
}<br>
<br><br>
now I get the bluescreen from showcgi but with empty images.<br>
<br>
<br><div><span class="gmail_quote">On 3/1/06, <b class="gmail_sendername">Alberto</b> <<a href="mailto:xagonzalezm@gmail.com">xagonzalezm@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
if I define command in this way<span class="q"><br>
<br>
define command{<br>
command_name process-service-perfdata<br></span>
command_line
/usr/share/nagios/nagiosgraph/insert.pl
"$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$"<br>
command_line echo -e
"$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$"
>> /tmp/graph.log<br>
}<br>
<br>
I get data on /tmp/graph.log<br>
<br>
1141211466||c-220||FILESYSTEM||DISK OK - free
space:||/=1386MB;3426;3829;0;4031 /aplicaciones=2447MB;3426;3829;0;4031
/boot=20MB;83;93;0;98 /datos=1122MB;3426<br>
;3829;0;4031 /log=379MB;3426;3829;0;4031 /dev/shm=0MB;3403;3803;0;4004
/var=1698MB;3426;3829;0;4031 /rinstall=9258MB;12850;14362;0;15118<br>
1141211467||c-221||FILESYSTEM||DISK OK - free
space:||/=1391MB;3426;3829;0;4031 /aplicaciones=2374MB;3426;3829;0;4031
/boot=20MB;83;93;0;98 /datos=1106MB;3426<br>
;3829;0;4031 /log=367MB;3426;3829;0;4031 /dev/shm=0MB;3403;3803;0;4004
/var=1707MB;3426;3829;0;4031 /rinstall=800MB;12850;14362;0;15118<br>
<br>
If try to execute insert with this lines I dont get anything inside rrd and nagiosgraph.log:<br>
<br>
Wed Mar 1 12:14:12 2006 INSERT info: Input
perfdata:/=2763MB;3426;3829;0;4031 /var=1102MB;3426;3829;0;4031
/var/run=0MB;8813;9850;0;10369 /tmp=1MB;8814;9851;0;10370
/aplicaciones=1870MB;16055;17944;0;18889
/datos=6200MB;16055;17944;0;18889 /log=1358MB;16055;17944;0;18889<br>
Wed Mar 1 12:14:12 2006 INSERT info: Input servicedescr:FILESYSTEM<br>
Wed Mar 1 12:14:12 2006 INSERT info: Input output:DISK OK - free space:<br>
Wed Mar 1 12:14:12 2006 INSERT warn: perfdata not recognized<br>
Wed Mar 1 12:14:12 2006 INSERT debug: nagiosgraph exited<br>
<br>
If replace the echo in command and use insert.pl I dont get anything inside rrd folder neither any error in nagiosgraph.log<div><span class="e" id="q_109b58e245e26bdd_3"><br>
<br>
<br><br><div><span class="gmail_quote">On 2/28/06, <b class="gmail_sendername">Alberto</b> <<a href="mailto:xagonzalezm@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">xagonzalezm@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes. It's called because if I rename it I get error 127 not found on nagios.log.<br>
<br>
nagios doesnt generate any file inside rrd/ but if I manually run insert.pl with user nagios I get files inside rrd/.<span><br>
<br>
I get this in nagiosgraph.log:<br>
<br></span>
Tue Feb 28 08:09:42 2006 CGI debug: @db=<br>
Tue Feb 28 08:09:42 2006 CGI info: Listing c%2D102_PING db files in /usr/share/nagios/nagiosgraph/rrd/:<br>
Tue Feb 28 08:09:42 2006 CGI info: RRDs::graph - -a PNG --start -3024000 -w 350 -h 100 -l 0 -u 100<br>
Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph without contents<br>
Tue Feb 28 08:09:42 2006 CGI debug: Config debug:5<br>
Tue Feb 28 08:09:42 2006 CGI debug: Config logfile:/var/log/nagios/nagiosgraph.log<br>
Tue Feb 28 08:09:42 2006 CGI debug: Config rrddir:/usr/share/nagios/nagiosgraph/rrd/<br>
Tue Feb 28 08:09:42 2006 CGI debug: Config mapfile:/usr/share/nagios/nagiosgraph/map<br>
Tue Feb 28 08:09:42 2006 CGI debug: Config colorscheme:1<br>
Tue Feb 28 08:09:42 2006 CGI debug: Config heartbeat:10<br>
Tue Feb 28 08:09:42 2006 CGI debug: Config perflog:/var/log/nagios/perfdata.log<br>
Tue Feb 28 08:09:42 2006 CGI debug: Config rrdtool:/usr/bin/rrdtool<br>
Tue Feb 28 08:09:42 2006 CGI debug: @db=<br>
Tue Feb 28 08:09:42 2006 CGI info: Listing c%2D102_PING db files in /usr/share/nagios/nagiosgraph/rrd/:<br>
Tue Feb 28 08:09:42 2006 CGI info: RRDs::graph - -a PNG --start -34560000 -w 350 -h 100 -l 0 -u 100<br>
Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph without contents<br>
<br>
I have this in nagios.cfg:<br>
<br>
process_performance_data=1<br>
service_perfdata_file=/var/log/nagios/perfdata.log<br>
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$<br>
service_perfdata_file_mode=a<br>
service_perfdata_file_processing_interval=30<br>
service_perfdata_file_processing_command=process-service-perfdata<br>
<br>
and this in command.cfg<br>
<br>
define command{<br>
command_name process-service-perfdata<br>
command_line /usr/local/nagios/nagiosgraph/insert.pl<div><span><br>
}<br>
<br>
<br><br>
<br><div><span class="gmail_quote">On 2/27/06, <b class="gmail_sendername">Hugo van der Kooij</b> <<a href="mailto:hvdkooij@vanderkooij.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">hvdkooij@vanderkooij.org
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 27 Feb 2006, Alberto wrote:<br><br>> I get this in nagiosgraph.log:<br>><br>> CGI error: RRDs::graph ERR can't make a graph without contents<br>><br>> I get the blue screen of nagiosgraph but no images on it... what is the
<br>> probleam? I have no data on rrd/ folder but if I execute insert.pl manually<br>> as nagios user I get date in the folder but if I delete it and run nagios it<br>> doesnt generate rrd files.<br><br>So what does your log tell you about storing the data? Does it attempt to
<br>create the RRD files? (Should it?)<br><br>How did you add the insert.pl in your config? Is it called at all?<br><br>Hugo.<br><br>--<br> I hate duplicates. Just reply to the relevant mailinglist.<br> <a href="mailto:hvdkooij@vanderkooij.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hvdkooij@vanderkooij.org</a> <a href="http://hvdkooij.xs4all.nl/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://hvdkooij.xs4all.nl/</a><br> Don't
meddle in the affairs of magicians,<br> for
they are subtle and quick to anger.<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><a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
</a><br>_______________________________________________<br>Nagios-users mailing list<br><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><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
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>
</span></div></blockquote></div><br>
</span></div></blockquote></div><br>