AndreBH
(usa Debian)
Enviado em 08/07/2016 - 12:15h
Bom dia Senhores,
Estou iniciando minha caminhada no Nagios hoje. O sistema que estou utilizando é o seguinte:
Debian 8.5
Nagios 4.1.1
Utilizei os 2 links a seguir para instalação/configuração:
https://www.linode.com/docs/websites/lamp/lamp-on-debian-8-jessie
https://www.linode.com/docs/uptime/monitoring/install-nagios-4-on-ubuntu-debian-8
A instalação foi tranquila e sem nenhum contratempo, porém ao acessar a interface Web me deparo com o seguinte erro:
Unable to get process status
E todas as páginas exibem: Internal Server Error
Rodei um tail no /var/log/apache2/error.log e não sinaliza nenhum erro, aparece somente:
[Fri Jul 08 06:26:15.178262 2016] [mpm_prefork:notice] [pid 1575] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations
[Fri Jul 08 06:26:15.178323 2016] [core:notice] [pid 1575] AH00094: Command line: '/usr/sbin/apache2'
Porém quando executo sysctl nagios status....:
● nagios.service - Nagios
Loaded: loaded (/etc/systemd/system/nagios.service; enabled)
Active: active (running) since Sex 2016-07-08 12:00:16 BRT; 6min ago
CGroup: /system.slice/nagios.service
├─11484 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
└─11509 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Jul 08 12:00:15 monitoramento03 nagios[11484]: Nagios 4.1.1 starting... (PID=11484)
Jul 08 12:00:15 monitoramento03 nagios[11484]: Local time is Fri Jul 08 12:00:15 BRT 2016
Jul 08 12:00:15 monitoramento03 nagios[11484]: LOG VERSION: 2.0
Jul 08 12:00:15 monitoramento03 nagios[11484]: qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
Jul 08 12:00:15 monitoramento03 nagios[11484]: qh: core query handler registered
Jul 08 12:00:15 monitoramento03 nagios[11484]: nerd: Channel hostchecks registered successfully
Jul 08 12:00:15 monitoramento03 nagios[11484]: nerd: Channel servicechecks registered successfully
Jul 08 12:00:15 monitoramento03 nagios[11484]: nerd: Channel opathchecks registered successfully
Jul 08 12:00:15 monitoramento03 nagios[11484]: nerd: Fully initialized and ready to rock!
Jul 08 12:00:15 monitoramento03 nagios[11484]: wproc: Successfully registered manager as @wproc with query handler
Jul 08 12:00:15 monitoramento03 nagios[11461]: Starting nagios: done.
Jul 08 12:00:24 monitoramento03 nagios[11484]: Successfully launched command file worker with pid 11509
Jul 08 12:00:24 monitoramento03 nagios[11484]: Unable to run check for service 'Current Load' on host 'localhost'
Jul 08 12:00:55 monitoramento03 nagios[11484]: Unable to run check for service 'Current Users' on host 'localhost'
Jul 08 12:01:33 monitoramento03 nagios[11484]: Unable to run check for service 'HTTP' on host 'localhost'
Jul 08 12:02:09 monitoramento03 nagios[11484]: Unable to run check for service 'PING' on host 'localhost'
Jul 08 12:02:48 monitoramento03 nagios[11484]: Unable to run check for service 'Root Partition' on host 'localhost'
Jul 08 12:03:25 monitoramento03 nagios[11484]: Unable to run check for service 'SSH' on host 'localhost'
Jul 08 12:04:02 monitoramento03 nagios[11484]: Unable to run check for service 'Swap Usage' on host 'localhost'
Jul 08 12:04:38 monitoramento03 nagios[11484]: Unable to run check for service 'Total Processes' on host 'localhost'
Jul 08 12:04:46 monitoramento03 nagios[11484]: Unable to send check for host 'localhost' to worker (ret=-2)
Jul 08 12:05:24 monitoramento03 nagios[11484]: Unable to run check for service 'Current Load' on host 'localhost'
Jul 08 12:05:55 monitoramento03 nagios[11484]: Unable to run check for service 'Current Users' on host 'localhost'
Jul 08 12:06:33 monitoramento03 nagios[11484]: Unable to run check for service 'HTTP' on host 'localhost'
Alguém já passou por situação semelhante e que possa me orientar como corrigir e colocar o Nagios rodando corretamente?
Desde já agradeço a ajuda!!!