<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@PMingLiU";
panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Arial","sans-serif";
font-weight:bold;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Arial","sans-serif";
font-weight:bold;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Arial","sans-serif";
color:windowtext;
font-weight:bold;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Try running your external script from the commandline:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>/etc/pingprobe/mrtg-ping-probe 10.10.1.2 -c 5</span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Probably, it is returning an error for some reason. Also, run it as the user that MRTG runs as – some systems will not let a non-root user run ping.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>This is how we call mrtg-ping-probe (replace %SHNAME% and %IPADDR% appropriately):<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Target[%SHNAME%-ping]: `/u01/mrtg/bin/mrtg-ping-probe -p '1000*max/1000*min' –s %IPADDR%` / 1000000<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Title[%SHNAME%-ping]: Ping times to %SHNAME%<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>MaxBytes[%SHNAME%-ping]: 5<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>AbsMax[%SHNAME%-ping]: 10<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>PageTop[%SHNAME%-ping]: null<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Options[%SHNAME%-ping]: gauge nopercent<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>YLegend[%SHNAME%-ping]: RTT Seconds<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ShortLegend[%SHNAME%-ping]: s<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Legend1[%SHNAME%-ping]: Round Trip Time range<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Legend2[%SHNAME%-ping]: Round Trip Time range<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Legend3[%SHNAME%-ping]: High Peak 5min RTT<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Legend4[%SHNAME%-ping]: Low Peak 5min RTT<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>LegendI[%SHNAME%-ping]: High:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>LegendO[%SHNAME%-ping]: Low:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>routers.cgi*ShortName[%SHNAME%-ping]: Ping: RTT<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>routers.cgi*Options[%SHNAME%-ping]: nomax nototal scaled nopercent<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>routers.cgi*GraphStyle[%SHNAME%-ping]: range<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>routers.cgi*InCompact[%SHNAME%-ping]: no<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>routers.cgi*UnScaled[%SHNAME%-ping]: none<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>routers.cgi*BgColour[%SHNAME%-ping]: #ffffff<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>routers.cgi*Icon[%SHNAME%-ping]: clock-sm.gif<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>routers.cgi*UpperLimit[%SHNAME%-ping]: 0.01<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Steve<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><b><span style='color:#1F497D'>Steve Shipway<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:10.0pt;color:#1F497D'><a href="mailto:s.shipway@auckland.ac.nz"><span style='color:blue'>s.shipway@auckland.ac.nz</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:1.0pt;color:#1F497D'>(GNU Terry Pratchett)<o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></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"'> mrtg [mailto:mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] <b>On Behalf Of </b>Rick Silacci<br><b>Sent:</b> Friday, 29 May 2015 9:54 a.m.<br><b>To:</b> mrtg@lists.oetiker.ch<br><b>Subject:</b> [mrtg] Error with Ping-Probe<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoPlainText><span lang=EN-US style='font-weight:normal'>I’m getting this error in my log file when using the cfg file below: <o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US style='font-weight:normal'><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US>: WARNING: Problem with External get '/etc/pingprobe/mrtg-ping-probe 10.10.1.1':<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US> Expected a Number for 'in' but nothing'<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US>Target[10.10.1.2ping]:`/etc/pingprobe/mrtg-ping-probe 10.10.1.2 -c 5`<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>Directory[10.10.1.2ping]: 10.10.1.2<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>SetEnv[10.10.1.2ping]: MRTG_INT_IP="10.10.1.2"<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>Title[10.10.1.2ping]: Latency<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>PageTop[10.10.1.2ping]: <H1>Latency For 10.10.1.2</H1><o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>MaxBytes[10.10.1.2ping]: 180<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>AbsMax[10.10.1.2ping]: 10000<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>WithPeak[10.10.1.2ping]: ymwd<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>Options[10.10.1.2ping]: gauge, growright<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>YLegend[10.10.1.2ping]: ms<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>ShortLegend[10.10.1.2ping]:ms<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>Legend1[10.10.1.2ping]:Maximum Round Trip Time in ms Legend2[10.10.1.2ping]:Minimum Round Trip Time in ms<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>LegendI[10.10.1.2ping]: Max:<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US>LegendO[10.10.1.2ping]: Max:<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US>Any ideas?<o:p></o:p></span></p><p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p><p class=MsoPlainText><span lang=EN-US>Thanks<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></b></p></div></div></body></html>