[fixed] httpd and nginx graphs broken

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
websystems
Posts: 8
Joined: Wed Oct 18, 2017 6:34 am

[fixed] httpd and nginx graphs broken

Postby websystems » Wed Oct 18, 2017 6:54 am

Hello

I have just noticed that one of our Vesta VPS (OVH/CentOS7/CloudFlare) stopped showing httpd and nginx graphs (another graphs works ok) yesterday.

I was looking for solution, but no luck. Any hints, how can I debug/fix that?

Image

Thank you in advance,
Krzysztof
Last edited by websystems on Wed Oct 18, 2017 7:35 am, edited 1 time in total.

websystems
Posts: 8
Joined: Wed Oct 18, 2017 6:34 am

Re: httpd and nginx graphs broken

Postby websystems » Wed Oct 18, 2017 7:30 am

Ok, one hour later after some debugging...


Problem: CloudFlare pointed domain to different IP, so /usr/local/vesta/bin/v-update-sys-rrd-nginx could not obtain data from localhost at port 8081 as it was blocked

Fix: /etc/hosts - remove # from line:
127.0.0.1 localhost

websystems
Posts: 8
Joined: Wed Oct 18, 2017 6:34 am

Re: [fixed] httpd and nginx graphs broken

Postby websystems » Tue Oct 24, 2017 7:18 pm

2 days later the problem is back. But now only httpd graphs are broken. Any advice where shall I start the investigation now?

websystems
Posts: 8
Joined: Wed Oct 18, 2017 6:34 am

Re: [fixed] httpd and nginx graphs broken

Postby websystems » Wed Oct 25, 2017 11:26 am

Ok, problem found:


/etc/httpd/conf.d/status.conf

Listen 127.0.0.1:8081
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from *allowed IPs goes here* 127.0.0.1 <-- you can not remove localhost IP from this line, adding it back solved the problem
</Location>


service httpd restart and voila :)


Return to “Web Server”



Who is online

Users browsing this forum: No registered users and 7 guests