Nagios service failed to start

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Nagios service failed to start

Post by jyoti22 »

Hi Team,
I am facing the issue with nagios service. When try to start it I get start failed error. Attached is the error screenshot.
Kindly help.

Thanks,
Jyoti
Attachments
Nagios service start failed error
Nagios service start failed error
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios service failed to start

Post by scottwilkerson »

is the process currently running?

Code: Select all

ps -ef|grep nagios
what does this output

Code: Select all

systemctl status nagios
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: Nagios service failed to start

Post by jyoti22 »

Hi Scott,
Please find attached screenshot of command output.
I tried to kill the process and then tried starting but still error. Please help to rectify the issue
Attachments
nagios_error.JPG
nagios_error_1.JPG
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios service failed to start

Post by scottwilkerson »

What does the following display?

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: Nagios service failed to start

Post by jyoti22 »

Thanks scott. I have ran the command and found no error. PFA screenshot.
Attachments
Capture.JPG
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios service failed to start

Post by scottwilkerson »

Let's run this again

Code: Select all

systemctl start nagios
And then send me the output of this

Code: Select all

tail -f /usr/local/nagios/var/nagios.log
tail -f /var/log/messages
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: Nagios service failed to start

Post by jyoti22 »

PF below output

[root@DMSAZPLMON01 ~]# systemctl start nagios
Job for nagios.service failed because the control process exited with error code . See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@DMSAZPLMON01 ~]# tail -f /usr/local/nagios/var/nagios.log


********************************************************************************

[root@DMSAZPLMON01 ~]# tail -f /usr/local/nagios/var/nagios.log
[1524107275] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
[1524107275] Warning: Check of service 'URL: http://DMSAZPWDWS01:8080/dctm-rest/' on host 'DMSAZPWDWS01' timed out after 60.006s!
[1524107275] wproc: Core Worker 1120: job 134352 (pid=13183): Dormant child reaped
[1524107282] wproc: Core Worker 1119: job 134357 (pid=13361) timed out. Killing it
[1524107283] wproc: CHECK job 134357 from worker Core Worker 1119 timed out after 31.01s
[1524107283] wproc: host=DMSAZPWDWS01; service=(null);
[1524107283] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
[1524107283] wproc: stdout line 01: PING CRITICAL - Packet loss = 100%|rta=5000.000000ms;3000.000000;5000.000000;0.000000 pl=100%;80;100;0
[1524107283] Warning: Check of host 'DMSAZPWDWS01' timed out after 31.01 seconds
[1524107283] wproc: Core Worker 1119: job 134357 (pid=13361): Dormant child reaped


******************************************************************8


[root@DMSAZPLMON01 ~]# tail -f /var/log/messages
Jun 28 11:32:01 DMSAZPLMON01 systemd[1]: Created slice User Slice of root.
Jun 28 11:32:01 DMSAZPLMON01 systemd[1]: Starting User Slice of root.
Jun 28 11:32:01 DMSAZPLMON01 systemd[1]: Started Session 15771 of user root.
Jun 28 11:32:01 DMSAZPLMON01 systemd[1]: Starting Session 15771 of user root.
Jun 28 11:32:01 DMSAZPLMON01 systemd[1]: Removed slice User Slice of root.
Jun 28 11:32:01 DMSAZPLMON01 systemd[1]: Stopping User Slice of root.
Jun 28 11:32:02 DMSAZPLMON01 kernel: [963(systemd-logind)]: gsch_umount_hook_fn(/run/user/0,2) doing
Jun 28 11:32:02 DMSAZPLMON01 kernel: gsch_flt_del_mnt(/run/user/0 @ Unknown[1021994(tmpfs)]) done: 0
Jun 28 11:32:02 DMSAZPLMON01 kernel: [963(systemd-logind)]: gsch_umount_hook_fn(/run/user/0,2) done(0)
Jun 28 11:32:06 DMSAZPLMON01 syslog-ng[590]: Log statistics; processed='destination(d_spol)=0', processed='src.internal(s_sys#2)=1138', stamp='src.internal(s_sys#2)=1530184926', processed='center(received)=1138', processed='destination(d_mesg)=139474', processed='destination(d_mail)=0', processed='destination(d_auth)=992', processed='destination(d_mlal)=0', processed='center(queued)=2328926', processed='src.none()=0', stamp='src.none()=0', processed='destination(d_cron)=2129717', processed='global(payload_reallocs)=1299', processed='global(sdata_updates)=0', processed='destination(d_boot)=0', processed='destination(d_kern)=58743', processed='global(msg_clones)=0', processed='source(s_sys)=1138'

Please help. Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios service failed to start

Post by scottwilkerson »

The top log looks like nagios is running.

What is the output of

Code: Select all

ps -ef|grep nagios.cfg
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked