Problems on Core 4.3.0
- pelicanmedia
- Posts: 22
- Joined: Wed Feb 22, 2017 5:32 am
- Location: Colchester, Essex, UK
- Contact:
Re: Problems on Core 4.3.0
I am not on Debian. I am on centOS 6.8. Hence why a2enmod does not work, it does not exist.
Re: Problems on Core 4.3.0 - solved - ubuntu 16.04
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.
https://assets.nagios.com/downloads/nag ... ading.html
These steps work. I left out the "sudo" bits. Also note the scripts don't like an existing nagios.conf so it has to disappear instead of being copied.
cd /usr/local/src/nagios-4.3.0
make clean
make all
make install
mv /etc/apache2/sites-enabled/nagios.conf /etc/apache2/sites-enabled/nagios.conf.bak
make install-webconf
a2enmod rewrite
a2enmod request
a2enmod auth_form
a2enmod session_cookie
a2enmod session_crypto
a2enmod cgi
systemctl restart apache2.service
A hat tip to Box293
--Chris
(edit: added quote directive back in)
Last edited by chris_rr on Thu Feb 23, 2017 10:38 am, edited 1 time in total.
- pelicanmedia
- Posts: 22
- Joined: Wed Feb 22, 2017 5:32 am
- Location: Colchester, Essex, UK
- Contact:
Re: Problems on Core 4.3.0
I'm sorry but will people stop posting 'fixes' for Debian, I'm NOT on Debian.
CentOS, I'm on CentOS!
These are the entries in my /etc/httpd/conf/httpd.conf file. As you can see those modules do not exist/not installed.
If I comment out LoadModule session_crypto_module modules/mod_session_crypto.so I get:
If the requirements for Nagios have changed, why are they not checked for/installed when the 'update' is applied ?
CentOS, I'm on CentOS!
These are the entries in my /etc/httpd/conf/httpd.conf file. As you can see those modules do not exist/not installed.
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 ~]#
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Problems on Core 4.3.0
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.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Problems on Core 4.3.0
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.
Re: Problems on Core 4.3.0
I started new trhread on https://support.nagios.com/forum/viewto ... =7&t=42619
-
- Posts: 7
- Joined: Mon Jul 18, 2016 2:03 pm
Re: Problems on Core 4.3.0
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
Where is my Nagios build directory? Like what resides there? Is this where the objects and things are?
Re: Problems on Core 4.3.0
CentOS Linux 6.8, same issue. I reinstalled 4.2.4 and all is working.
Re: Problems on Core 4.3.0
I am reverting the commit that did the whole "login page" "logout link" stuff. It apparently needs more thought and testing, and more clear directions on how to upgrade.
Release 4.3.1 will be out shortly.
Release 4.3.1 will be out shortly.