Page 1 of 1

[fixed] httpd and nginx graphs broken

Posted: Wed Oct 18, 2017 6:54 am
by websystems
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

Re: httpd and nginx graphs broken

Posted: Wed Oct 18, 2017 7:30 am
by websystems
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

Re: [fixed] httpd and nginx graphs broken

Posted: Tue Oct 24, 2017 7:18 pm
by websystems
2 days later the problem is back. But now only httpd graphs are broken. Any advice where shall I start the investigation now?

Re: [fixed] httpd and nginx graphs broken

Posted: Wed Oct 25, 2017 11:26 am
by websystems
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 :)