I have set-up Nagios with some templates which all work fine.
Yesterday I needed a new .cfg file in order to add more template but every-time I try to check the configuration I get the following error.
Error: Template 'LOP-COU' specified in service definition could not be not found
To double check that the .cfg was being read by Nagios I copied and pasted the same service definition inside the host definition and I got
a duplicate definition error; so I know that the file is being read.
I have setup this new service template not different form many that I have setup before so I am not sure why Nagios is starting to misbehave.
This is how the service is setup inside the new .cfg file:
Code: Select all
define service {
use generic-service
name LOP-COU # LOP = Processor, COU = Count
host_name myserver
servicegroups Processor
service_description Proc_COU
check_command check_procscount_ssh!Processor!1:1
max_check_attempts 1
register 0
}
Code: Select all
define service {
use LOP-COU
host_name myserver
}
Regards