<div>Hi Fehmi Dumani,<br></div><div></div><div>I found a way to monitor Windows Systems using MRTG and <font color="#ff6600">WMI(Windows Management Instrumentation)</font>. <br></div><div>Please take a look at the following blog.</div>
<div><a href="http://bmonday.com/archive/0001/01/01/788.aspx">http://bmonday.com/archive/0001/01/01/788.aspx</a></div><div></div><div>But this is only for windows to windows monitoring. Not for linux to windows or viceversa.</div>
<div></div><div>Any more inputs on this are highly appreciated.</div><div></div><div class="gmail_quote">On Wed, Apr 28, 2010 at 8:32 PM, Fehmi Dumani <span dir="ltr">&lt;<a href="mailto:albadino@hotmail.com">albadino@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
Greetings Ashok<br><br>There must be a way to monitor windows servers as well. Unfortunatly I have no clue how to get information about uptime on windows machines, I have no experience on windows machines at all, and I am new on mrtg too, this is my second-third week of  MRTG usage. <br>
<br>But if you can get statistic information localy via CLI (cmd.exe) about the windows systems I think there wont be any trouble about getting these statistics on linux machines and create graphs.<br><br>I will do my best to assist you on this task.<br>
<br>Regards <br><br>Fehmi. <br><br><hr>Date: Wed, 28 Apr 2010 18:01:12 +0530<div><div class="h5"><br>Subject: Re: [mrtg] How to monitor non SNMP Device using MRTG<br>From: <a href="mailto:g.ashok1988@gmail.com" target="_blank">g.ashok1988@gmail.com</a><br>
To: <a href="mailto:albadino@hotmail.com" target="_blank">albadino@hotmail.com</a><br>CC: <a href="mailto:mrtg@lists.oetiker.ch" target="_blank">mrtg@lists.oetiker.ch</a><br><br><div>HiFehmi Dumani, <br></div><div>with your very good explanation on non snmp based mrtg monitoring I&#39;m able to monitor any linux system now.</div>
<div>But, what about windows and printers that don&#39;t have any snmp enabled on them? </div>
<br><div>On Mon, Apr 26, 2010 at 5:35 PM, ashok kumar <span dir="ltr">&lt;<a href="mailto:g.ashok1988@gmail.com" target="_blank">g.ashok1988@gmail.com</a>&gt;</span> wrote:<br><blockquote style="border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

<br><div>Hi Dumani.<br></div><div>It&#39;s working fine now. I used scp instead of ssh-copy-id.</div><div>Thanks for your valuable time.</div><div>If I have further queries I will post in the mailing list.</div>
<div>Happy Posting. Take Care. Bye :)</div><div><div><div>On Mon, Apr 26, 2010 at 5:25 PM, ashok kumar <span dir="ltr">&lt;<a href="mailto:g.ashok1988@gmail.com" target="_blank">g.ashok1988@gmail.com</a>&gt;</span> wrote:<br>


<blockquote style="border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div>sorry Dumani,<br></div><div>I didn&#39;t see your line <font color="#cc6600">ssh-copy-id [-i [identity_file]] [user@]machine.</font></div>


<div><font color="#000000">But my kernel says that <b>ssh-copy-id</b> not found. It seems I need to install that rmp.</font></div><div><div>
<br><div>On Mon, Apr 26, 2010 at 4:49 PM, Fehmi Dumani <span dir="ltr">&lt;<a href="mailto:albadino@hotmail.com" target="_blank">albadino@hotmail.com</a>&gt;</span> wrote:<br><blockquote style="border-left:1px solid rgb(204, 204, 204);padding-left:1ex">







<div>
Yes it is<br><br>You can run commands remotly on your machines via ssh or rsh the script is almost the same except you use command<br><br>ssh user@hostip uptime &lt;------------<br>instead of<br>uptime &lt;------------------<br>



<br>and first you have to configure ssh and install your public key via ssh-copy-id<br><br>ssh-copy-id [-i [identity_file]] [user@]machine<br><br>and than everythink is the same.<br><br>Regards <br><br><hr>Date: Mon, 26 Apr 2010 14:03:11 +0530<div>



<br>Subject: Re: [mrtg] How to monitor non SNMP Device using MRTG<br>From: <a href="mailto:g.ashok1988@gmail.com" target="_blank">g.ashok1988@gmail.com</a><br>To: <a href="mailto:albadino@hotmail.com" target="_blank">albadino@hotmail.com</a><br>



