Page 3 of 3
Re: New Installation - can not find .cfg file
Posted: Mon Oct 07, 2013 5:17 pm
by Bigpaddy_Irl
- update-rc.d seems to talk differently
What do I put in for the different chkconfig commands now using the update-rc.d commands?
- Oh I see, so is that all I need to do with the rc.d command?
update-rc.d nagios defaults
At the moment I can not access
http://myipaddress/nagios
- rebooted the server and now I can log into nagios via http.
But the gui is terrible....take a look...
Re: New Installation - can not find .cfg file
Posted: Tue Oct 08, 2013 9:19 am
by tmcdonald
Looks weird, that's for sure. Care to show me your apache log?
Code: Select all
tail -n 50 /var/log/apache2/error.log
Please post it in code tags.
Re: New Installation - can not find .cfg file
Posted: Tue Oct 08, 2013 12:14 pm
by Bigpaddy_Irl
Code: Select all
aircontrol@aircontrol:~$ tail -n 50 /var/log/apache2/error.log
[Sun Oct 06 11:06:03 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 configured -- resuming normal operations
[Sun Oct 06 11:22:25 2013] [notice] caught SIGTERM, shutting down
[Sun Oct 06 11:22:26 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 configured -- resuming normal operations
[Sun Oct 06 11:22:41 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/favicon.ico
[Sun Oct 06 11:23:51 2013] [notice] caught SIGTERM, shutting down
[Sun Oct 06 11:23:52 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 configured -- resuming normal operations
[Sun Oct 06 11:43:12 2013] [error] [client 87.xxx.145.2] PHP Warning: MagpieRSS: Failed to fetch http://www.nagios.org/backend/feeds/corepromo and cache is off in /usr/share/nagios3/htdocs/includes/rss/rss_fetch.inc on line 238, referer: http://10.11.13.127/nagios3/main.php
[Sun Oct 06 11:43:12 2013] [error] [client 87.xxx.145.2] PHP Warning: MagpieRSS: Failed to fetch http://www.nagios.org/backend/feeds/frontpage/ and cache is off in /usr/share/nagios3/htdocs/includes/rss/rss_fetch.inc on line 238, referer: http://10.11.13.127/nagios3/main.php
[Sun Oct 06 11:45:45 2013] [error] [client 87.xxx.145.2] PHP Warning: MagpieRSS: Failed to fetch http://www.nagios.org/backend/feeds/corepromo and cache is off in /usr/share/nagios3/htdocs/includes/rss/rss_fetch.inc on line 238, referer: http://10.11.13.127/nagios3/main.php
[Sun Oct 06 11:45:45 2013] [error] [client 87.xxx.145.2] PHP Warning: MagpieRSS: Failed to fetch http://www.nagios.org/backend/feeds/frontpage/ and cache is off in /usr/share/nagios3/htdocs/includes/rss/rss_fetch.inc on line 238, referer: http://10.11.13.127/nagios3/main.php
[Sun Oct 06 15:12:03 2013] [notice] caught SIGTERM, shutting down
[Sun Oct 06 15:12:41 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 configured -- resuming normal operations
[Mon Oct 07 16:46:52 2013] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Mon Oct 07 16:46:54 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 configured -- resuming normal operations
[Mon Oct 07 16:48:17 2013] [notice] caught SIGTERM, shutting down
[Mon Oct 07 16:48:56 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 configured -- resuming normal operations
[Mon Oct 07 16:51:28 2013] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Mon Oct 07 16:51:29 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 configured -- resuming normal operations
[Mon Oct 07 16:51:32 2013] [notice] Graceful restart requested, doing restart
[Mon Oct 07 16:51:32 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Mon Oct 07 16:51:33 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.3 configured -- resuming normal operations
[Mon Oct 07 20:15:29 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios3
[Mon Oct 07 20:15:34 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios
[Mon Oct 07 20:15:37 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/favicon.ico
[Mon Oct 07 22:01:40 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios
[Mon Oct 07 22:01:45 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios3
[Mon Oct 07 22:27:44 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios3
[Mon Oct 07 22:27:48 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios
[Mon Oct 07 23:02:33 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios
[Mon Oct 07 23:03:08 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios
[Mon Oct 07 23:03:11 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios
[Mon Oct 07 23:03:15 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios3
[Mon Oct 07 23:06:35 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios
[Mon Oct 07 23:06:55 2013] [notice] caught SIGTERM, shutting down
[Mon Oct 07 23:07:30 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Mon Oct 07 23:07:54 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios3
[Mon Oct 07 23:07:58 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios4
[Mon Oct 07 23:07:58 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios4
[Mon Oct 07 23:07:58 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios4
[Mon Oct 07 23:07:59 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios4
[Mon Oct 07 23:07:59 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios4
[Mon Oct 07 23:07:59 2013] [error] [client 87.xxx.145.2] File does not exist: /var/www/nagios4
[Mon Oct 07 23:12:22 2013] [error] [client 87.xxx.145.2] File does not exist: /usr/local/nagios/share/<, referer: http://10.11.13.127/nagios/
[Mon Oct 07 23:13:18 2013] [error] [client 87.xxx.145.2] File does not exist: /usr/local/nagios/share/<, referer: http://10.11.13.127/nagios/side.php
[Mon Oct 07 23:13:26 2013] [error] [client 87.xxx.145.2] File does not exist: /usr/local/nagios/share/<, referer: http://10.11.13.127/nagios/
[Mon Oct 07 23:17:37 2013] [error] [client 87.xxx.145.2] File does not exist: /usr/local/nagios/share/<, referer: http://10.11.13.127/nagios/side.php
[Mon Oct 07 23:19:26 2013] [error] [client 87.xxx.145.2] File does not exist: /usr/local/nagios/share/<, referer: http://10.11.13.127/nagios/
Re: New Installation - can not find .cfg file
Posted: Tue Oct 08, 2013 12:31 pm
by tmcdonald
Alright, let's take a step back here. It currently looks like you have not one, not two, but three separate nagios installations...
I am seeing references to /var/www/nagios, /var/www/nagios3, and /var/www/nagios4, which to me looks like an apt-get installation (nagios3), and two source installs (nagios and nagios4).
At this point there are a lot of conflicting files if what I think is happening is correct. Would it be possible to, since this is a new installation, remove all traces of nagios and start from scratch? Or possibly better yet, reinstall Ubuntu entirely if this will only be used for nagios?
Re: New Installation - can not find .cfg file
Posted: Tue Oct 08, 2013 2:03 pm
by Bigpaddy_Irl
I would not be able to reinstall Ubuntu as there is other production apps running on it.
At the beginning, I just used apt-get install nagios3 to install it. But when I went about doing it via source, I just done a apt-get remove nagios and then an autoremove, I thought this would remove everything?
What other commands must I use to get completely rid of it?
Re: New Installation - can not find .cfg file
Posted: Tue Oct 08, 2013 2:12 pm
by tmcdonald
This will remove all configs related to <package>.
Not sure if this will work if you have already uninstalled it without --purge.
As for installing from source, this should install under different directories than using apt-get so there shouldn't really be a ton of problems, but it can't hurt to purge before installing from source.