Re: Problems on Core 4.3.0
Posted: Thu Feb 23, 2017 9:12 am
I am not on Debian. I am on centOS 6.8. Hence why a2enmod does not work, it does not exist.
Support for Nagios products and services
https://support.nagios.com/forum/
Starting with a slight adjustment to the last steps in this:Looks like the new nagios.conf file has been updated and requires some modules. Execute the the following commands and it should work now:
I was able to replicate your issue on a test Ubuntu 16.04 server (clean build) and these commands resolved the issue.Code: Select all
sudo a2enmod rewrite sudo a2enmod request sudo a2enmod auth_form sudo a2enmod session_cookie sudo a2enmod session_crypto sudo a2enmod cgi sudo systemctl restart apache2.service
Let us know how you go.
Code: Select all
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so
# Nagios
LoadModule session_crypto_module modules/mod_session_crypto.so
LoadModule request_module modules/mod_request.so
#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
Code: Select all
[root@centos ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Syntax error on line 205 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_session_crypto.so into server: /etc/httpd/modules/mod_session_crypto.so: cannot open shared object file: No such file or directory
[FAILED]
[root@centos ~]#
Code: Select all
[root@centos ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Syntax error on line 206 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_request.so into server: /etc/httpd/modules/mod_request.so: cannot open shared object file: No such file or directory
[FAILED]
[root@centos ~]#
Please start a new thread for the map issue. This thread got "long" over night, so I don't want to take the time to split all the separate posts...especially when this is partially about the initial Core issue.Pikmin wrote: though map issue is present as well.
Please start a new thread for your map issue. I want to keep this one related to the initial Apache install issue. Thanks!Petr M. wrote: But there are another issues on 4.3.0 now.
Map, Trends and Histogram does not anymore.
These functions display the error in attachment. What´s wrong? Legacy links working fine.
dwhitfield wrote:It depends on what OS you are running, but some (potentially modified) version of the below. It's apache2 instead of httpd for Debian, for example. There's also no conf.d on Debian.
https://support.nagios.com/kb/article.php?id=96 hasn't been rewritten for 4.3.0, but it may help give you some clues depending on your OS. If you aren't comfortable with the apache configs on your OS, it might be wise to wait until we upgrade the documentation.
Of course, we generally assume apache, but Core will run on other web servers. We just don't proviced instructions for those.Code: Select all
cd /etc/httpd/conf.d; cp nagios.conf nagios.conf.bak cd /<the nagios build directory> make install-webconf service restart httpd