Nagios Service is working but Webinterface shows Error

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.
ardstr
Posts: 8
Joined: Mon Mar 26, 2018 3:15 pm

Re: Nagios Service is working but Webinterface shows Error

Post by ardstr »

Code: Select all

Drücken Sie die Eingabetaste, um mit dem Starten von nano fortzufahren.
  GNU nano 2.2.6                                           Datei: error.log

[Mon Mar 26 06:25:05.059150 2018] [mpm_prefork:notice] [pid 2200] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Mar 26 06:25:05.059162 2018] [core:notice] [pid 2200] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 26 09:01:05.949082 2018] [auth_basic:error] [pid 30619] [client 10.160.124.14:61809] AH01618: user nagisoadmin not found: /nagios/cgi-bin/tac.cgi
[Mon Mar 26 09:01:16.447440 2018] [auth_basic:error] [pid 30546] [client 10.160.124.14:61826] AH01618: user nagisoadmin not found: /nagios/cgi-bin/tac.cgi
[Mon Mar 26 16:18:48.873021 2018] [mpm_prefork:notice] [pid 2200] AH00169: caught SIGTERM, shutting down
[Mon Mar 26 16:19:06.442271 2018] [mpm_prefork:notice] [pid 1518] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Mar 26 16:19:06.442486 2018] [core:notice] [pid 1518] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 26 20:37:19.608523 2018] [mpm_prefork:notice] [pid 1518] AH00169: caught SIGTERM, shutting down
[Mon Mar 26 20:37:32.554430 2018] [mpm_prefork:notice] [pid 1526] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Mar 26 20:37:32.554851 2018] [core:notice] [pid 1526] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 26 20:47:15.416728 2018] [auth_basic:error] [pid 1530] [client 10.139.28.211:59003] AH01617: user nagiosadmin: authentication failure for "/nagios/": Password$
[Mon Mar 26 20:57:01.083951 2018] [mpm_prefork:notice] [pid 1526] AH00169: caught SIGTERM, shutting down
[Mon Mar 26 20:57:15.258427 2018] [mpm_prefork:notice] [pid 1514] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Mar 26 20:57:15.258748 2018] [core:notice] [pid 1514] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 26 21:13:18.547593 2018] [mpm_prefork:notice] [pid 1514] AH00169: caught SIGTERM, shutting down
[Mon Mar 26 21:13:30.972886 2018] [mpm_prefork:notice] [pid 1501] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Mar 26 21:13:30.973292 2018] [core:notice] [pid 1501] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 26 21:30:07.786460 2018] [mpm_prefork:notice] [pid 1501] AH00169: caught SIGTERM, shutting down
[Mon Mar 26 21:30:08.655808 2018] [mpm_prefork:notice] [pid 5176] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Mar 26 21:30:08.655843 2018] [core:notice] [pid 5176] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 26 21:41:40.494447 2018] [mpm_prefork:notice] [pid 5176] AH00169: caught SIGTERM, shutting down
[Mon Mar 26 21:41:51.891268 2018] [mpm_prefork:notice] [pid 1486] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Mar 26 21:41:51.891502 2018] [core:notice] [pid 1486] AH00094: Command line: '/usr/sbin/apache2'
[Mon Mar 26 21:49:49.061986 2018] [mpm_prefork:notice] [pid 1486] AH00169: caught SIGTERM, shutting down
[Mon Mar 26 21:50:01.110880 2018] [mpm_prefork:notice] [pid 1492] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Mar 26 21:50:01.111266 2018] [core:notice] [pid 1492] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 27 15:29:15.572669 2018] [mpm_prefork:notice] [pid 1492] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.160.123.60. Set the 'ServerName' directive globally to suppress this $
[Tue Mar 27 15:29:15.640611 2018] [mpm_prefork:notice] [pid 1492] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Tue Mar 27 15:29:15.640619 2018] [core:notice] [pid 1492] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 27 15:30:08.606407 2018] [mpm_prefork:notice] [pid 1492] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.160.123.60. Set the 'ServerName' directive globally to suppress this $
[Tue Mar 27 15:30:08.667355 2018] [mpm_prefork:notice] [pid 1492] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Tue Mar 27 15:30:08.667362 2018] [core:notice] [pid 1492] AH00094: Command line: '/usr/sbin/apache2'
For me I don't see anything in the log, restartet the apache service a few times during trying other solutons...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Service is working but Webinterface shows Error

Post by scottwilkerson »

Code: Select all

Mär 26 22:43 nagios.lock
I noticed the above, has nagios restarted since you made changes for the nagios.cmd?

Also, what did you change to the nagios.cmd?

I'm really at a loss what else it could be unless nagios was compiled to use a different command user and you changed it to nagcmd
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ardstr
Posts: 8
Joined: Mon Mar 26, 2018 3:15 pm

Re: Nagios Service is working but Webinterface shows Error

Post by ardstr »

I tried to change the premission nagios.cmd
But turned it back. We have another nagios server running with the same configuration for different servers and compared the two system, everything looks the same.

If this could help I can export some Information from the other system...
I guess the secound system is a copy of the main which now makes the issues.

After I got the last code exportert I have restartet the Server but it is still not working :cry:
ardstr
Posts: 8
Joined: Mon Mar 26, 2018 3:15 pm

Re: Nagios Service is working but Webinterface shows Error

Post by ardstr »

Hello together,

I got it!! :D

I guess I messed up the premission on one folder.....

On our secound system the folder /usr/local/nagios/var had this premssions:
drwxrwxr-x 5 nagios nagios 4096 Mär 29 22:28 var

The Server with the Problem had this premssion:
drwxrw-rw- 5 nagios nagios 4096 Mär 29 23:05 var

After changing it with with this command it worked.
user@XXXX:/home/nagios$ sudo chmod 775 /usr/local/nagios/var


Thanks for the great and fast support :D
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Service is working but Webinterface shows Error

Post by tmcdonald »

Glad to hear it! Are we alright to close this up then?
Former Nagios employee
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Service is working but Webinterface shows Error

Post by scottwilkerson »

ardstr wrote:Hello together,

I got it!! :D

I guess I messed up the premission on one folder.....

On our secound system the folder /usr/local/nagios/var had this premssions:
drwxrwxr-x 5 nagios nagios 4096 Mär 29 22:28 var

The Server with the Problem had this premssion:
drwxrw-rw- 5 nagios nagios 4096 Mär 29 23:05 var

After changing it with with this command it worked.
user@XXXX:/home/nagios$ sudo chmod 775 /usr/local/nagios/var


Thanks for the great and fast support :D
Glad to hear you got it, I knew it was permissions but somehow I missed that x..

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked