Posted in Devops, Information Technology

Monitoring Cheat Sheet

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:
    • Whisper (legacy): fixed-sized database
    • 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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s