Use Cacti For Server Squid Monitoring

12:41 AM 3 Comments

[KLIK DISINI UNTUK JASA KOMPUTER DAN JARINGAN]


Update and Upgrade
# yum list updates
# yum –y upgrade

Install SNMP Client
# yum install –y net-snmp net-snmp-utils
# service snmpd start
# chkconfig snmpd on

Configure SNMP Client
# vim /etc/snmp/snmp.conf
look at Example Configuration below:
https://sites.google.com/site/tutorialjaringankantor/download/snmpd.conf

# service snmpd restart


Configure Squid
# vim /etc/squid/squid.conf
#BOF ACL Untuk SNMP Squid
acl inirahasia snmp_community inirahasia
snmp_port 3401
snmp_access allow inirahasia localhost
snmp_access deny all
#EOF ACL Untuk SNMP Squid


Open Cacti Dashboard
Download this files:
https://sites.google.com/site/tutorialjaringankantor/download/cacti_graph_template_squid_cache_objects.xml https://sites.google.com/site/tutorialjaringankantor/download/cacti_graph_template_squid_http_data.xml https://sites.google.com/site/tutorialjaringankantor/download/cacti_graph_template_squid_http_requests.xml

Login > Console > Import Template
importxmlcacti
Please import that files.

Make Host Template
Click Host Templates > Add > Give Templates Name “Squid Server” > Create > Add Graph Template
> Choose:
Squid - Cache Objects > add
Squid - HTTP Data > add
Squid - HTTP Requests > add

And the click save

Create a New Graph
Click Graph tree > add > Give Name example “Server PNJ” > create
Click New Graphs > Create New Host
And Fill the Blank:
ProxyBalancerPNJ
Click Save > Create Graph For This Host > Select All > Create > Create
Click Device > Select Proxy Balancer PNJ > Choose an Action “Place On Tree(Server PNJ) > GO > Continue

Install Server Networking Programming

Support you how to install server, networking and Programming Easy

3 comments:

  1. My squid server is telling the lack of ACL INIRAHASIA.


    The error message is:
    2011/10/09 12:11:52| ACL name 'inirahasia' not defined!
    FATAL: Bungled squid.conf line 22: snmp_access allow inirahasia localhost
    Squid Cache (Version 2.6.STABLE21): Terminated abnormally.
    [root@squid_firewal squid]# vi squid.conf

    ReplyDelete
  2. @manaus:

    Maybe you can check this line:

    acl inirahasia snmp_community inirahasia

    this line about 2 line before

    snmp_access allow inirahasia localhost

    This is a complete code around snmp setting:
    #BOF ACL Untuk SNMP Squid
    acl inirahasia snmp_community inirahasia
    snmp_port 3401
    snmp_access allow inirahasia localhost
    snmp_access deny all
    #EOF ACL Untuk SNMP Squid

    ReplyDelete
  3. I got "SNMP error" when I create a new host.
    I already installed snmp on my server, and allowed snmp port.

    ReplyDelete

You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.