<div>hi all,</div>
<div> </div>
<div>in responce to Mark's comment of:</div>
<div>Also, it's not going to hurt, but you don't really need to say<br>"/usr/bin/perl /usr/share/nagios/nagiosgraph/insert.pl" as long as<br>insert.pl is executable and has "#!/usr/bin/perl" as the first line.
</div>
<div> </div>
<div>Acctually it may hurt.  There was a thread in the Nagiosplugin Help mailing list this week that discussed this.</div>
<div> </div>
<div>if the insert.pl is called without the /usr/bin/perl and Embedded Perl is enabled then the Embedded perl will run the script despite the #! on the first line of the script. This may cause the script to not work.  likewise with the /usr/bin/perl in the command then it will always use the External Perl.  
</div>
<div> </div>
<div>If Embedded Perl was not compiled into the Nagios install, then what you say would be completly true.</div>
<div><br>Tony<br> </div>
<div><span class="gmail_quote">On 4/13/07, <b class="gmail_sendername">Frost, Mark {PBG}</b> <<a href="mailto:mark.frost1@pepsi.com">mark.frost1@pepsi.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Michael,<br><br>I assume you've checked and made sure that no *.rrd files are being<br>generated?  Perhaps it is running, but emptying that file out so quickly
<br>that you never catch it when it has data in it?<br><br>I found that was happening to me at one point, but I could see that I<br>was getting new/updated *.rrd files in my rrd directory for nagiosgraph.<br>You could also try running "watch" (if it's available on your platform)
<br>to monitor the contents of the perfdata.log file to see if anything ever<br>really does go in there ("watch -d cat perfdata.log").<br><br>Also, it's not going to hurt, but you don't really need to say
<br>"/usr/bin/perl /usr/share/nagios/nagiosgraph/insert.pl" as long as<br>insert.pl is executable and has "#!/usr/bin/perl" as the first line.<br><br>Mark<br><br>-----Original Message-----<br>From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">
nagios-users-bounces@lists.sourceforge.net</a><br>[mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a>] On Behalf Of Weiner,<br>Michael<br>Sent: Friday, April 13, 2007 2:42 PM
<br>To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>Subject: [Nagios-users] perfdata<br><br>Using Nagios 2.8 and I am not sure what I am doing wrong. Been trying to<br>squeeze out some perfdata in order to test nagiosgraph and I get Nagios
<br>to create the file, but it remains empty no matter what occurs. Here are<br>the relevant portions of my nagios.cfg for clarification:<br><br>nagios.cfg:<br>perfdata_timeout=5<br>process_performance_data=1<br>#service_perfdata_command=process-service-perfdata
<br>service_perfdata_file=/var/spool/nagios/perfdata.log<br>service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICED<br>ESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$<br>service_perfdata_file_mode=a <-- had this set to w based on a previous
<br>email, but that didn't seem to do anything<br>service_perfdata_file_processing_interval=30<br>service_perfdata_file_processing_command=process-service-perfdata<br><br>checkcommands.cfg:<br>define command{<br>       command_name            process-service-perfdata
<br>       command_line    /usr/bin/perl<br>/usr/share/nagios/nagiosgraph/insert.pl<br>}<br><br>I just can NOT seem to get anything written to the perfdata.log file<br>although nagios DOES create it upon (re)start.<br><br>
Any thoughts?<br><br>        Michael Weiner |  Lead Analyst  |  Lerner Research Institute<br>Cleveland Clinic  |  9500 Euclid Ave.   |  Cleveland, OH 44195  | (216)<br>445-6454<br><br><br><br><br><br>Cleveland Clinic is ranked one of the top 3 hospitals in
<br>America by U.S.News & World Report. Visit us online at<br><a href="http://www.clevelandclinic.org">http://www.clevelandclinic.org</a> for a complete listing of<br>our services, staff and locations.<br><br><br>Confidentiality Note:  This message is intended for use
<br>only by the individual or entity to which it is addressed<br>and may contain information that is privileged,<br>confidential, and exempt from disclosure under applicable<br>law.  If the reader of this message is not the intended
<br>recipient or the employee or agent responsible for<br>delivering the message to the intended recipient, you are<br>hereby notified that any dissemination, distribution or<br>copying of this communication is strictly prohibited.  If
<br>you have received this communication in error,  please<br>contact the sender immediately and destroy the material in<br>its entirety, whether electronic or hard copy.  Thank you.<br><br><br>===================================
<br><br>------------------------------------------------------------------------<br>-<br>Take Surveys. Earn Cash. Influence the Future of IT<br>Join SourceForge.net's Techsay panel and you'll get the chance to share
<br>your<br>opinions on IT & business topics through brief surveys-and earn cash<br><a href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
</a><br>V<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">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><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 /dev/null
<br><br>-------------------------------------------------------------------------<br>Take Surveys. Earn Cash. Influence the Future of IT<br>Join SourceForge.net's Techsay panel and you'll get the chance to share your
<br>opinions on IT & business topics through brief surveys-and earn cash<br><a href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
</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">
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>