Do service cfg files need an actual check

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.
Locked
jag7720
Posts: 14
Joined: Wed Sep 15, 2010 11:24 am

Do service cfg files need an actual check

Post by jag7720 »

We have about 250 servers that are identical and we currently have them all in a service group where we put all the checks except the ping. The ping check is in the actual service cfg for that server.

Nagios squawks during the sanity check when a matching service cfg doesn't exist.

My question is, does the service cfg for a host have to have anything in it? Or can it just exist and I can put the ping check into the service group cfg like all the other checks?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Do service cfg files need an actual check

Post by mguthrie »

I'm pretty sure you'd need to define the service. However, I think you can put the "servicegroups" (or "service_groups", I forget) directive in the service config, and it should apply it to the group.
Locked