Implement MRTG bandwidth monitor on Server 2012 @wallaceho.com

Previously I got the same installation on Linux system, it is much more easy to install on Linux than Windows as there is already some packages which has already configure and installed the prerequisites software. Somehow in Windows environment, there is no SNMP service started default and some of the configuration was not done automatically.

First we need to install the PERL run-time first as the MRTG needs to be run on PERL script. For Example ActivePerl 5.8.8 from ActiveState http://www.activestate.com/store/activeperl/download/

After that we have to download the latest MRTG program source from http://oss.oetiker.ch/mrtg/pub

Run the command “perl mrtg” to check whether the perl run-time installed properly.

Install SNMP service on the Windows 2012 server

Configure the SNMP security (Set value to READ ONLY) and community name

Generate the config file by command  “perl cfgmaker [email protected] –global “WorkDir: D:\Wallace” –output mrtg.cfg” *The 127.0.0.1 should be the SNMP device IP and the WorkDir is which the config file path that you wanna generate to.

After that, a config file should be generated.

Finally, run the command “perl mrtg mrtg.cfg” to run the mrtg program to generate those HTML and graphic files.

You may need to setup a schedule job to run the command in every 5 minutes interval.

Implement IPv6 on Server 2003 @wallaceho.com

In Windows Server 2003 environment, there is no IPv6 feature installed, so that it need to install manually.

Simply click on the network protocol page on the network card proprieties, install the IPv6 feature.

After that, if your ISP support IPv6, you can get a IPv6 public address.

Add record type “AAAA” with the IP on the host record on your name server and try to ping the address see if it is success.

From IIS6, it support IPv6 connection, so that just simply setup the IIS configuration and start the server.

You can get on the page now 🙂 If you can get on my page and get your IPv6 IP, that’s mean your network support IPv6 feature.


ipv6 ready

Fyproject process till 9/3

呢幾日都一直係度研究個C# 連mysql  同埋點樣去運用timer 去係某個特定時間run 個 send mail method.

經過自己做左好耐既researsh, 發覺原來要先download一個mysql.data 既 library 再import 入去個C#度~

而家解決左連mysql 既問題,但如果直接用data reader 去read 啲data 既話,就無法結合到落個timer度。

換言之,我地要利用dataset (好彩上個sem學過) 將啲data 倒左入去先,之後係個dataset度慢慢read返出黎。

mail

綠色comment 左既地方就係之前試用reader 既方法。

最後用左dataset 成功讀取!!

ha..所以話只要你肯努力冇野係冇可能!

C# coding Copyright By Wallace