To check same services for multiple hosts


#1

Got a direct question about the services.cfg file…
Do i need to add one service block for each host?
Considering that i need to check the same services on every machine …Is there a way to simplify this adding just one entry per service for all them?

Thanks in advance for your help.


#2

HI,

Instead of just one hostname you may enter a comma-separated line of hosts in the service entries in “services.cfg”.

Bear in mind that this will complicate individual configuration of the involved hosts.


#3

Many thanks.


#4

You can also add an hostgroup_name directive. I tried and it worked ! :smiley:
You must create a group with all your host of course.