Use Cacti For Server Squid Monitoring
[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.conflook 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
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:
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
My squid server is telling the lack of ACL INIRAHASIA.
ReplyDeleteThe 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
@manaus:
ReplyDeleteMaybe 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
I got "SNMP error" when I create a new host.
ReplyDeleteI already installed snmp on my server, and allowed snmp port.