munin-node mysql setup
Wed, 03/28/2012 - 13:33 — sandip-
munin-node installed via epel repository.
Install perl-Cache-Cache:
# yum install munin-node perl-Cache-Cache
[mysql*]
env.mysqluser munin
env.mysqlpassword {PASS}
mysql> create user munin@localhost identified by '{PASS}';
mysql> GRANT PROCESS, SUPER ON *.* TO 'munin'@'localh ost';
mysql> GRANT SELECT ON `mysql`.* TO 'munin'@'localh ost';
mysql> flush privileges
munin-node-configure --suggest 2>/dev/null |grep mysql
munin-node-configure --shell | grep mysql | sh
# cd /etc/munin/plugins
# munin-run mysql_connections
- sandip's blog
- Login or register to post comments
- Read more
munin-node and postgresql plugins setup
Sun, 02/05/2012 - 19:37 — sandipWhile setting up munin to monitor postgresql, I was getting "[DBD::Pg not found, and cannot do psql yet]" when running `munin-node-configure --suggest | grep postgres`.
I confirmed that the rpm package "perl-DBI-1.52-2.el5" was indeed installed.
However, when I ran a test against the module, it failed with:
# perl -MDBD::Pg -e 1
Can't load '/usr/lib64/perl5/vendor_ perl/5.8.8/x86_64-linux-thread -multi/auto/DBD/Pg/Pg.so' for module DBD::Pg: libpq.so.4: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.8/x86_64- linux-thread-multi/DynaLoader. pm line 230.
at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.
On checking the library, it returned with "libpq.so.4 => not found":
# ldd /usr/lib64/perl5/vendor_perl/5 .8.8/x86_64-linux-thread-multi /auto/DBD/Pg/Pg.so
linux-vdso.so.1 => (0x00007fffb60bb000)
libpq.so.4 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007fa36d2c2000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa36d845000)
Indeed libpq.so.4 was missing since postgresql90-libs was installed which only includes "libpq.so.5".
To get libpq.so.4, "compat-postgresql-libs" package needed to be installed.
Once installed the perl module test passed and I was able to get the munin plugins linked using:
# munin-node-configure --shell | grep postgres | sh
Munin stats for apache and lighttpd
Wed, 09/02/2009 - 16:49 — sandipGet status of apache (80) and lighttpd (81) on different ports:
This is done at the nodes.
-
Enable apache server-status in httpd.conf :
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
$HTTP["remoteip"] == "127.0.0.1" {
status.status-url   ;   ; = "/server-status"
}
[apache*]
env ports="80 81"
* Test with:
ports="80 83" /etc/munin/plugins/apache_proc esses
lighttpd idle process will be a straight line as total of busy and idle process is always the same when drawn as STACK, . To change this to LINE1:
At the host, edit "/etc/munin/munin.conf" and add the below line to the corresponding host:
apache_processes.idle81.draw LINE1
- sandip's blog
- Login or register to post comments
- Read more
Munin-node Plugin Configurations
Thu, 12/25/2008 - 00:50 — sandipHDD Temperature
You can usually identify which hard disks are on your system by looking in "/proc/ide" and in "/proc/scsi".
# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA &nb sp; Model: WDC WD2500YS-01S Rev: 20.0
Type: Direct-Access   ;   ;   ;   ; ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATA &nb sp; Model: WDC WD2500YS-01S Rev: 20.0
Type: Direct-Access   ;   ;   ;   ; ANSI SCSI revision: 05
`fdisk -l` lists the two drives as "sda" and "sdb".
Installation of Munin and Munin-Node
Tue, 11/04/2008 - 09:45 — manojMunin is network monitoring tool for servers. It uses RRDTool, an open source used to generate graphics and logging server activities.
I am installing and configuring munin on centos 5 x86_64 using yum.
1)First of all, we need to add a RPMforge repository.
rpm -Uhv http://apt.sw.be/redhat/el5/en /x86_64/rpmforge/RPMS//rpmforg e-release-0.3.6-1.el5.rf.x86_6 4.rpm
2)Installing yum
yum -y install munin
3)chaning the ownership of munin web docroot to munin, as by default it goes to root.
chown -R munin:munin /var/www/munin/
- manoj's blog
- Login or register to post comments
- Read more