Monitoring Cheat SheetEdit Cheat Sheet
For a product list check Solutions Monitoring
Graphite, Diamond
Enabling Diamond collectors:
echo "enabled = true" >> /etc/diamond/<name>Collector.conf
Checking Diamond collectors:
diamond-setup -p -C <name>Collector
grafana - Graphite / InfluxDB dashboard
Graphite Clustering
Graphite Backends:
o Whisper (legacy): fixed-sized database
o Ceres: sparse data, arbitrary fixed-size resolutions
Munin
Munin - Test Plugins:
/usr/sbin/munin-run <plugin name> # for values
/usr/sbin/munin-run <plugin name> config # for configuration
Munin - Test available plugins
/usr/sbin/munin-node-configure --suggest
# and enable them using
/usr/sbin/munin-node-configure --shell | sh
Munin Server - Manual Update Run:
sudo -u munin /usr/bin/munin-cron
Nagios, Icinga
dmesg Nagios Plugin
Icinga 1 - status.cgi Parameters
Icinga 1 - Object Tricks: Negative hostgroup definitions
define service {
...
hostgroup_name all,!testing
...
}
Icinga 2 - Matching check definitions on hosts/hostgroups
apply Service "MyService" {
# service definition...
assign where host.name == "MyHost1"
assign where match("hostprefix-*", host.name)
assign where "MyHostGroup" in host.groups
}
Mod-Gearman: Nagios distributed checking (previously called Naemon)
Gearman Debugging:
gearman-top
Misc
Jolokia JMX HTTP/JSON bridge + jxm4perl