Difference between revisions of "nagios notes"
From thelinuxwiki
(→troubleshooting inheritence) |
|||
Line 20: | Line 20: | ||
regenerated on nagios startup | 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 | ||
+ | |||
+ | [https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/freshness.html Host and Service Freshness Checks] | ||
+ | |||
+ | |||
+ | check_freshness 1 | ||
+ | freshness_threshold <seconds until unknown/stale state> | ||
[[category:nagios]] | [[category:nagios]] |
Revision as of 19:35, 3 November 2020
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>