<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><br>I'm running mrtg and get the following warning errors below:<br><br>$ /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg<br>2007-11-22 10:53:57: WARNING: Problem with External get '/tmp/foo':<br>&nbsp;&nbsp; Expected a Number for 'out' but nothing'<br><br>2007-11-22 10:53:57: ERROR: Target[portal.aphroland.org.uptime][_OUT_] ' $target-&gt;[0]{$mod<br>e} ' did not eval into defined data<br>&nbsp;&nbsp; Admin - System Engerring Server (811:1144-A.1)!&nbsp; <br><br><br>It seems that any type of script I call (sh, bash, perl) from the mrtg.cfg file yeilds the above error. <br>Target[portal.saphroland.org.uptime]: `/usr/local/bin/test.sh`<br><br>If I just put a number in the Target field it works fine:<br>Target[portal.saphroland.org.uptime]: "555"<br><br>The script(s):<br><br>/usr/local/bin/test.sh<br>#!
 /bin/bash<br>/usr/bin/uptime | awk '{ print $3 }'<br><br>or <br><br>/usr/local/bin/test.sh<br>
#! /bin/bash<br>/bin/date +%m<br><br>My mrtg.cfg files looks like:<br>------------------------------------------------------------------------------------------------------<br>EnableIPv6: no<br>WorkDir: /httpd/html/mrtg<br>Options[_]: bits,growright<br><br>Target[portal.saphroland.org.uptime]: `/usr/local/bin/test.sh`<br>Xsize[portal.saphroland.org.uptime]: 600<br>Ysize[portal.saphroland.org.uptime]: 200<br>Ytics[portal.saphroland.org.uptime]: 10<br>Options[portal.saphroland.org.uptime]: nopercent,gauge<br>Supress[portal.saphroland.org.uptime]: dw<br>Title[portal.saphroland.org.uptime]: (portal.saphroland.org) Uptime - in days<br>PageTop[portal.saphroland.org.uptime]: &lt;h1&gt;(portal.saphroland.org) Uptime - in days&lt;/h1&gt;<br>Background[portal.saphroland.org.uptime]: #738AA6<br>MaxBytes[portal.saphroland.org.uptime]: 1000<br>YLegend[portal.saphroland.org.uptime]: days<br>ShortLegend[portal.saphroland.org.uptime]:
 days&amp;nbsp;<br>LegendI[portal.saphroland.org.uptime]: &amp;nbsp;Uptime:&amp;nbsp;<br>LegendO[portal.saphroland.org.uptime]:<br>Legend1[portal.saphroland.org.uptime]: Uptime<br>Legend2[portal.saphroland.org.uptime]:<br><br><br>Any help is greatly appreciated! :)<br><br>-wk<br></div><br>
      <hr size=1>Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. <a href="http://us.rd.yahoo.com/evt=51732/*http://overview.mail.yahoo.com/">See how.</a></body></html>