<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Greetings Ashok<br><br>Can you send a copy of load_avg.sh and any sample log file it is creating. I will as soon as I get the file take a look at it.<br><br>Regards.<br><br><hr id="stopSpelling">Date: Mon, 26 Apr 2010 10:10:28 +0530<br>Subject: Re: [mrtg] How to monitor non SNMP Device using MRTG<br>From: g.ashok1988@gmail.com<br>To: albadino@hotmail.com<br>CC: mrtg@lists.oetiker.ch<br><br><div>Hi All,<br></div><div>I customised script as:</div><div><strong>EnableIPv6: no </strong></div><div><strong>WorkDir: /home/Ashok/mrtg2/Station21/ </strong></div><div><strong>Interval: 5 </strong></div><div><strong>Title[load_avg]: Average Load on Station21 </strong></div>
<div><strong>PageTop[load_avg]: &lt;H1&gt;( Average Load on Station21 ) * 100&lt;/H1&gt; Options[load_avg]: nobanner,gauge,noinfo,nopercent,growright </strong></div><div><strong>Target[load_avg]: `/home/Ashok/mrtg2/cfg/load_avg.sh` </strong></div>
<div><strong>MaxBytes[load_avg]: 100 </strong></div><div><strong>YLegend[load_avg]: LoadAvg * 100 </strong></div><div><strong>Unscaled[load_avg]: ymwd </strong></div><div><strong>LegendI[load_avg]: </strong></div><div><strong>LegendO[load_avg]: </strong></div>
<div><strong>Suppress[load_avg]: y </strong></div><div><strong>RunAsDaemon: Yes </strong></div><div><strong>Refresh: 600</strong></div><div>It's working fine showing graphs and all. But where do I specified the config file to get the data from 192.168.0.21. Is it fetching the data from my system or it's from 192.168.0.21 ???</div>
<div class="ecxgmail_quote">Please help me.</div><br><br><div class="ecxgmail_quote">On Mon, Apr 26, 2010 at 8:02 AM, ashok kumar <span dir="ltr">&lt;<a href="mailto:g.ashok1988@gmail.com">g.ashok1988@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Thank you Fehmi Dumani,<br></div><div>I will try that on my machine and get back to you if I face any problems.</div>
<div>Thank you once again for your script.</div><div><div class="h5"><br><div class="ecxgmail_quote">On Sat, Apr 24, 2010 at 4:21 PM, Fehmi Dumani <span dir="ltr">&lt;<a href="mailto:albadino@hotmail.com">albadino@hotmail.com</a>&gt;</span> wrote:<br>

<blockquote class="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



<div>
Hi G. Ashok,<br><br>The first think to do is to get log files which contains the information, for instance do you have any logging server or maybe you can get output via CLI (Command Line Interface). <br><br>In the first cause all you need to do is do some filtering and give your information to the mrtg service, <br>

On the second scenario you will have to probably remotely gather this information using ssh to execute remote commands or maybe rsh. Than all is simple I will attach a file which contains few mrtg configuration scenarios with the some scripts which are realy easy to read.<br>

<br>If you need more help plz send some details on what kind of information do you wana graph and how do you obtain them, and I will try to help you with your script. <br><br>Keep in mind I don't know how windows mrtg works so I am speaking only for linux servers that serves mrtg.<br>

<br>By the way I found these scripts on the net and I am not sure where did I find them but they gave me really great help creating my script and mrtg.cfg, so this is not my work some1 else deserves the thanking.<br><br>
Fehmi<br>
<br><hr>Date: Sat, 24 Apr 2010 15:58:37 +0530<br>Subject: Re: [mrtg] How to monitor non SNMP Device using MRTG<br>From: <a href="mailto:g.ashok1988@gmail.com">g.ashok1988@gmail.com</a><br>To: <a href="mailto:albadino@hotmail.com">albadino@hotmail.com</a><br>

CC: <a href="mailto:mrtg@lists.oetiker.ch">mrtg@lists.oetiker.ch</a><div><div><br><br><div>Thank you guys for giving such a valuable information saying that you have implemented MRTG for non SNMP devices.</div>

<div>But someone says, to use smokeping, write scripts which have to return four values. </div>
<div>First of all I I think I don't want to switch to some other tools like smokeping as I know about MRTG. So, if you guys tried this, could you please post some practical scripts( might be complex ) so that I can implement for my non SNMP devices and then I can go for some other tools like smokeping for some enhancements.</div>


<div>Kind Regards,</div><div>G Ashok Kumar,</div><div>Softential.</div><div>On Sat, Apr 24, 2010 at 1:24 PM, Fehmi Dumani <span dir="ltr">&lt;<a href="mailto:albadino@hotmail.com">albadino@hotmail.com</a>&gt;</span> wrote:<br>


<blockquote style="padding-left: 1ex;">



<div>
You can check this page <a href="http://mrtg.meulie.net/doc/mrtg-reference.en.html">http://mrtg.meulie.net/doc/mrtg-reference.en.html</a> it helped me set it up for my own&nbsp; use.<br><br>Check the part <br>


<dl><dt>External Monitoring Scripts</dt><dd>
                If you want to monitor something which does not provide
data via snmp you can use some external program to do
the data gathering.<br>
                The external command must return 4 lines of output:<br>
                
                        <br><dl><dt>Line 1</dt><dd>
                                        current state of the first variable, normally 'incoming bytes 
count'<br>
                                </dd><dt>Line 2</dt><dd>
                                        current state of the second variable, normally 'outgoing bytes 
count'<br>
                                </dd><dt>Line 3</dt><dd>
                                        string (in any human readable format), telling the uptime of the
 target.<br>
                                </dd><dt>Line 4</dt><dd>
                                        string, telling the name of the target.<br><div>
                                </div></dd></dl></dd></dl><div><br>                                               <br><hr>Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1">Learn more.</a></div>


</div>
<br>_______________________________________________<br>
mrtg mailing list<br>
<a href="mailto:mrtg@lists.oetiker.ch">mrtg@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/mrtg">https://lists.oetiker.ch/cgi-bin/listinfo/mrtg</a><br>
<br></blockquote></div><div><br></div><br>                                               <br></div></div><div><hr>The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. <a href="http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&amp;ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4">Get busy.</a></div>

</div>
</blockquote></div><br><br clear="all"><br></div></div>-- <br><div><div class="h5"><br>Thanks<br>G. Ashok Kumar<br>Softential<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Thanks<br>G. Ashok Kumar<br>Softential<br>                                               <br /><hr />The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail.  <a href='http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5' target='_new'>Get busy.</a></body>
</html>