Tuesday, February 3, 2009

SNMP configuration for Cisco PIX 515e

To allow SNMP in PIX, you have to key in the above code.
Also have to do an ACL for the SNMP so that PIX allow Source to route to other Destination using SNMP.




How to use Cacti interface?

In order to achieve Cacti interface, you have to include php, apache and cacti in debian host. After setting everything up, enter the ip address that is pointing to Apache in debian.

This image is showing the main page of Cacti interface:

In this page , you can choose to create device or graph. In my case i will click on create device.


This page show how to add a device:
In this page, those appearing in the list are devices that already created. To create, click add at the right hand side.



It will browse you to this page:


In this page, add the following details of your device like what i have done. Click Create if you have done.


This page show the details of the created device:

At the top right hand corner, click Create Graph for this Host.



This is the page where you can choose the ports that we want:
In this page, check on which ports you want and under the drop-down list, select In/Out bits and click create.
This page is the Graph Tree that show you the parent items and graph:
Click Add.
In this page, select root. Root means that you want to have a new heading and not using the existing. Give a name in the Title textbox.
After you have entered, Click Create.
To add sub-heading, click on add beside the Heading that you had created.
Since you are creating sub-heading, so in the parent item, select which heading you want to use. In my case i use Switch that i have created previously.
Enter the title and click Create.


To add graph, click on add beside the Heading that you had created.
Since you are creating graph, so in the parent item, select which heading you want to use. In my case i use Fa0/1 to E2 that i have created previously.
Enter the details and click Create.
To view graph just click on Graph on the top left hand corner.
In the tree view panel at the left, select which graph you will like to view.
The following diagrams show the graph:



How to turn on SNMP server in Cisco router

In your cisco router, type conf t then key in the following:

Community is just like giving snmp a name and RO means read-only

Location is to let the admin know that where the device is located

Configure Squid to cache websites

I have encountered a problem when using Squid Proxy. I received this error when i was trying to enter to http://www.msn.com
In order to solve this problem, you have to go to your squid.conf file. In the conf file, you have to enter acl to allow network addresses that you wish to include. Comment (#) off http_access deny all and add in http_access allow all.
In your Internet Option, click Connection tab and click lan setting. Uncheck Automatically detect settings and check on use proxy server and in the Adress. Key in the address that your network pointing to and click ok.
When you try to enter the website again, in squid/access.log you will see tcp_miss. It means information that u retrieving are not in the cache memory. When is show tcp_mem_hit, it means that the information is stored in the cache memory






Sunday, February 1, 2009

installing cacti

#apt-get install cacti

the cacti installation was successful, however the database installation wasn't successful.

the following error was shown