Odkazy:
#
aptitude search nagios|grep ^i
i A nagios-plugins-basic - Plugins for the nagios network monitoring
i nagios3 - A host/service/network monitoring and mana
i A nagios3-common - support files for nagios3
i A nagios3-doc - documentation for nagios3
Příklad 26.2. /etc/default/nagios3
# /etc/default/nagios3 NAGIOSCFG="/etc/nagios3/nagios.cfg" CGICFG="/etc/nagios3/cgi.cfg" NICENESS=5
#
dpkg-reconfigure nagios3-common
Vybral jsem:
heslo uživatele nagiosadmin
Příklad 26.3. Ukázky vytřžené z konfigurací (jyxo)
define host{ use generic-host host_name Gateway-bright alias Gateway-bright address 10.0.0.1 parents Gateway } define host{ use generic-host host_name Dell01 alias Dell01 address 10.0.0.2 parents Gateway-bright }
Před nahráním nové konfigurace je vhodné ji zkontrolovat. Například následujícím příkazem.
#
nagios3 -v /etc/nagios3/nagios.cfg
Příklad 26.4. Definice služby
define service{ host_namehost1
,host2
,host3
, …,hostn
service_descriptionNějakáSlužba
další direktivy
}