• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

Nagios on Plesk Installation Trouble (Apache 403 Forbidden Errors)

O

orware

Guest
Hello everyone :).

Yesterday I naively attempted to install Nagios on a Plesk server running RHEL4 using the Fedora Quickstart instructions available here:
http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html

I skipped the prerequisites step because Plesk already has Apache installed, gcc, gd and the other prerequisites installed.

In Step 5, Configuring the Web Interface, I held off on the last step which asked to restart Apache, ("service httpd restart").

I continued all the way until Step 7, started Nagios, and then it was at this point that I restarted Apache.

I immediately went our main website to see if everything was OK...and unfortunately it wasn't.

For every page I received a 403 Forbidden Error with the message "You don't have permission to access / on this server" (or whatever other folder I tried to access).

I checked permissions on the files (in Plesk all httpdocs folders have to belong to the psaserv group and all files and folders within the httpdocs folders need to belong to the psacln group) and everything checked out. The default permissions for the httpdocs folders in Plesk is 750, and the only way I was able to get the sites back up was to change the permissions manually to 751, but that's not a real fix.

I thought the problem was caused by the nagios.conf file that was added into the conf.d folder, but after I removed that and restarted Apache the problem still persisted.
Then I stopped the service and tried removing Nagios using the following thread: http://www.meulie.net/portal_plugins/forum/forum_viewtopic.php?5676.0#post_9464

And then I restarted Apache but that didn't seem to work either.

Then I thought maybe the user/group nagios/nagcmd was causing an issue but after removing those the problem still continued.

At the moment all I want to do is to remove Nagios completely and get my Plesk setup operating normally again and then I'll continue playing with Nagios (but this time on a Virtual Machine setup, not my production environment like a knucklehead).

Any help anyone can provide is tremendously appreciated because Plesk support won't touch this since Nagios is not supported by them and I've tried everything I can think of with my somewhat newb Linux background. The main thing at the moment is that the sites are back up (the Plesk server runs a community college website), but the 751 permission fix is klugdy and I'd like to figure out what the real problem actually is.

Thank you for any assistance you might be able to provide :).
 
Some additional info

Some additional information:
http://www.nagios.org/faqs/viewfaq.php?faq_id=118&expand=false&showdesc=false

The Nagios FAQ article above is supposed to help with machines that are using Suexec. I don't really know whether Plesk is using it or not (running the command to check whether it is on my machine says that it isn't) but within the Plesk folder there is a folder named suexec so I'm wondering if that might be related to the problem.
 
Solution Found

I ran a search here in the Plesk forums (perhaps I should have done that first) and found the following thread:
http://forum.swsoft.com/showthread.php?t=22639&highlight=nagios

And found a solution to the issue.

The problem was that Nagios had deleted apache from the psaserv group so the solution was to run:
usermod -G psaserv apache

Restart apache using:
/etc/init.d/httpd restart

And everything was back in business :)
 
Thanks for the solution! I had the same problem over here and after putting back apache in the psaserv group everything was back online!
 
Back
Top