I installed Nagios and have 9 hosts monitored so far. As I’m reading through nagios how-to’s, many people config their cfg files differently than how I have mine setup. Is there a recommended method? For example, by default, there was a localhost.cfg file and I created additional host definitions as well as creating additional service definitions and it worked like a charm. but now that I want to create additional cfg’s for checking internet connectivity (ping isp nameserver) yet when I restart nagios I’m receiving Running configuration check… CONFIG ERROR! Restart aborted. Check your Nagios configuration.
here’s my internet.cfg file:
use generic-host ; Name of host template to use
alias Google Webserver
Define an optional hostgroup for Linux machines
hostgroup_name web ; The name of the hostgroup
alias Internet connectivityers ; Long name of the group
members google ; Comma separated list of hosts that belong to this group