Page 1 of 1

Nagios 4.3.2 service not running?

Posted: Mon Jun 19, 2017 11:16 am
by t3dus
Just installed Nagios 4.3.2 on a fresh OS install of Ubuntu (I know instructions say to use CentOS).

Anyways if I put type in:

Code: Select all

service nagios status
it reports that it is running

Code: Select all

â— nagios.service - LSB: Example initscript
   Loaded: loaded (/etc/init.d/nagios; bad; vendor preset: enabled)
   Active: active (running) since Mon 2017-06-19 11:09:58 CDT; 3min 4s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 991 ExecStart=/etc/init.d/nagios start (code=exited, status=0/SUCCESS)
    Tasks: 6
   Memory: 6.1M
      CPU: 100ms
   CGroup: /system.slice/nagios.service
           ├─1000 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
           ├─1004 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─1005 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─1006 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─1007 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           └─1048 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

Jun 19 11:09:58 Orange nagios[1000]: nerd: Channel hostchecks registered successfully
Jun 19 11:09:58 Orange nagios[1000]: nerd: Channel servicechecks registered successfully
Jun 19 11:09:58 Orange nagios[1000]: nerd: Channel opathchecks registered successfully
Jun 19 11:09:58 Orange nagios[1000]: nerd: Fully initialized and ready to rock!
Jun 19 11:09:58 Orange nagios[1000]: wproc: Successfully registered manager as @wproc with query handler
Jun 19 11:09:58 Orange nagios[1000]: wproc: Registry request: name=Core Worker 1004;pid=1004
Jun 19 11:09:58 Orange nagios[1000]: wproc: Registry request: name=Core Worker 1005;pid=1005
Jun 19 11:09:58 Orange nagios[1000]: wproc: Registry request: name=Core Worker 1007;pid=1007
Jun 19 11:09:58 Orange nagios[1000]: wproc: Registry request: name=Core Worker 1006;pid=1006
Jun 19 11:09:58 Orange nagios[1000]: Successfully launched command file worker with pid 1048
but in the web interface it claims it isn't running.

Ideas on how to fix?

Re: Nagios 4.3.2 service not running?

Posted: Mon Jun 19, 2017 11:28 am
by t3dus
Nm. I figured out what the problem is.

I had to do the following:

Code: Select all

apt-get install fcgiwrap
and then

Code: Select all

a2enmod cgi
then rebooted apache2

Code: Select all

service apache2 restart

Re: Nagios 4.3.2 service not running?

Posted: Mon Jun 19, 2017 1:10 pm
by lmiltchev
@t3dus I am glad your issue has been resolved! Can we close this thread?

Re: Nagios 4.3.2 service not running?

Posted: Mon Jun 19, 2017 1:51 pm
by t3dus
yes plz do