Mudanças entre as edições de "NCPA"
(Criou página com ''''Instalando o NCPA para Check Passivo do Nagios''' 1 - Instalar o epel-release yum install epel-release -y 2 - Instalar o NCPA yum install ncpa -y 3 - Para verificar o se...') |
(Sem diferença)
|
Edição das 13h40min de 25 de fevereiro de 2019
Instalando o NCPA para Check Passivo do Nagios
1 - Instalar o epel-release yum install epel-release -y
2 - Instalar o NCPA yum install ncpa -y
3 - Para verificar o serviço systemctl status ncpa_passive
4 - Editar o arquivo de configuração: vim /usr/local/ncpa/etc/ncpa.cfg
5 - Colocar as info de check passivo para o daemon [nrdp] parent = https://srvlupa.linea.gov.br/nrdp/ token = senhadeacesso hostname = nomedoservidor [plugin directives]
- Plugin path where all plugins will be ran from.¬
plugin_path = /usr/lib64/nagios/plugins/¬
6 - Configurar quais os checks serão feitos no host vim /usr/local/ncpa/etc/ncpa.cfg.d/monitor.cfg
7 - Colocar as entradas: [passive checks]¬ ¬ %HOSTNAME%|__HOST__ = system/agent_version %HOSTNAME%|CPU Usage = cpu/percent --warning 60 --critical 80 --aggregate avg %HOSTNAME%|Swap Usage = memory/swap --warning 60 --critical 80 --units Gi %HOSTNAME%|Memory Usage = memory/virtual --warning 80 --critical 90 --units Gi %HOSTNAME%|Process Count = processes --warning 300 --critical 400 %HOSTNAME%|Root Disk Usage = disk/logical/|/used_percent --warning 80 --critical 90 %HOSTNAME%|Uptime = plugins/check_uptime %HOSTNAME%|Conected Users = plugins/check_users/-w/5/-c/10