nagios dando erro ao restartar

1. nagios dando erro ao restartar

Walter Alves de Olivera
walteroliveira

(usa CentOS)

Enviado em 28/02/2020 - 08:14h

não estou conseguindo dar restart no nagios, alguém pode me ajudar,da um erro.


  


2. Re: nagios dando erro ao restartar

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 28/02/2020 - 08:17h


Terias como posta o erro
isso ajuda muito


3. erro ao dar estart - Nagios

Walter Alves de Olivera
walteroliveira

(usa CentOS)

Enviado em 29/02/2020 - 09:34h

Prezado Daniel, bom dia.
Distribuição que eu instalei foi o Centos 8
olha o erro que dá.

[root@10 ~]# systemctl start nagios.service

Job for nagios.service failed because the control process exited with error code.
See "systemctl status nagios.service" and "journalctl -xe" for details.




4. erro no nagios

Walter Alves de Olivera
walteroliveira

(usa CentOS)

Enviado em 29/02/2020 - 09:37h

Prezado Daniel olha o status:

[root@10 ~]# systemctl status nagios.service
● nagios.service - Nagios Core 4.4.5
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2020-02-29 09:29:28 -03; 6min ago
Docs: https://www.nagios.org/documentation
Process: 10770 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, s>
Process: 10769 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (>

fev 29 09:29:28 10.1.1.115 nagios[10769]: ***> One or more problems was encountered while proces>
fev 29 09:29:28 10.1.1.115 nagios[10769]: Check your configuration file(s) to ensure that t>
fev 29 09:29:28 10.1.1.115 nagios[10769]: directives and data definitions. If you are upgr>
fev 29 09:29:28 10.1.1.115 nagios[10769]: version of Nagios, you should be aware that some >
fev 29 09:29:28 10.1.1.115 nagios[10769]: may have been removed or modified in this version>
fev 29 09:29:28 10.1.1.115 nagios[10769]: the HTML documentation regarding the config files>
fev 29 09:29:28 10.1.1.115 nagios[10769]: 'Whats New' section to find out what has changed.
fev 29 09:29:28 10.1.1.115 systemd[1]: nagios.service: Control process exited, code=exited statu>
fev 29 09:29:28 10.1.1.115 systemd[1]: nagios.service: Failed with result 'exit-code'.
fev 29 09:29:28 10.1.1.115 systemd[1]: Failed to start Nagios Core 4.4.5.




5. erro nagios

Walter Alves de Olivera
walteroliveira

(usa CentOS)

Enviado em 29/02/2020 - 09:42h

prezado Daniel, segue outro detalhe.]

[root@10 ~]# journalctl -xe
-- A unidade nagios.service está sendo iniciada.
fev 29 09:40:26 10.1.1.115 nagios[11338]: Nagios Core 4.4.5
fev 29 09:40:26 10.1.1.115 nagios[11338]: Copyright (c) 2009-present Nagios Core Development Tea>
fev 29 09:40:26 10.1.1.115 nagios[11338]: Copyright (c) 1999-2009 Ethan Galstad
fev 29 09:40:26 10.1.1.115 nagios[11338]: Last Modified: 2019-08-20
fev 29 09:40:26 10.1.1.115 nagios[11338]: License: GPL
fev 29 09:40:26 10.1.1.115 nagios[11338]: Website: https://www.nagios.org
fev 29 09:40:26 10.1.1.115 nagios[11338]: Reading configuration data...
fev 29 09:40:26 10.1.1.115 nagios[11338]: Read main config file okay...
fev 29 09:40:26 10.1.1.115 nagios[11338]: Warning: Duplicate definition found for hostgroup 'lin>
fev 29 09:40:26 10.1.1.115 nagios[11338]: Error: Could not add object property in file '/usr/loc>
fev 29 09:40:26 10.1.1.115 nagios[11338]: Error: Invalid max_check_attempts value for host 'loca>
fev 29 09:40:26 10.1.1.115 nagios[11338]: Error: Could not register host (config file '/usr/loca>
fev 29 09:40:26 10.1.1.115 nagios[11338]: Error processing object config files!
fev 29 09:40:26 10.1.1.115 nagios[11338]: ***> One or more problems was encountered while proces>
fev 29 09:40:26 10.1.1.115 nagios[11338]: Check your configuration file(s) to ensure that t>
fev 29 09:40:26 10.1.1.115 nagios[11338]: directives and data definitions. If you are upgr>
fev 29 09:40:26 10.1.1.115 nagios[11338]: version of Nagios, you should be aware that some >
fev 29 09:40:26 10.1.1.115 nagios[11338]: may have been removed or modified in this version>
fev 29 09:40:26 10.1.1.115 nagios[11338]: the HTML documentation regarding the config files>
fev 29 09:40:26 10.1.1.115 nagios[11338]: 'Whats New' section to find out what has changed.
fev 29 09:40:26 10.1.1.115 systemd[1]: nagios.service: Control process exited, code=exited statu>
fev 29 09:40:26 10.1.1.115 systemd[1]: nagios.service: Failed with result 'exit-code'.
fev 29 09:40:26 10.1.1.115 systemd[1]: Failed to start Nagios Core 4.4.5.
-- Subject: A unidade nagios.service falhou
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- A unidade nagios.service falhou.



6. Re: nagios dando erro ao restartar

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 29/02/2020 - 11:51h


executa esse comando e posta o log


/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg



7. erro nagios

Walter Alves de Olivera
walteroliveira

(usa CentOS)

Enviado em 29/02/2020 - 18:40h

Prezado Daniel.
veja por favor.

[root@10 ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.4.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-08-20
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for hostgroup 'linux-servers' (config file '/usr/local/nagios/etc/objects/groups.cfg', starting on line 23)
Error: Could not add object property in file '/usr/local/nagios/etc/objects/groups.cfg' on line 25.
Error: Invalid max_check_attempts value for host 'localhost'
Error: Could not register host (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 21)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.


8. erro para abrir o brauser

Walter Alves de Olivera
walteroliveira

(usa CentOS)

Enviado em 29/02/2020 - 20:16h

Daniel, reinstalei tudo.

pra deixar como no tutorial, mas agora não abre o brauser.

pode me ajudar?








Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts