error message template - beginner
Posted: Wed Mar 04, 2015 4:58 pm
Dear Forum,
First thanks for all the volunteer helpers.
This ist my first try with nagios and :qI am just learning and following a book . I am trying to understand creating your own templates .
I created this one template (one file)
define host{
name host-template-generic
register 0
check_command check-host-alive
max_check_attempts 3
check_period 24x7
check_interval 5
retry_interval 2
notification_options d,u,r
}
define host{
name host-template-windows
register 0
use host-template-generic
contact_groups admins
}
define host{
name host-template-linux
register 0
use host-template-generic
contact_groups admins
}
I am getting this error message from nagios:
Error: Template 'host-template-generic' specified in host definition could not be not found (config file '/etc/nagios/example/templates/hosts.cfg', starting on line 34)
Error processing object config files!
How is it possible that nagios can not see the host-template-generic ? The name is correct. What do I not understand or overlook?
Many thanks for helping me in advance.
kristine
First thanks for all the volunteer helpers.
This ist my first try with nagios and :qI am just learning and following a book . I am trying to understand creating your own templates .
I created this one template (one file)
define host{
name host-template-generic
register 0
check_command check-host-alive
max_check_attempts 3
check_period 24x7
check_interval 5
retry_interval 2
notification_options d,u,r
}
define host{
name host-template-windows
register 0
use host-template-generic
contact_groups admins
}
define host{
name host-template-linux
register 0
use host-template-generic
contact_groups admins
}
I am getting this error message from nagios:
Error: Template 'host-template-generic' specified in host definition could not be not found (config file '/etc/nagios/example/templates/hosts.cfg', starting on line 34)
Error processing object config files!
How is it possible that nagios can not see the host-template-generic ? The name is correct. What do I not understand or overlook?
Many thanks for helping me in advance.
kristine