Tuesday, March 20, 2012

Install and Configure Cacti monitoring tool

Cacti is a complete network graphing solution designed to harness the power of RRDTool’s data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.
Cacti Features
If you want to know more about cacti check here
Install cacti in Ubuntu 9.10 (Karmic) Server

Preparing Your system

First you need to make sure you have install Ubuntu 9.10 LAMP server and then you need to install the following packages

sudo apt-get install php5 php5-gd php5-mysql

Install accti using the following command

sudo apt-get install cacti-spine

This will start installing cacti and prompt for some questions.

Configuring libphp-adodb option select ok Enter to Continue.

Select your webserver in this example we are using apache2 select ok Enter to Continue

Configure database for cacti select yes Enter to Continue

Enter the root password for your mysql server select ok Enter to Continue

Enter the password (cacti) for the cacti database,select ok Enter to Continue

Re-enter your password

This will complete the cacti installation.

Configuring Cacti

Now you need to point your browser http://serverip/cacti press enter.You should see similar to the following screen Click Next to Continue.

You need to select the type of installation as New Installation and click next to Continue.

Now it will check all the required paths are correct or not you can see this in the following screen here click
on Finish

Now you should see the Cacti Login screen as follows

Here you need to enter username and password as admin/admin and click login

First time it will prompt you to change cacti admin user password for security reasons and click save

You should see the following screen like below once you logged.

In the above screen Under Configuration Click settings on your right hand side click on paths.Make sure in the “Spine Poller File Path”, you have
“/usr/sbin/spine”

Now you need to click on Poller Select “spine” in the “Poller Type”,click on Save.

Now you need to wait for 15 min to see your server graphs starts appearing in cacti graphs.Now your Cacti Monitoring Server is Ready and if you want to know how use cacti graphs and templates check here

If you want complete list of cacti templates check here


Monday, March 12, 2012

Address list routing OIXP APJII dan MCSIX


Dengan berkembangan dunia internet di Indonesia maka qta juga harus pandai menyiasatinya agar tidak kehabisan koneksi kita. Sudah terjadi di beberapa tahun belakangan ini adanya OIXP+APJII dan ada jga MCSIX, dengan berkembangnya waktu kita harus mengubah network yang telah ada.

Serta bagi temen-temen yang butuh address-list guna pembagian Bandwidth IIX, OIXP dan MCSIX,
silakan download Address-list MCSIX , OIXP dan APJII
and langsung aja upload ke dua file tersebut ( mcsix.rsc dan nice.rsc ) ke mikrotik
=> new terminal

/import mcsix.rsc

/import nice.rsc

Oh iya.. di dalam address-list tersebut untuk penamaan MCSIX adalah mcsix dan untuk OIXP+APJII adalah nice. Kalo mau generate sendiri silakan pake script ini :

:local bhomert [/ip route pr count-only];
:local bho 0;
:local mer 0;
:local mert;
:for bho from=0 to=$bhomert step=1 do={
:set mert [/ip route get $bho dst-address]
:if ($mer = 0) do={
/ip firewall address-list add list=nice address=$mert;}
}

nah kalo mau ngejalanin tinggal lewat telnet.. jangan lewat winbox :) suka ga dapet full, oh iya.. sebelum-nya naikin dulu bgp / ospf buat dapetin prefix dari router mcsix dan router iix ( oixp+apjii )

[evan@mix-prefix] /routing bgp peer> print  detail status
Flags: X – disabled, E – established
0 E name=”ke-MIX” === CUT ====
uptime=11h5m14s prefix-count=19813 updates-sent=9699

1 E name=”ke-IIX” === CUT ====
uptime=14h19m43s prefix-count=8584 updates-sent=41719
[evan@mix-prefix] /routing bgp peer>



Untuk Contohnya bisa di liat seperti ini :

Mangle :

[evan@sample-router] /ip firewall mangle> pr detail
Flags: X – disabled, I – invalid, D – dynamic
0   ;;; Mark-Internasional
chain=prerouting action=mark-connection new-connection-mark=Conn-INTL passthrough=yes dst-address-list=!nice in-interface=ether10

