Page 1 of 1
Nagios service is not getting restarted
Posted: Fri Sep 04, 2015 9:12 am
by wiproltdwiv
Dear Team,
we have killed Nagios PID 6086 and tried to restart the process manually by running (/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg) command.But Nagios process is not getting restarted.Kindly assist.
[root@EMSNagios2 var]# /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
[root@EMSNagios2 var]# ps -ef |grep nagios
root 1118 26680 0 19:34 pts/0 00:00:00 grep nagios
nagios 5751 1 0 2014 ? 00:12:24 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
nagios 6106 1 0 2014 ? 00:03:45 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
[root@EMSNagios2 var]#
Re: Nagios service is not getting restarted
Posted: Fri Sep 04, 2015 10:48 am
by tgriep
Try running the following to start the nagios process
If it doesn't start, check the following log files to see why.
Code: Select all
/usr/local/nagios/var/nagios.log
/var/log/messages
Re: Nagios service is not getting restarted
Posted: Fri Sep 04, 2015 11:23 am
by wiproltdwiv
Please find the below results.
[root@EMSNagios2 ~]# tail -f /var/log/messages
Sep 4 21:33:20 EMSNagios2 xinetd[5001]: START: nrpe pid=14587 from=::ffff:10.128.17.12
Sep 4 21:33:21 EMSNagios2 xinetd[5001]: EXIT: nrpe status=0 pid=14587 duration=1(sec)
Sep 4 21:33:23 EMSNagios2 xinetd[5001]: START: nrpe pid=14695 from=::ffff:10.128.17.12
Sep 4 21:33:23 EMSNagios2 xinetd[5001]: EXIT: nrpe status=0 pid=14695 duration=0(sec)
Sep 4 21:34:14 EMSNagios2 xinetd[5001]: START: nrpe pid=14784 from=::ffff:10.128.17.12
Sep 4 21:34:14 EMSNagios2 xinetd[5001]: EXIT: nrpe status=0 pid=14784 duration=0(sec)
Sep 4 21:36:08 EMSNagios2 xinetd[5001]: START: nrpe pid=14956 from=::ffff:10.128.17.12
Sep 4 21:36:08 EMSNagios2 xinetd[5001]: EXIT: nrpe status=0 pid=14956 duration=0(sec)
Sep 4 21:36:29 EMSNagios2 xinetd[5001]: START: nrpe pid=14968 from=::ffff:10.128.17.12
Sep 4 21:36:29 EMSNagios2 xinetd[5001]: EXIT: nrpe status=0 pid=14968 duration=0(sec)
Re: Nagios service is not getting restarted
Posted: Fri Sep 04, 2015 11:26 am
by wiproltdwiv
I hhave tried to to restart the nagios services by running ( service nagios restart , service nagios start ,/etc/init.d/nagios start )commands.But it is not coming up.
Re: Nagios service is not getting restarted
Posted: Fri Sep 04, 2015 11:35 am
by ssax
Are you seeing anything in your /usr/local/nagios/var/nagios.log?
Are you getting any error when it tries to start?
Are you running out of disk space?
What is the output of this command?
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Re: Nagios service is not getting restarted
Posted: Fri Sep 04, 2015 11:50 am
by wiproltdwiv
we are not getting error after starting the nagios services.Please find the below details.
[root@EMSNagios2 ~]# service nagios start
Starting nagios: done.
[root@EMSNagios2 ~]# service nagios status
nagios is not running
[root@EMSNagios2 ~]#
[root@EMSNagios2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_emsnagios2-LogVol00
50G 36G 12G 76% /
tmpfs 16G 112K 16G 1% /dev/shm
/dev/sda1 243M 34M 196M 15% /boot
/dev/mapper/vg_emsnagios2-LogVol02
9.9G 3.4G 6.1G 36% /tmp
/dev/mapper/vg_emsnagios2-LogVol03
65G 42G 20G 69% /usr
/dev/mapper/vg_emsnagios2-LogVol01
41G 8.0G 31G 21% /var
/dev/mapper/vg_EMSNagios2-vg_EMSNagios2--lv_EMSNagios2
281G 33G 234G 13% /EMSNagios2
/dev/mapper/vg_EMSNagios1-vg_EMSNagios1--lv_EMSNagios1
50G 3.2G 44G 7% /media/0be5dc4c-5a81-4338-a13e-c68e057cae0c
/dev/mapper/vg_emsnagios2-LogVol04
86G 184M 82G 1% /media/bcba47d5-c395-4cb8-ad9c-7de8370436a8
[root@EMSNagios2 ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg_emsnagios2-LogVol00
3276800 31207 3245593 1% /
tmpfs 4116992 7 4116985 1% /dev/shm
/dev/sda1 64000 44 63956 1% /boot
/dev/mapper/vg_emsnagios2-LogVol02
655360 349 655011 1% /tmp
/dev/mapper/vg_emsnagios2-LogVol03
4268032 1488544 2779488 35% /usr
/dev/mapper/vg_emsnagios2-LogVol01
2686976 17086 2669890 1% /var
/dev/mapper/vg_EMSNagios2-vg_EMSNagios2--lv_EMSNagios2
18677760 682 18677078 1% /EMSNagios2
/dev/mapper/vg_EMSNagios1-vg_EMSNagios1--lv_EMSNagios1
3270400 57944 3212456 2% /media/0be5dc4c-5a81-4338-a13e-c68e057cae0c
/dev/mapper/vg_emsnagios2-LogVol04
5718016 11 5718005 1% /media/bcba47d5-c395-4cb8-ad9c-7de8370436a8
[root@EMSNagios2 ~]#
Re: Nagios service is not getting restarted
Posted: Fri Sep 04, 2015 12:14 pm
by hsmith
ssax wrote:
What is the output of this command?
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Can you please check this?