Problems on Core 4.3.0

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.
User avatar
pelicanmedia
Posts: 22
Joined: Wed Feb 22, 2017 5:32 am
Location: Colchester, Essex, UK
Contact:

Problems on Core 4.3.0

Post by pelicanmedia »

Hi,

I am having the same issue, as described here. I have just updated following the instructions for upgrading Nagios Core 4 here https://assets.nagios.com/downloads/nag ... ading.html

Main home page shows:
Unable to get process status
Unable to get process status
URL to any of the Current Status pages shows:
/nagios/cgibin/status.cgi was not found
/nagios/cgibin/status.cgi was not found
Location of status.cgi shows:
location of status.cgi
location of status.cgi
Screen Shot 2017-02-22 at 10.38.46.png (10.69 KiB) Viewed 6115 times
Running Nagios on CentOS release 6.8 (Final).


Thanks

Moderator's Note: Topic was split/modified.
User avatar
pelicanmedia
Posts: 22
Joined: Wed Feb 22, 2017 5:32 am
Location: Colchester, Essex, UK
Contact:

Re: Problems on Core 4.3.0

Post by pelicanmedia »

The same issue as in this post https://support.nagios.com/forum/viewto ... =7&t=42587

Moderator decided to split 2 topics with identical issues :?
jfrickson

Re: Problems on Core 4.3.0

Post by jfrickson »

It looks like we forgot to update that https://assets.nagios.com/downloads/nag ... ading.html page. See the UPGRADING file in the tar ball. I'll see about getting the web page updated.
Petr M.
Posts: 29
Joined: Sat Oct 10, 2015 1:24 pm

Re: Problems on Core 4.3.0

Post by Petr M. »

Hi jfrickson,
I don´t undestand what you mean. I red an Upgrade file and there are these 2 things.

1st about "corewindow". It is not relevant to this issue.
2nd is about Login and Logout function, but I don´t want to use this function. It this relevant to my issue? Changing of nagios.conf solve the issue described below?

Thanks, Petr
jfrickson

Re: Problems on Core 4.3.0

Post by jfrickson »

Petr M. wrote:Hi jfrickson,
I don´t undestand what you mean. I red an Upgrade file and there are these 2 things.

1st about "corewindow". It is not relevant to this issue.
2nd is about Login and Logout function, but I don´t want to use this function. It this relevant to my issue? Changing of nagios.conf solve the issue described below?
Yes, it's related to #2. If you really don't want login/logout just add a ScriptAlias /nagios/cgibin "/usr/local/nagios/sbin" to the nagios.conf file.
jfrickson

Re: Problems on Core 4.3.0

Post by jfrickson »

Petr M. wrote:2nd is about Login and Logout function, but I don´t want to use this function.
Just out of curiosity, is there any particular reason you don't want these?
Petr M.
Posts: 29
Joined: Sat Oct 10, 2015 1:24 pm

Re: Problems on Core 4.3.0

Post by Petr M. »

Hi jfrickson,
All nagios users in our company are logged in to Nagios 24/7. Due to the fact there is no reason to use logout function.

Can you share step by step manual how to fix both issues in the screenshots from 1st post please?
I'm not sure if I good understood what must be changed after I make an upgrade to 4.3.0.

Thanks ,Petr
dwhitfield
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

Post by dwhitfield »

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.

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
Of course, we generally assume apache, but Core will run on other web servers. We just don't proviced instructions for those.
chris_rr
Posts: 16
Joined: Fri Dec 09, 2016 3:55 pm

Re: Problems on Core 4.3.0

Post by chris_rr »

On a stock ubuntu 16.04 install, those instructions produce the following upon execution:

#service apache2 restart
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

apache2[22876]: AH00526: Syntax error on line 23 of /etc/apache2/sites-enabled/nagios.conf:
apache2[22876]: Invalid command 'AuthFormLoginRequiredLocation', perhaps misspelled or defined by a module not included in the server configuration
apache2[22876]: Action 'configtest' failed.
apache2[22876]: The Apache error log may have more information.

So... what module/package does 4.3 now require to be installed to make this work?

--C
Pikmin
Posts: 80
Joined: Tue Feb 17, 2015 5:32 pm

Re: Problems on Core 4.3.0

Post by Pikmin »

Centos 7 here, same problem
I have installed mod_session and now I get an error message about something else
AH00526: Syntax error on line 28 of /etc/httpd/conf.d/nagios.conf:
Feb 23 09:56:46 nagios httpd[945]: Invalid command 'SessionCryptoPassphrase', perhaps misspelled or defined by a module not included in the ...iguration
Feb 23 09:56:46 nagios systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE

Maps are not working for me either anymore:
Last Updated: {{lastUpdate | date:'EEE MMM dd HH:mm:ss yyyy'}}
Nagios® Core™ {{json.data.programstatus.version}} - www.nagios.org
Updated every {{updateInterval}} seconds
Logged in as {{json.result.user}}
Warning: Monitoring process may not be running!
Click here for more info.
- Notifications are disabled
- Service checks are disabled
Locked