Difference between revisions of "nagios notes"

From thelinuxwiki
Jump to: navigation, search
(host definitions)
(guide)
Line 1: Line 1:
 
==guide==
 
==guide==
 +
==snmp and OIDs==
 +
Run snmpwalk to view OID descriptions
 +
snmpwalk -v 1 -c public 192.168.56.1
 +
Use snmptranslate to get OID
 +
snmptranslate -On SNMPv2-MIB::sysContact.0
 +
 
===host definitions===
 
===host definitions===
  

Revision as of 01:23, 6 July 2020

Contents

guide

snmp and OIDs

Run snmpwalk to view OID descriptions

snmpwalk -v 1 -c public 192.168.56.1

Use snmptranslate to get OID

snmptranslate -On SNMPv2-MIB::sysContact.0

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)


testing without auth

/etc/nagios/cgi.cfg

use_authentication=0

config reload

# ?????

plugins

/usr/lib/nagios/plugins



* Messages for package net-analyzer/nrpe-2.14:
* If you plan to use "nrpe_check_control" then you may want to specify
* different command and services files. You can override the defaults
* through the "NAGIOS_COMMAND_FILE" and "NAGIOS_SERVICES_FILE" environment variables.
* NAGIOS_COMMAND_FILE=/var/rw/nagios.cmd
* NAGIOS_SERVICES_FILE=/etc/services.cfg
* If you are using the nrpe daemon, remember to edit
* the config file /etc/nagios/nrpe.cfg


* This ebuild has a number of USE flags which determines what nagios is able to monitor.
* Depending on what you want to monitor with nagios, some or all of these USE
* flags need to be set for nagios to function correctly.
* contrib plugins are installed into /usr/lib/nagios/plugins/contrib
* Messages for package net-analyzer/nrpe-2.14:
* If you plan to use "nrpe_check_control" then you may want to specify
* different command and services files. You can override the defaults
* through the "NAGIOS_COMMAND_FILE" and "NAGIOS_SERVICES_FILE" environment variables.
* NAGIOS_COMMAND_FILE=/var/rw/nagios.cmd
* NAGIOS_SERVICES_FILE=/etc/services.cfg
* If you are using the nrpe daemon, remember to edit
* the config file /etc/nagios/nrpe.cfg