Page 2 of 2
Re: Error on nagios.service
Posted: Fri Jul 13, 2018 3:53 pm
by parkpia
I typed in the last post and had a capital letter, but I had the command run all in lower case. Thanks.
Re: Error on nagios.service
Posted: Fri Jul 13, 2018 4:11 pm
by lmiltchev
Cannot open main configuration file '/usr/localnagios/etc/Nagios.cfg/ for reading!
Is the path to the nagios config correct in your command ( '/usr/localnagios/etc/')? You are missing the forward slash ("/")... You should have:
Can you run the following command from the command line and show the output?
Re: Error on nagios.service
Posted: Mon Jul 16, 2018 10:21 am
by parkpia
When I ran:
/usr/local/Nagios/bin/Nagios -v /usr/local/Nagios/etc/Nagios.cfg
the error message I received was:
Service has no hosts and/or service_description (config file '/usr/local/Nagios/etc/services/Disk Usage Check.cfg', starting on line 22) Error processing object config files!
sestatus result is:
SELinux status: disabled
Thanks.
Re: Error on nagios.service
Posted: Mon Jul 16, 2018 1:54 pm
by jomann
Did you create the Disk Usage Check.cfg service file? Can you copy what is in there here for us?
Re: Error on nagios.service
Posted: Mon Jul 16, 2018 4:47 pm
by parkpia
There is nothing in the file. It's empty.
Re: Error on nagios.service
Posted: Mon Jul 16, 2018 4:57 pm
by parkpia
I also had an error:
polkitd[614]: Ungregistered Authentication Agent for unix-process

60617788 (system bus name :1.212989...)
Re: Error on nagios.service
Posted: Mon Jul 16, 2018 5:27 pm
by parkpia
I got Monitoring Engine to be started by repairing Nagios.cfg under system directory. Thank you for your help!
Re: Error on nagios.service
Posted: Tue Jul 17, 2018 9:19 am
by tmcdonald
Did you have further (related) questions or are we good to lock this up?