Unable to get process status

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
realtebo
Posts: 19
Joined: Tue Nov 28, 2017 3:56 am

Unable to get process status

Post 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?
realtebo
Posts: 19
Joined: Tue Nov 28, 2017 3:56 am

Re: Unable to get process status

Post 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;
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to get process status

Post by scottwilkerson »

glad you got it resolved, locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked