- [Show pagesource]
- [Old revisions]
- [[unknown link type]]
- []
Table of Contents
NAGIOS
Strana serveru Nagios
Installace Nagiosu:
apt-get install nagios
Operace s procesem:
/etc/init.d/nagios3(nrpe/nagios/...) restart(reload/start/stop)
OR
service nagios3(nagios-nrpe-server/...) restart(reload/start/stop)
Konfigurace
Konfiguracni soubour Nagiosu (obecny):
/etc/nagios3/nagios.cfg
Definice hostu, servicu, hostgroup apod se obvykle provadi v direktorii:
/etc/nagios3/conf.d
Konfiguracni soubory pluginu:
/etc/nagios-plugins/config
Pluginy:
/usr/lib/nagios/plugins
Priklady definic:
HOST
define host{ use generic-host host_name master alias master address master.starlab.cz hostgroups debian-servers,http-servers,ssh-servers,ping-servers,disk-servers,raid-servers,load-servers,smart-servers }
SERVICE
define service{ hostgroup_name load-servers use generic-service service_description check_load check_command check_nrpe_1arg!check_load }
HOSTGROUP
define hostgroup { hostgroup_name load-servers alias CHECK_LOAD servers } }
Verifikace konfiguracnich souboru:
nagios3 -v /etc/nagios3/nagios.cfg
Priklady manualniho distacniho spusteni pluginu na danem serveru:
S NRPE
/usr/lib/nagios/plugins/check_nrpe -H 10.0.4.31 -c check_disk
BEZ NRPE
/usr/lib/nagios/plugins/check_ping -H master.starlab.cz -w 100,10% -c 400,50%
*cesty k souborum v kazdem samotnem jednotlivem systemu se muzou lisit
Prikazy
Vsechny soubory v baliku:
dpkg -L aide
Textovy editor:
vim
netstat (only servers):
netstat -nlpt
touch
IP-adresy:
ip a
Interface up:
ifap -eth0
Procesy:
top
Disk:
df
people/solovyanov.txt · Last modified: 2017/01/23 16:04 by solovyanov