1   chain=prerouting action=mark-connection new-connection-mark=Conn-INTL passthrough=yes dst-address-list=!mcsix in-interface=ether10

2   chain=forward action=mark-connection new-connection-mark=Conn-INTL passthrough=yes dst-address-list=!nice in-interface=ether10

3   chain=forward action=mark-connection new-connection-mark=Conn-INTL passthrough=yes dst-address-list=!mcsix in-interface=ether10

4   chain=prerouting action=mark-connection new-connection-mark=Conn-INTL passthrough=yes dst-address-list=!nice in-interface=ether5

5   chain=prerouting action=mark-connection new-connection-mark=Conn-INTL passthrough=yes dst-address-list=!mcsix in-interface=ether5

6   chain=forward action=mark-connection new-connection-mark=Conn-INTL passthrough=yes dst-address-list=!nice in-interface=ether5

7   chain=forward action=mark-connection new-connection-mark=Conn-INTL passthrough=yes dst-address-list=!mcsix in-interface=ether5

8   ;;; Mark-IIX
chain=prerouting action=mark-connection new-connection-mark=Conn-IIX passthrough=yes dst-address-list=nice in-interface=ether10

9   chain=forward action=mark-connection new-connection-mark=Conn-IIX passthrough=yes dst-address-list=nice in-interface=ether10

10   chain=prerouting action=mark-connection new-connection-mark=Conn-IIX passthrough=yes dst-address-list=nice in-interface=ether5

11   chain=forward action=mark-connection new-connection-mark=Conn-IIX passthrough=yes dst-address-list=nice in-interface=ether5

12   ;;; Mark-MCSIX
chain=prerouting action=mark-connection new-connection-mark=Conn-MCSIX passthrough=yes dst-address-list=mcsix in-interface=ether10

13   chain=forward action=mark-connection new-connection-mark=Conn-MCSIX passthrough=yes dst-address-list=mcsix in-interface=ether10

14   chain=prerouting action=mark-connection new-connection-mark=Conn-MCSIX passthrough=yes dst-address-list=mcsix in-interface=ether5

15   chain=forward action=mark-connection new-connection-mark=Conn-MCSIX passthrough=yes dst-address-list=mcsix in-interface=ether5

16   ;;; Paket-INTL
chain=prerouting action=mark-packet new-packet-mark=INTL passthrough=yes connection-mark=Conn-INTL

17   chain=output action=mark-packet new-packet-mark=INTL passthrough=yes connection-mark=Conn-INTL

18   ;;; Paket-MCSIX
chain=prerouting action=mark-packet new-packet-mark=MCSIX passthrough=yes connection-mark=Conn-MCSIX

19   chain=output action=mark-packet new-packet-mark=MCSIX passthrough=yes connection-mark=Conn-MCSIX

20   ;;; Paket-IIX
chain=prerouting action=mark-packet new-packet-mark=IIX passthrough=yes connection-mark=Conn-IIX

21   chain=output action=mark-packet new-packet-mark=IIX passthrough=yes connection-mark=Conn-IIX

[evan@sample-router] /ip firewall mangle>

Simple Queue :

1    ;;;         Radar TV MCSIX
name=”client-66-MCSIX” target-addresses=xxx.xxx.xxx/32 interface=all
packet-marks=MCSIX direction=both priority=8
queue=default-small/default-small limit-at=0/0 max-limit=22M/22M
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=default-small

2    ;;;         Radar TV IIX
name=”client-66-IIX” target-addresses=xxx.xxx.xxx/32 interface=all
packet-marks=IIX direction=both priority=8
queue=default-small/default-small limit-at=0/0 max-limit=40M/40M
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=default-small

2    ;;;         Radar TV INTL
name=”client-66-INTL” target-addresses=xxx.xxx.xxx/32 interface=all
packet-marks=INTL direction=both priority=8
queue=default-small/default-small limit-at=0/0 max-limit=3M/3M
burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=default-small



Semoga bisa membantu..