Joomla Extensions Demo

Support

Do not submit a bug report if you need technical support or have questions.

Forums

Post your suggestions ask for help in the community forums

Contact Me

Missing images/links, any comments, suggestions, need help? Contact me

Skype

Need desperately help?
Skype Me™! But dont abuse of it!

Install Munin Monitoring in Ubuntu 11.10 Oneiric with nginx

Munin is a networked resource monitoring tool that can help analyze resource trends and "what just happened to kill our performance?" problems. It is designed to be very plug and play. A default installation provides a lot of graphs with almost no work.

In Norse mythology Hugin and Munin are the ravens of the god king Odin. They flew all over Midgard for him, seeing and remembering, and later telling him. "Munin" means "memory".

Install Munin by issuing as root

apt-get install munin munin-node munin-plugins-extra

Activate as many plugins as required, there is more than 230 plugins!

acpi                      jmx_                     qmailscan-simple
amavis                    load                     quota_usage_
apache_accesses           loggrep                  samba
apache_processes          lpar_cpu                 selinux_avcstat
apache_volume             lpstat                   sendmail_mailqueue
apc_envunit_              mailman                  sendmail_mailstats
apc_nis                   mailscanner              sendmail_mailtraffic
apt                       mbmon_                   sensors_
apt_all                   memcached_               slapd_
asterisk_channels         memory                   slapd_bdb_cache_
asterisk_channelstypes    mhttping                 slony_lag_
asterisk_codecs           multigraph_tester        smart_
asterisk_meetme           multiping                snmp__cpuload
asterisk_meetmeusers      multips                  snmp__df
asterisk_sipchannels      multips_memory           snmp__fc_if_
asterisk_sippeers         munin_stats              snmp__fc_if_err_
asterisk_voicemail        munin_update             snmp__if_
bind9                     mysql_                   snmp__if_err_
bind9_rndc                mysql_bytes              snmp__if_multi
bonding_err_              mysql_innodb             snmp__load
buddyinfo                 mysql_isam_space_        snmp__memory
cmc_tc_sensor_            mysql_queries            snmp__netapp_diskusage_
colour_tester             mysql_slowqueries        snmp__netapp_inodeusage_
courier_                  mysql_threads            snmp__netstat
courier_mta_mailqueue     named                    snmp__print_pages
courier_mta_mailstats     netopia                  snmp__print_supplies
courier_mta_mailvolume    netstat                  snmp__processes
cps_                      nfs4_client              snmp__rdp_users
cpu                       nfs_client               snmp__sensors_fsc_bx_fan
cpuspeed                  nfsd                     snmp__sensors_fsc_bx_temp
cupsys_pages              nfsd4                    snmp__sensors_fsc_fan
df                        nginx_request            snmp__sensors_fsc_temp
df_abs                    nginx_status             snmp__sensors_mbm_fan
df_inode                  nomadix_users_           snmp__sensors_mbm_temp
dhcpd3                    ntp_                     snmp__sensors_mbm_volt
digitemp_                 ntp_kernel_err           snmp__swap
diskstat_                 ntp_kernel_pll_freq      snmp__uptime
diskstats                 ntp_kernel_pll_off       snmp__users
ejabberd_                 ntp_offset               snmp__winload
entropy                   ntp_states               snmp__winmem
env                       nut_misc                 snort_alerts
exim_mailqueue            nutups_                  snort_bytes_pkt
exim_mailqueue_alt        nut_volts                snort_drop_rate
exim_mailstats            nvidia_                  snort_pattern_match
extinfo_tester            open_files               snort_pkts
fail2ban                  open_inodes              snort_traffic
files_                    openvpn                  spamstats
foldingathome             perdition                squeezebox_
foldingathome_rank        ping_                    squid_cache
foldingathome_wu          plugin.sh                squid_icp
forks                     plugins.history          squid_objectsize
freeradius_acct           pm3users_                squid_requests
freeradius_auth           pop_stats                squid_traffic
freeradius_proxy_acct     port_                    surfboard
freeradius_proxy_auth     postfix_mailqueue        swap
fw_conntrack              postfix_mailstats        sybase_space
fw_forwarded_local        postfix_mailvolume       tcp
fw_packets                postgres_bgwriter        threads
haproxy_                  postgres_cache_          tomcat_
hddtemp                   postgres_checkpoints     tomcat_access
hddtemp2                  postgres_connections_    tomcat_jvm
hddtempd                  postgres_connections_db  tomcat_threads
hddtemp_smartctl          postgres_locks_          tomcat_volume
http_loadtime             postgres_querylength_    uptime
id                        postgres_scans_          users
if_                       postgres_size_           varnish_
if_err_                   postgres_transactions_   vlan_
ifx_concurrent_sessions_  postgres_tuples_         vlan_inetuse_
interrupts                postgres_users           vlan_linkuse_
iostat                    postgres_xlog            vmstat
iostat_ios                processes                vserver_cpu_
ip_                       proc_pri                 vserver_loadavg
ipac-ng                   proxy_plugin             vserver_resources
ipmi_                     ps_                      warning_tester
ipmi_sensor_              psu_                     yum
ircu                      qmailqstat               zimbra_
irqstats                  qmailscan

