Page 1 of 1

Unable to get process status

Posted: Fri Mar 15, 2019 5:47 am
by realtebo
I installed on Debian 9 nagios core + plugins and actually I've the Core daemon running

Code: Select all

# service nagios status
● nagios.service - Nagios Core 4.4.3
   Loaded: loaded (/lib/systemd/system/nagios.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-03-15 11:43:14 CET; 1min 51s ago
     Docs: https://www.nagios.org/documentation
  Process: 40303 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
  Process: 40301 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
 Main PID: 40305 (nagios)
    Tasks: 8 (limit: 19660)
   CGroup: /system.slice/nagios.service
           ├─40305 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
           ├─40306 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─40307 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─40308 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─40309 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─40310 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           ├─40311 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
           └─40312 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

mar 15 11:43:14 indispensa nagios[40305]: qh: echo service query handler registered
mar 15 11:43:14 indispensa nagios[40305]: qh: help for the query handler registered
mar 15 11:43:14 indispensa nagios[40305]: wproc: Successfully registered manager as @wproc with query handler
mar 15 11:43:14 indispensa nagios[40305]: wproc: Registry request: name=Core Worker 40306;pid=40306
mar 15 11:43:14 indispensa nagios[40305]: wproc: Registry request: name=Core Worker 40308;pid=40308
mar 15 11:43:14 indispensa nagios[40305]: wproc: Registry request: name=Core Worker 40309;pid=40309
mar 15 11:43:14 indispensa nagios[40305]: wproc: Registry request: name=Core Worker 40311;pid=40311
mar 15 11:43:14 indispensa nagios[40305]: wproc: Registry request: name=Core Worker 40310;pid=40310
mar 15 11:43:14 indispensa nagios[40305]: wproc: Registry request: name=Core Worker 40307;pid=40307
mar 15 11:43:15 indispensa nagios[40305]: Successfully launched command file worker with pid 40312

But opening the webui I got the infamous

Code: Select all

Unable to get process status
error.

I see this error in nginx logs.

Code: Select all

127.0.0.1 - - [15/Mar/2019:11:45:08 +0100] "GET / HTTP/1.0" 500 737798 "-" "check_http/v2.2.1.git (nagios-plugins 2.2.1)"
What should it be?

Re: Unable to get process status

Posted: Fri Mar 15, 2019 6:03 am
by realtebo
It was simply a typo in the nginx config file.

I fixed changing

Code: Select all

fastcgi_pass    unix:/run/fcgiwrap.sock;
to

Code: Select all

fastcgi_pass    unix:/run/fcgiwrap.socket;

Re: Unable to get process status

Posted: Fri Mar 15, 2019 8:25 am
by scottwilkerson
glad you got it resolved, locking