<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
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 id="stopSpelling">Date: Sat, 24 Apr 2010 15:58:37 +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>Thank you guys for giving such a valuable information saying that you have implemented MRTG for non SNMP devices.</div><div></div><div>But someone says, to use smokeping, write scripts which have to return four values. </div>
<div></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></div><div></div><div>Kind Regards,</div><div>G Ashok Kumar,</div><div>Softential.</div><div></div><div class="ecxgmail_quote">On Sat, Apr 24, 2010 at 1:24 PM, Fehmi Dumani <span dir="ltr"><<a href="mailto:albadino@hotmail.com">albadino@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); 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 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 class="ecxhm">
                                </div></dd></dl></dd></dl><div class="ecxhm"><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 /><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&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4' target='_new'>Get busy.</a></body>
</html>