Cacti: How to install on Centos 5.x server Rumi, September 11, 2011September 11, 2011 Required software(s) You need to install the following software on RHEL / Fedora / CentOS Linux: MySQL Server : Store cacti data. NET-SNMP server – SNMP (Simple Network Management Protocol) is a protocol used for network management. PHP with net-snmp module – Access SNMP data using PHP. Apache / lighttpd… Continue Reading
PowerDNS: Rec Control Rumi, September 11, 2011 make rec_control be more user friendly make wipe-cache accept non-dot terminated domain names make wipe-cache return count of wiped ('wopen'?) domains document best current practice when wiping (wipe more than www.domain, wipe domain as well) REC_CONTROL(1) ============== NAME —- rec_control – control pdns_recursor SYNOPSIS ——– 'rec_control' [–help] [–socket-dir] [–socket-pid] command… Continue Reading
Cacti: PowerDNS Recursor Templates Rumi, September 11, 2011 Here are a couple of graph templates for the PowerDNS recursor. They need a shell script to be installed on the DNS server, and an net-snmp config change. Add the following to the snmpd.conf extend pdns-rec /usr/local/bin/pdns_stats.sh Put pdns_stats in /usr/local/bin, so that snmpd can find it (rename from pdns_stats.txt)…. Continue Reading
Cacti: How ton install on a Debian server Rumi, September 11, 2011April 19, 2015 ======================================= A Newer version of this document is available at- Cacti on Debian (Updated) ======================================= The following programs are needed to run cacti: – apache2 for the web server – mysql-server for the database – php5 for the server-based script – php5-common – php5-cgi – php5-cli – php5-mysql – snmp… Continue Reading
Mrtg: example cfg for memory, cpu, disk etc. Rumi, September 5, 2011 CPU Usage /etc/mrtg/cpu.cfg WorkDir: /var/www/mrtg LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt Target[localhost.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:public@127.0.0.1+ ssCpuRawSystem.0&ssCpuRawSystem.0:public@127.0.0.1+ ssCpuRawNice.0&ssCpuRawNice.0:public@127.0.0.1 RouterUptime[localhost.cpu]: public@127.0.0.1 MaxBytes[localhost.cpu]: 100 Title[localhost.cpu]: CPU Load PageTop[localhost.cpu]: Active CPU Load % Unscaled[localhost.cpu]: ymwd ShortLegend[localhost.cpu]: % YLegend[localhost.cpu]: CPU Utilization Legend1[localhost.cpu]: Active CPU in % (Load) Legend2[localhost.cpu]: Legend3[localhost.cpu]: Legend4[localhost.cpu]: LegendI[localhost.cpu]: Active LegendO[localhost.cpu]: Options[localhost.cpu]: growright,nopercent Memory Usage /etc/mrtg/mem.cfg LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt Target[localhost.mem]: .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.6.0:public@localhost… Continue Reading
MRTG Indexmaker Rumi, September 5, 2011September 5, 2011 Regular shorcut way: #indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html Now you need to reboot your system wait for five minutes or so and then take a look at your summary home page. If your Debian,ubuntu,kubuntu system’s IP address is 192.168.0.1 then you’d type in the following in the address bar of a… Continue Reading
Powerdns: init.d and mrtg Rumi, September 4, 2011 As mentioned before, the init.d commands dump, show and mrtg fetch data from a running PDNS process. Especially mrtg is powerful – it outputs data in a format that is ready for processing by the MRTG graphing tool. MRTG can make insightful graphics on the performance of your nameserver, enabling… Continue Reading
Powerdns: rec_control command Rumi, September 4, 2011 The rec_control get command can be used to query the following statistics, either single keys or multiple statistics at once: all-outqueries counts the number of outgoing UDP queries since starting answers0-1 counts the number of queries answered within 1 milisecond answers100-1000 counts the number of queries answered within 1 second… Continue Reading
Insall cache only powerdns server Rumi, September 4, 2011 I decided to install another caching dns server , after some research I found PowerDNS. it uses MySQL for storing its zones , but hopefully its caching component doesnt need mysql , so great , lets go and install it. My favourite OS is debian lenny , so I ran… Continue Reading
Upgrading Cacti Rumi, September 4, 2011 Backup the old Cacti database. shell> mysqldump -l –add-drop-table cacti > mysql.cacti Note: You will probably have to specify the -u and -p flags for the MySQL username and password. This user must have permission to read from Cacti's database or you will end up with an empty backup. Backup… Continue Reading