Nagios and Plesk

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
dez
Posts: 1
Joined: Thu Jun 19, 2014 3:44 am

Nagios and Plesk

Post by dez »

Hi,
I've installed nagios on centOS 6.5 with plesk installed too and I keep getting the "Internal server error" when I try to access to "host".
I've tried to install nagios in the plesk directory like /var/www/vhosts/###/nagios-dev/ but it's not working either.
I also disabled SELinux.
I can't find anything wrong in the different log

Apache log :

Code: Select all

Fri Jun 20 13:54:36 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jun 20 13:54:36 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Fri Jun 20 13:54:36 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Fri Jun 20 13:54:36 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Fri Jun 20 13:54:36 2014] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Fri Jun 20 13:54:36 2014] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 20 13:54:36 2014] [notice] Digest: done
[Fri Jun 20 13:54:36 2014] [error] python_init: Python version mismatch, expected '2.6.5', found '2.6.6'.
[Fri Jun 20 13:54:36 2014] [error] python_init: Python executable found '/usr/bin/python'.
[Fri Jun 20 13:54:36 2014] [error] python_init: Python path being used '/usr/lib64/python26.zip:/usr/lib64/python2.6/:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-$
[Fri Jun 20 13:54:36 2014] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Fri Jun 20 13:54:36 2014] [notice] mod_python: using mutex_directory /tmp
[Fri Jun 20 13:54:36 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Fri Jun 20 13:54:36 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Fri Jun 20 13:54:36 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Fri Jun 20 13:54:36 2014] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Fri Jun 20 13:54:36 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.9 mod_python/3.3.1 Python/2.6.6 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips mod_perl/2.0.4 Perl/v5.10.1 con

Nagios log :

Code: Select all

[1403265691] qh: Socket '/var/www/vhosts/emams.info/nagios-dev.emams.info/var/rw/nagios.qh' successfully initialized
[1403265691] qh: core query handler registered
[1403265691] nerd: Channel hostchecks registered successfully
[1403265691] nerd: Channel servicechecks registered successfully
[1403265691] nerd: Channel opathchecks registered successfully
[1403265691] nerd: Fully initialized and ready to rock!
[1403265691] wproc: Successfully registered manager as @wproc with query handler
[1403265691] wproc: Registry request: name=Core Worker 17574;pid=17574
[1403265691] wproc: Registry request: name=Core Worker 17575;pid=17575
[1403265691] wproc: Registry request: name=Core Worker 17576;pid=17576
[1403265691] wproc: Registry request: name=Core Worker 17573;pid=17573
[1403265691] Successfully launched command file worker with pid 17577
I've already installed nagios on a server without plesk, and it works, si I presumed the error is due to plesk.

Thanks in advance ;)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios and Plesk

Post by tmcdonald »

We've seen a lot of issues with things like PHPMyAdmin, cPanel, Plesk, etc.

Code: Select all

[Fri Jun 20 13:54:36 2014] [error] python_init: Python version mismatch, expected '2.6.5', found '2.6.6'.
[Fri Jun 20 13:54:36 2014] [error] python_init: Python executable found '/usr/bin/python'.
[Fri Jun 20 13:54:36 2014] [error] python_init: Python path being used '/usr/lib64/python26.zip:/usr/lib64/python2.6/:/usr/lib64/python2.6/plat-linux2:/usr/lib64/python2.6/lib-$
These seem to suggest that a recent python upgrade has broken compatibility, but my Plesk admin experience is nil so that's just an educated guess.

Some possible fixes:

http://stackoverflow.com/questions/1127 ... mod-python
http://serverfault.com/questions/445179 ... ound-2-6-6
Former Nagios employee
blueeye
Posts: 1
Joined: Tue Apr 26, 2016 6:12 am

Re: Nagios and Plesk

Post by blueeye »

Hello Together
i searched very long to solve my different problems with installing Nagios on my Webserver with plesk.
There are only a few things to do that it works. but it was had to find them. ;)

Here is a short HowTo:
[*] download the Core and the Plugins from nagios.org
[*] make a copy of your "/etc/group" because some installation-routines are removing your apache from his groups
[*] install the Nagios - Core by the manual on nagios.org
[*] at the point with "make install-webconf" you have to copy the content of the config-file /etc/httpd/conf.d/nagios.conf into your apache-config in the Plesk-Domain-administration (HTTP and HTTPS)
[*] disable the Apache-Module "suexec" on the Plesk-Server-Administration / Apache... - i know that it is used for security. but i don't found a sollution to allow the execution of cgi-scripts in /usr/local/nagios/sbin/ and so i always received the SERVER ERROR 500. Some said that i have to compile it ner. But i don't know if this works with PLESK. But my Server only allows connections from my own adress so i thing that i can accept this "security-problem"
[*] if you are using nconf for administration, you should add the user "nagios" to the group psaserv, too. or you don't have access to the Configs in the Webfolder.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios and Plesk

Post by rkennedy »

blueeye wrote:Hello Together
i searched very long to solve my different problems with installing Nagios on my Webserver with plesk.
There are only a few things to do that it works. but it was had to find them. ;)

Here is a short HowTo:
[*] download the Core and the Plugins from nagios.org
[*] make a copy of your "/etc/group" because some installation-routines are removing your apache from his groups
[*] install the Nagios - Core by the manual on nagios.org
[*] at the point with "make install-webconf" you have to copy the content of the config-file /etc/httpd/conf.d/nagios.conf into your apache-config in the Plesk-Domain-administration (HTTP and HTTPS)
[*] disable the Apache-Module "suexec" on the Plesk-Server-Administration / Apache... - i know that it is used for security. but i don't found a sollution to allow the execution of cgi-scripts in /usr/local/nagios/sbin/ and so i always received the SERVER ERROR 500. Some said that i have to compile it ner. But i don't know if this works with PLESK. But my Server only allows connections from my own adress so i thing that i can accept this "security-problem"
[*] if you are using nconf for administration, you should add the user "nagios" to the group psaserv, too. or you don't have access to the Configs in the Webfolder.
Thanks for sharing your solution! Do you mind if we mark this as resolved then?
Former Nagios Employee
Locked