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.
Evanion
Posts: 3 Joined: Mon Jan 19, 2015 5:44 am
Post
by Evanion » Mon Jan 19, 2015 5:56 am
So I just followed the tutorial here:
http://www.unixmen.com/install-configur ... -centos-7/
to install nagions core on our C&C server. The server is running Foreman since before.
I had to remove the php_value declarations from /etc/httpd/conf.d/php.conf since the https service didn't like it.
Code: Select all
#php_value session.save_handler "files"
#php_value session.save_path "/var/lib/php/session"
For testing purposes I have disabled foreman by renaming /etc/httpd/conf.d/05-foreman* to /etc/httpd/conf.d/05-foreman*.bak
When I try and access the nagios web GUI, I get the following:
What am I missing?
abrist
Red Shirt
Posts: 8334 Joined: Thu Nov 15, 2012 1:20 pm
Post
by abrist » Mon Jan 19, 2015 3:55 pm
Can you post the apache vhost file for nagios?
Also, are your cgis executable?
Is php installed?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the
Dark Side .
abrist
Red Shirt
Posts: 8334 Joined: Thu Nov 15, 2012 1:20 pm
Post
by abrist » Wed Jan 21, 2015 5:25 pm
Hmmm, all that looks correct, I presume you have tried to restart the apache/httpd service?
Judging by the odd left hand nav pane text, it looks like there may be an issue with the html? Could you post a large tail of your apache/httpd log in code wraps?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the
Dark Side .
Evanion
Posts: 3 Joined: Mon Jan 19, 2015 5:44 am
Post
by Evanion » Mon Jan 26, 2015 4:53 am
No errors in the log:
Code: Select all
# tail -50 /var/log/httpd/error_log
[Mon Jan 26 03:50:03.610144 2015] [auth_digest:notice] [pid 3224] AH01757: generating secret for digest authentication ...
[ 2015-01-26 03:50:03.7877 25691/7fb0b8e3a740 agents/Watchdog/Main.cpp:450 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nobody', 'default_python' => 'python', 'default_ruby' => 'ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_instances_per_app' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/locations.ini', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_pid' => '3224', 'web_server_type' => 'apache', 'web_server_worker_gid' => '48', 'web_server_worker_uid' => '48' }
[ 2015-01-26 03:50:03.7941 25694/7f3a703d3740 agents/HelperAgent/Main.cpp:602 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.3224/generation-3/request
[ 2015-01-26 03:50:03.8523 25700/7fb27ba2e840 agents/LoggingAgent/Main.cpp:318 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.3224/generation-3/logging
[ 2015-01-26 03:50:03.8525 25691/7fb0b8e3a740 agents/Watchdog/Main.cpp:631 ]: All Phusion Passenger agents started!
[Mon Jan 26 03:50:03.934573 2015] [mpm_prefork:notice] [pid 3224] AH00163: Apache/2.4.6 (CentOS) Phusion_Passenger/4.0.18 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Mon Jan 26 03:50:03.934587 2015] [core:notice] [pid 3224] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[ 2015-01-26 04:03:34.8658 25694/7f3a7030a700 Pool2/Spawner.h:738 ]: [App 27722 stdout]
[ 2015-01-26 04:03:38.8829 25694/7f3a7030a700 Pool2/SmartSpawner.h:301 ]: Preloader for /etc/puppet/rack started on PID 27722, listening on unix:/tmp/passenger.1.0.3224/generation-3/backends/preloader.27722
tgriep
Madmin
Posts: 9177 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Mon Jan 26, 2015 1:10 pm
Could you run this and see id there is a user created called nagiosadmin?
Code: Select all
cat /usr/local/nagios/etc/htpasswd.users
Be sure to check out our
Knowledgebase for helpful articles and solutions!