1838134 Members
5535 Online
110124 Solutions
New Discussion

Nagios Errors

 
SOLVED
Go to solution
Allanm
Super Advisor

Nagios Errors

Getting following set of errors while starting the Nagios deamon:

[1207278503] Warning: Host 'localhost' has no services associated with it!

[1207278503] Error: There are no host groups defined!

[1207278503] Warning: Contact group 'IT' is not used in any host/service definitions or host/service escalations!

[1207278503] Warning: Contact group 'SCM' is not used in any host/service definitions or host/service escalations!

Could someone please help.

Thanks,
Allan
4 REPLIES 4
Rick Garland
Honored Contributor
Solution

Re: Nagios Errors

You are missing entries in the cfg files.

localhost has no services - look in the services.cfg & localhost.cfg files

No hostgroups - hostgroups.cfg

etc...

The errors you receive when doing the pre-flight check will tell you what is missing and from which file(s)


The WARNING messages will not prevent nagios from starting, it is the error messages. Up above in your post, make a hostgroup (or several) and then run the pre-flight check again. If all you have are WARNINGS then nagios should start.
Allanm
Super Advisor

Re: Nagios Errors

Hi,

Thanks Rick I was able to go past those errors and now I am able to start the nagios deamon. Attaching the latest issue that I am facing, while I try to open any of the links aka "Tactical Overview" / "Host Detail" etc I get this pop-up window which tells me to open or save the *.cgi file. I am unable to execute the cgi file within the browser.

Please help me in troubleshooting this issue since I am a nagios newbie.

Regards,
Allan.
Allanm
Super Advisor

Re: Nagios Errors

Has this something to do with my Apache configuration. Any help is greatly appreciated.

Thanks,
Allan.
Allanm
Super Advisor

Re: Nagios Errors

It worked once I uncommented the load cgi module.