Upgrade from Nagios Core 3.2.3 to 3.5.0 Error messages

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.
rlachica
Posts: 12
Joined: Tue Jul 16, 2013 5:24 pm

Upgrade from Nagios Core 3.2.3 to 3.5.0 Error messages

Post by rlachica »

Hello To All,

I need your help, I upgraded our company existing Nagios Core DIY Free Version 3.2.3 to 3.5.0 using the Nagios Core Fedora Quickstart. I followed the instruction and when I finished I cannot see the host and other monitoring process. Below is what am I getting in the screen

It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.

Please advise how to fix this problem, I would appreciate your help immediately as I am just new in this company and here I screwed up their monitoring program. They are buying the $1,295.00 for Business after they see the upgrade.

Please help, thank you.

Robert
rlachica
Posts: 12
Joined: Tue Jul 16, 2013 5:24 pm

Nagios Core from 3.2.3 to 3.5.0 not working properly

Post by rlachica »

Hello,

I upgraded our companies Nagios Core 3.2.3 to Nagios Core 3.5.0 using the Nagios Core Fedora Quickstart. Now I am seeing this error message:


It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file:

in the following menus:

Host
Services
Host Groups
Problems
Services
(Unhandled)
Host (Unhandled)

It is saying I am missing this:

/usr/local/nagios/var/rw/nagios.cmd

But I can see in the Scheduling List that every devices are in there and are enabled.

Please help. Thank you very much.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Upgrade from Nagios Core 3.2.3 to 3.5.0 Error messages

Post by sreinhardt »

Since these seem to be the same or very similar issues I merged the threads. As for the issues, can you verify that you do have /usr/local/nagios/var/rw/nagios.cmd and it is owned by nagios.nagios or nagios.nagcmd? As you attempt to view pages, have you tried "tail -f /var/log/httpd/error_log" to see what errors are generated? Could you post some of the errors while running that command and opening a few nagios pages?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rlachica
Posts: 12
Joined: Tue Jul 16, 2013 5:24 pm

Re: Upgrade from Nagios Core 3.2.3 to 3.5.0 Error messages

Post by rlachica »

Hello Sir,

Here is the error_log. Thank you for helping I really need this to be solved as I am new to this company.

[Tue Jul 16 10:43:57 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jul 16 10:43:57 2013] [notice] SSL FIPS mode disabled
[Tue Jul 16 10:43:58 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Jul 16 10:43:58 2013] [notice] Digest: done
[Tue Jul 16 10:43:58 2013] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Jul 16 10:43:58 2013] [notice] SSL FIPS mode disabled
[Tue Jul 16 10:43:58 2013] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue Jul 16 10:52:46 2013] [error] [client 10.120.3.61] user not found: /nagios/
[Tue Jul 16 15:07:27 2013] [error] [client 10.120.3.63] File does not exist: /var/www/html/favicon.ico
[Tue Jul 16 15:07:27 2013] [error] [client 10.120.3.63] File does not exist: /var/www/html/favicon.ico

Thank you and waiting for your reply,

Robert Lachica
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Upgrade from Nagios Core 3.2.3 to 3.5.0 Error messages

Post by sreinhardt »

Are you on an ubuntu system, if so what version? Are you upgrading from the nagios3 package to a source based install? I realize it says fedora, but it looks like ubuntu from the web directory. Please also run "ll /usr/local/nagios/var/rw/nagios.cmd"
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rlachica
Posts: 12
Joined: Tue Jul 16, 2013 5:24 pm

Re: Upgrade from Nagios Core 3.2.3 to 3.5.0 Error messages

Post by rlachica »

Hello Sir,

I did the command ll /usr/local/nagios/var/rw/nagios.cmd and there is no such file. I tried locating the file nagios.cmd and I cannot find it. Please advise what to do.

Thank you and waiting for your reply,

Robert
rlachica
Posts: 12
Joined: Tue Jul 16, 2013 5:24 pm

Re: Upgrade from Nagios Core 3.2.3 to 3.5.0 Error messages

Post by rlachica »

Hello Sir,

I also check #cat /etc/issue and it is showing Centos 5.9.

Thank you and regards,

Robert
rlachica
Posts: 12
Joined: Tue Jul 16, 2013 5:24 pm

Re: Upgrade from Nagios Core 3.2.3 to 3.5.0 Error messages

Post by rlachica »

Hello Sir
Below is some information:

Last login: Fri Jul 19 15:09:04 2013 from 10.120.3.66
[root@aws-smsc ~]# tail -f /var/log/httpd/error_log
Undefined identifier: sysUpTime near line 568 of /usr/share/snmp/mibs/DISMAN-EVENT-MIB.txt
[Thu Jul 18 17:03:07 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec),
[Thu Jul 18 17:03:07 2013] [notice] SSL FIPS mode disabled
[Thu Jul 17:03:07 2013] [notice] Digest: generating secret for digest authentication ...
[Thu Jul 18 17:03:07 2013] [notice] Digest: done
[Thu Jul 18 17:03:07 2013] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Thu Jul 18 17:03:07 2013] [notice] SSL FIPS mode disabled
[Thu Jul 18 17:03:07 2013] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Fri Jul 19 14:05:14 2013] [error] [client 10.120.3.66] user nagiosadmin: authentication failure for "/nagios/": Password Mismatch
[Fri Jul 19 14:05:16 2013] [error] [client 10.120.3.66] user nagiosadmin: authentication failure for "/nagios/": Password Mismatch

[root@aws-smsc ~]# ll /usr/local/nagios/var/rw/nagios.cmd
ls: /usr/local/nagios/var/rw/nagios.cmd: No such file or directory
[root@aws-smsc ~]#

Thank you very much. Hoping for your reply.

Robert
rlachica
Posts: 12
Joined: Tue Jul 16, 2013 5:24 pm

Re: Upgrade from Nagios Core 3.2.3 to 3.5.0 Error messages

Post by rlachica »

Hello Spencer,

I got it working by stoping and starting the /etc/init.d/nagios. My only problem now is how come it is only seeing one server which is the local host. What happen to the rest like the linux servers, routers, switch, etc. Do i have to this manually? Where? Please advise.

Thank you very much.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Upgrade from Nagios Core 3.2.3 to 3.5.0 Error messages

Post by slansing »

Are those hosts still visible in /usr/local/nagios/etc/"services/hosts"?
Locked