CC: <a href="mailto:mrtg@lists.oetiker.ch" target="_blank">mrtg@lists.oetiker.ch</a><br><br></div><div><div><div>Hi again Dumani,<br></div><div>Thanks for your reply. In my previous reply I was more concerned about the remote system monitoring rather than my sytem. But you just mentioned about that in your last line like <font color="#996633">&quot;Remember you can execute commands remotely via ssh or rsh so you can make load average graphs of other systems as well&quot; </font><font color="#000000">which means that we can have mrtg to be running on remote machine and if you want to get that graphs you have to use httpd service. Isn&#39;t it? </font></div>




<div><font color="#000000">But my concern is about having all those data on my system(server) so that I can view the graphs at anytime and maintain log files on my system rather than running mrtg and maintining all the data in respective systems.</font></div>




<div><font color="#000000">Is it possible without snmp enabled on my client machines?</font></div><br><div>On Mon, Apr 26, 2010 at 1:01 PM, Fehmi Dumani <span dir="ltr">&lt;<a href="mailto:albadino@hotmail.com" target="_blank">albadino@hotmail.com</a>&gt;</span> wrote:<br>




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



<div>
Greetings Ashok<br><br>On your script you are showing the VAL1 of a system running mrtg uptime for 1 min, the second VAL2 is showing your uptime and the and the system load averages for the past 1, 5. Since mrtg on his own creates a graph for periodic use in your cause every 5 minutes you don&#39;t have to give bouth values showing the same thing<br>




<br>VAL1=`echo &quot;$SECOND*100&quot; | bc | cut -f1 -d&quot;.&quot;`<br><br>and for<br><br>VAL2=100<br><br>your solid green will show the system load averages for the past 5 minutes of the system which will be periodically obtained. and the second line blue 100% that might be used.<br>




<br><br>If I can make some modifications on your mrtg.cfg I would make it like this:<div><br><br>EnableIPv6: no<br>WorkDir: /home/Ashok/mrtg2/Station21/<br>Interval: 5<br>Title[load_avg]: Average Load on Station21<br>
PageTop[load_avg]: &lt;H1&gt;( Average Load on Station21 ) * 100&lt;/H1&gt; <br></div>Options[load_avg]: nobanner,gauge,growright<div><br>Target[load_avg]: `/home/Ashok/mrtg2/cfg/load_avg.sh`<br>MaxBytes[load_avg]: 100<br>




YLegend[load_avg]: LoadAvg * 100<br>Unscaled[load_avg]: ymwd<br></div>LegendI[load_avg]: Load Average<br>LegendO[load_avg]: Max Load Average<div><br>Suppress[load_avg]: y<br>RunAsDaemon: Yes<br>Refresh: 600<br>
<br></div>I don&#39;t use mrtg as a daemon so it is up to you if you wana use it or do the job with crontab. All I add was LegendI and LegendO to put Max Average and Current show values and removed noinfo,nopercent, at options. Remember in order to view it on your page you have to configure httpd to set a dir /home/Ashok/mrtg2/Station21/ to be used, also if you have SELinux enabled you will have to run it on permisive mode or to create your own policies, otherwise it won&#39;t let you publish on httpd. Than all you have to do is get the indexmaker create the index.html and wait for some minutes to see your graphs. (Indexmaker usage command: indexmaker --output=/home/Ashok/mrtg2/Station21/index.html /etc/mrtg/mrtg.cfg<br>




<br>Remember you can execute commands remotely via ssh or rsh so you can make load average graphs of other systems as well.<br><br>Regards<div><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&amp;ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5" target="_blank">Get busy.</a></div>




</div>
</blockquote></div><br><br clear="all"><br>-- <br><br>Thanks<br>G. Ashok Kumar<br>Softential<br>                                               <br></div></div><div><hr>Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. <a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2" target="_blank">See how.</a></div>



</div>
</blockquote></div><br><br clear="all"><br>-- <br><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>
</div></div></blockquote></div><br><br clear="all"><br><div>Kind Regards</div><div>G. Ashok Kumar,<br></div>Softential.<br>                                               <br></div></div><div class="im"><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" target="_blank">Learn more.</a></div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><br>Thanks<br>G. Ashok Kumar<br>Softential<br>