• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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