• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

NGINX: Problems with netstat display

P_heck

Basic Pleskian
Hello,

OS Debian 7.8
Plesk version 12.0.18 Update #62

Changed from Apache to NGINX and everything works fine - only problem I have is with the monitoring with OMD/check_mk using the nginx_status plugin:

The plugin states a "netstat -tlnp" (line 35) and then looks for a process called "nginx" (definition in line 45).

After I have changed nginx related entries in the Plesk panel, nginx will be automatically restarted by Plesk and the output from netstat now shows:

"1511/nginx: worker"

So the plugin returns an empty value (as it expects nginx without the colon) causing a warning in the OMD console.

After restarting NGINX on the commandline (service nginx restart), the netstat output now reads:

"5368/nginx"

which is then ok for the monitoring!

Looks for me, that the restart initiated by the panel is causing this different behavior.

Anyone any idea how to avoid nginx starting with the ":_ worker" parameter?

Ciao Peter
 
Why you do not use Plesk watchdog instead of this nginx plugin?
And actually it is not Plesk related issue. Plesk calls reload only, but name of process sets nginx.
I'd suggest you modify plugin so it did readlink /proc/PID/exe and compares it with /usr/sbin/nginx:

[root@ppu12-0 ~]# netstat -tlnp | grep nginx
tcp 0 0 10.58.103.102:443 0.0.0.0:* LISTEN 3399/nginx
tcp 0 0 10.58.103.102:80 0.0.0.0:* LISTEN 3399/nginx

[root@ppu12-0 ~]# readlink /proc/3399/exe
/usr/sbin/nginx
 
Hello Igor,

thanks for the response! Will have a look at Plesk Watchdog.
Will see what I can do with NGINX support. Anyway, a bugfix of the script has already been propagated as a suggestion to GitHub following a bug report I issued there:

41 - pid, proc = parts[6].split('/')
41 + pid, proc = parts[6].lstrip(":").split('/')

Ciao Peter
 
Back
Top