nagios notes

From thelinuxwiki
Revision as of 11:24, 30 April 2021 by Nighthawk (Talk | contribs)

Jump to: navigation, search

rtfm link - nagios 4


Contents

host definitions

templates

minimal host template

define host {
		name		linux_server_template
		use		generic_host
		register	0
}

use : the template that this definition inherits from

register: 0 = don't treat it as a real host definition (it's a template)

troubleshooting inheritence

view all attributes inherited for an object in var/objects.cache

regenerated on nagios startup


distributed monitoring

central nagios server - active check are limited or there are none. checks are passive, monitoring data/status is received via "external commands" submitted through ocpd

to be added...

dummy command checks

active/passive checking

Host and Service Freshness Checks


check_freshness 1 freshness_threshold <seconds until unknown/stale state>

add "process_perf_data 1" to generic host and service template on collectors to signal ocpd to tranfer data for checks to central


ocpd pickups writes from checks to files below and transfers them via nsca to central

var/log/nagios/host-perfdata.fifo 
var/log/nagios/service-perfdata.fifo

config file rc.ocpd

notifications disabled globally for collectors in rc.nagios

send_nsca.cfg contains password for encrypting / decrypting command channel

graphing

Addons for Graphing-and-Trending

Nagios Core - Performance Graphs Using InfluxDB + Nagflux + Grafana + Histou