Nagios Core 3.2.3 Error: Could not read object configuration

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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Core 3.2.3 Error: Could not read object configura

Post by ssax »

Do you have a nagios.conf file in this directory?

Code: Select all

/etc/apache2/sites-available/
If so, try this:

Code: Select all

sudo ln -s /etc/apache2/sites-available/nagios.conf /etc/apache2/sites-enabled/nagios.conf
sudo service apache2 restart
Then try it again.
User avatar
Mvasquez
Posts: 6
Joined: Tue Apr 05, 2016 4:16 pm
Location: SCL

Re: Nagios Core 3.2.3 Error: Could not read object configura

Post by Mvasquez »

Code: Select all

root@Nagios:/etc/apache2/sites-available# ln -s /etc/apache2/sites-available/nagios.conf /etc/apache2/sites-enabled/nagios.conf
root@Nagios:/etc/apache2/sites-available# sudo service apache2 restart
bash: sudo: no se encontró la orden
root@Nagios:/etc/apache2/sites-available# service apache2 restart
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
root@Nagios:/etc/apache2/sites-available# /etc/init.d/apache2 restart
[....] Restarting apache2 (via systemctl): apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
 failed!

Code: Select all

root@Nagios:/etc/apache2/sites-available# /etc/init.d/apache2 stop
[ ok ] Stopping apache2 (via systemctl): apache2.service.
root@Nagios:/etc/apache2/sites-available# /etc/init.d/apache2 start
[....] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
 failed!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Core 3.2.3 Error: Could not read object configura

Post by rkennedy »

What is the output from both of the commands listed?

Code: Select all

systemctl status apache2.service
journalctl -xn
Former Nagios Employee
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios Core 3.2.3 Error: Could not read object configura

Post by hsmith »

What's the output of this command?

Code: Select all

systemctl status apache2.service
Former Nagios Employee.
me.
Locked