This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
communitycloud:services:monitoring [2016/08/30 13:12] tkilla |
communitycloud:services:monitoring [2017/09/23 04:09] (current) 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:// | ||
===== munin ===== | ===== munin ===== | ||
Line 20: | Line 30: | ||
munin-node-configure --suggest | munin-node-configure --suggest | ||
munin-node-configure --shell | munin-node-configure --shell | ||
+ | |||
+ | **Test a plugin:** | ||
+ | |||
+ | munin-run < | ||
+ | |||
+ | **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> | ||
+ | |||
**Debug:** | **Debug:** | ||
Line 64: | Line 85: | ||
==== Plugins ==== | ==== Plugins ==== | ||
+ | |||
+ | === smart === | ||
+ | |||
+ | ln -s / | ||
+ | ln -s / | ||
+ | |||
=== nginx === | === nginx === | ||
Line 91: | Line 118: | ||
} | } | ||
} | } | ||
+ | |||
+ | required packages: | ||
+ | |||
+ | apt-get install | ||
/ | / | ||
[nginx*] | [nginx*] | ||
- | | + | env.url http:// |
+ | |||
+ | |||
+ | === apache === | ||
+ | |||
+ | needs the apache status page | ||
+ | |||
+ | config: | ||
+ | [apache] | ||
+ | | ||
+ | | ||
+ | |||
+ | packages: | ||
+ | apt install libwww-perl | ||
+ | |||
+ | symlinks: | ||
+ | ln -s / | ||
Line 104: | Line 152: | ||
GRANT PROCESS, REPLICATION CLIENT ON *.* TO ' | GRANT PROCESS, REPLICATION CLIENT ON *.* TO ' | ||
- | apt-get install libcache-{perl, | + | apt-get install libcache-{perl, |
/ | / | ||
[mysql*] | [mysql*] | ||
- | | + | env.mysqlconnection DBI: |
- | env.mysqluser munin | + | |
- | env.mysqlpassword PASSWD_HERE | + | |
- | env.cachenamespace munin_mysql_pri | + | |
+ | |||
+ | # for myisam / queries..: | ||
+ | | ||
+ | |||
+ | enable replication graph: | ||
+ | ln -s / | ||
+ | |||
+ | bugfix: https:// | ||
=== php-fpm === | === php-fpm === | ||
Line 128: | Line 185: | ||
env.target https://< | env.target https://< | ||
+ | === processes === | ||
+ | |||
+ | just name the symlink like the program you want to monitor (e.g. rsync): | ||
+ | |||
+ | ln -s / | ||
+ | |||
+ | |||
+ | |||
+ | ---- | ||
=== todo === | === todo === | ||
+ | |||
+ | very good list and setup of plugins: http:// | ||
+ | |||
nginx access by project | nginx access by project | ||
Line 141: | Line 210: | ||
Alerts: | Alerts: | ||
- | https:// | + | Do not work..for me.. yet..: |
+ | |||
+ | * https:// | ||
+ | * http:// | ||