Here are some I did add to the list of already activated one. Some were added for obvious reason like mysql, nginx and fail2ban to monitor SSH brute force attempt…

cd /etc/munin/plugins/

ln -s /usr/share/munin/plugins/nginx_status nginx_status

ln -s /usr/share/munin/plugins/nginx_request nginx_request

ln -s /usr/share/munin/plugins/mysql_ mysql

ln -s /usr/share/munin/plugins/mysql_queries mysql_queries

ln -s /usr/share/munin/plugins/fail2ban fail2ban

Fail2Ban require root access to the socket of fail2ban, so edit munin-node

vi /etc/munin/plugin-conf.d/munin-node

And append at the end

[fail2ban*]
user root

Restart Munin-node and force the munin-cron process to run the initial html reports or wait 5 minutes…

/etc/init.d/munin-node restart
sudo -u munin munin-cron

Add to the crontab of the user Munin the command to run Munin every 5 minutes:

sudo -u munin crontab –e
*/5 * * * * /usr/bin/munin-cron

Protect the server host where Munin will output its reports

htpasswd -c /etc/nginx/.htpasswd username

Now add a new site to nginx

vi /etc/nginx/sites-enabled/waltercedric
And put at least the following inside

server {
listen       80;
server_name  munin.acme.com;
root /var/cache/munin/www;
location / {
    expires off;
    auth_basic "Munin";
    auth_basic_user_file /etc/nginx/.htpasswd;
}
}

And reload nginx configuration with service nginx reload

You can now point any browser to http://munin.acme.com

You might also like:
Updating PHP5 to PHP 5.3.10 on Ubuntu
106 days ago
Updating PHP5 to PHP 5.3.10 on Ubuntu
Thanks to Nathan Rennie-Waldock. you can have the latest PHP5 5.3.10 running in Ubuntu Oneiric, Na
Vmware Virtual Appliance Ubuntu 11.10 x64 Server
107 days ago
Vmware Virtual Appliance Ubuntu 11.10 x64 Server
Download and install the latest  VMware Player 4.0.2 to run this Virtual Appliance “Ubuntu 11
Vmware Virtual Appliance Ubuntu 11.10 x64 Desktop
107 days ago
Vmware Virtual Appliance Ubuntu 11.10 x64 Desktop
Download and install VMware Player 4.0.2 to run this Virtual Appliance “Ubuntu 11.10 x64 Server”
Updating PHP5 to PHP 5.3.9 on Ubuntu 11.10 Oneiric
108 days ago
Updating PHP5 to PHP 5.3.9 on Ubuntu 11.10 Oneiric
Thanks to Ondřej Surý,  maintainer for some Debian packages, you can have the latest PHP5 m
Ubuntu update to the latest nginx 1.1.13
113 days ago
Ubuntu update to the latest nginx 1.1.13
Here is how to update in Ubuntu Oneiric 11.10  to the latest development version of nginx (1.
Updating From Ubuntu 10.04 LTS to Ubuntu 11.10
124 days ago
Updating From Ubuntu 10.04 LTS to Ubuntu 11.10
Make sure that your data are safe and that your backups are working and in a safe place: obviou
Backup Your Ubuntu/Debian Server Automatically
348 days ago
Backup Your Ubuntu/Debian Server Automatically
I am using ReoBack for this duty REOBack (pronounced "ray-o-back") is a backup solution design
Mod-Evasive and Ubuntu 10.04 LTS
448 days ago
Mod-Evasive and Ubuntu 10.04 LTS
What is mod_evasive? mod_evasive is an evasive maneuvers module for Apache to provide evasi
blog comments powered by Disqus
Category: Ubuntu

Donations

Thank You for supporting my work
Subscribe to me on YouTube

Latest Articles

  • In this series of post I will outline some common techniques to help Joomla extensions development. As you know Jooml... ...
  • CedTag  has been updated to version 2.5.3 and correct a lot of bugs and contains some nice features. CedTag is t... ...
  • CedThumbnails has been updated to version 2.5.5 and contains 1 new features for both Joomla 1.7 and Joomla 2.5. For ex... ...
  • CedSmugmug  has been updated to version 2.5.2 and correct some bugs and contains some nice features. CedSmugmug&... ...
  • If you want an extra gigabyte of storage on your Dropbox account, the online cloud service invites you to compete in i... ...

Subscribe

Latest Comments

Popular Posts

rockettheme advertisement

dropbox logo

Help Us & Leave Feedback!

  • Do you have an excellent article idea you would like to read about here? Share it!
  • Do you have some interesting tips how we could improve our site?
  • Something missing here? Help us make this blog a better place, leave feedback!
We would love to hear from you! Be active! Write us now!