Error on nagios.service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
parkpia
Posts: 11
Joined: Mon Jul 09, 2018 11:03 am

Re: Error on nagios.service

Post by parkpia »

I typed in the last post and had a capital letter, but I had the command run all in lower case. Thanks.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error on nagios.service

Post 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:

Code: Select all

/usr/local/nagios/etc/
Can you run the following command from the command line and show the output?

Code: Select all

sestatus
Be sure to check out our Knowledgebase for helpful articles and solutions!
parkpia
Posts: 11
Joined: Mon Jul 09, 2018 11:03 am

Re: Error on nagios.service

Post 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.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Error on nagios.service

Post by jomann »

Did you create the Disk Usage Check.cfg service file? Can you copy what is in there here for us?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
parkpia
Posts: 11
Joined: Mon Jul 09, 2018 11:03 am

Re: Error on nagios.service

Post by parkpia »

There is nothing in the file. It's empty.
parkpia
Posts: 11
Joined: Mon Jul 09, 2018 11:03 am

Re: Error on nagios.service

Post by parkpia »

I also had an error:

polkitd[614]: Ungregistered Authentication Agent for unix-process:32452:60617788 (system bus name :1.212989...)
parkpia
Posts: 11
Joined: Mon Jul 09, 2018 11:03 am

Re: Error on nagios.service

Post by parkpia »

I got Monitoring Engine to be started by repairing Nagios.cfg under system directory. Thank you for your help!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Error on nagios.service

Post by tmcdonald »

Did you have further (related) questions or are we good to lock this up?
Former Nagios employee
Locked