User Tools

Site Tools


communitycloud:services:monitoring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
communitycloud:services:monitoring [2016/08/30 13:12]
tkilla
communitycloud:services:monitoring [2017/05/12 17:54]
tkilla [Plugins]
Line 3: Line 3:
   * munin graphs   * munin graphs
   * monit service check & alarm system   * monit service check & alarm system
 +
 +
 +===== monit =====
 +
 +syntax is a bit tricky, but it is a reliable system..
 +
 +TBD
 +
 +
 +monit mailq via external script: https://lists.nongnu.org/archive/html/monit-general/2015-01/msg00015.html
  
 ===== munin ===== ===== munin =====
Line 20: Line 30:
   munin-node-configure --suggest   # test    munin-node-configure --suggest   # test 
   munin-node-configure --shell     # install symlinks   munin-node-configure --shell     # install symlinks
 +
 +**Test a plugin:**
 +
 +  munin-run <plugin-name>
 +
 +**Test Server connection:**
 +
 +It should reply with the same hostname as setup in munin.conf. If not, edit munin-node.conf host_name on client
 +
 +  telnet <ip or localhost> <port>   # default port is 4949
 +
  
 **Debug:** **Debug:**
Line 64: Line 85:
  
 ==== Plugins ==== ==== Plugins ====
 +
 +=== smart ===
 +
 +  ln -s /usr/share/munin/plugins/smart_ /etc/munin/plugins/smart_sda
 +  ln -s /usr/share/munin/plugins/smart_ /etc/munin/plugins/smart_sdb
 +
  
 === nginx === === nginx ===
Line 91: Line 118:
     }     }
   }   }
 +
 +required packages:
 +
 +  apt-get install  libio-all-lwp-perl 
  
 /etc/munin/plugin-conf.d/munin-node: /etc/munin/plugin-conf.d/munin-node:
  
   [nginx*]   [nginx*]
-  env.url http://127.0.0.1/nginx_status+   env.url http://127.0.0.1/nginx_status 
 + 
 + 
 +=== apache === 
 + 
 +needs the apache status page 
 + 
 +config: 
 +  [apache] 
 +   env.url   http://127.0.0.1:%d/server-status?auto 
 +   env.ports 80 
 + 
 +packages: 
 +  apt install libwww-perl 
 + 
 +symlinks: 
 +  ln -s /usr/share/munin/plugins/apache_* /etc/munin/plugins/ 
  
  
Line 104: Line 152:
   GRANT PROCESS, REPLICATION CLIENT ON *.* TO 'munin'@'localhost';   GRANT PROCESS, REPLICATION CLIENT ON *.* TO 'munin'@'localhost';
  
-  apt-get install libcache-{perl,cache-perl}+  apt-get install libcache-{perl,cache-perl} libdbd-mysql-perl 
  
 /etc/munin/plugin-conf.d/munin-node: /etc/munin/plugin-conf.d/munin-node:
  
   [mysql*]   [mysql*]
-  env.mysqlconnection DBI:mysql:information_schema;host=127.0.0.1;port=3306 +   env.mysqlconnection DBI:mysql:information_schema;host=127.0.0.1;port=3306 
-  env.mysqluser munin +   env.mysqluser munin 
-  env.mysqlpassword PASSWD_HERE +   env.mysqlpassword PASSWD_HERE 
-  env.cachenamespace munin_mysql_pri+   env.cachenamespace munin_mysql_pri 
 +   
 +   # for myisam / queries..: 
 +   env.mysqlopts -h localhost -u munin --password=PASSWD_HERE 
 + 
 +enable replication graph: 
 +  ln -s /usr/share/munin/plugins/mysql_ /etc/munin/plugins/mysql_replication 
 + 
 +bugfix: https://github.com/munin-monitoring/munin/pull/109/
  
 === php-fpm === === php-fpm ===
Line 130: Line 187:
  
 === todo === === todo ===
 +
 +very good list and setup of plugins: http://kevin.deldycke.com/2011/06/munin-monitor-debian-squeeze-server/
 +
  
 nginx access by project nginx access by project
Line 141: Line 201:
 Alerts: Alerts:
  
-https://www.linuxquestions.org/questions/linux-software-2/munin-changing-cpu-notify-threshold-606308/+Do not work..for me.. yet..: 
 + 
 +  * https://www.linuxquestions.org/questions/linux-software-2/munin-changing-cpu-notify-threshold-606308/ 
 +  * http://blog-en.openalfa.com/how-to-configure-alerts-in-munin
  
  
communitycloud/services/monitoring.txt · Last modified: 2017/09/23 04:09 by tkilla