Hi.
I defined a host template like this:
define host {
name linux-server
check_command check-host-alive
use generic-host
max_check_attempts 10
check_interval 5
retry_interval 1
check_period 24x7
contact_groups admins
notification_interval 120
notification_period 24x7
notification_options d,u,r
_LOADCRIT 4,3,2.4
_LOADWARN 3,2,1.8
_PROCCRIT 600
_PROCWARN 450
_ZHOSTNAME localhost
register 0
}
and a service like this:
define service {
hostgroup_name ldap-servers,zimbra-servers
service_description LDAP
use generic-service
check_command check_nrpe!check_tcp!-a '-H
$_ZHOSTNAME$ -p 389'
register 1
}
The problem is that the check command is executed with an EMPTY variable! If I
replace $_ZHOSTNAME$ with $_PROCWARN$ in the service definition the value is
populated correctly.
Why? What's wrong with that variable?
thanks
--
Lorenzo Milesi - [email protected]
YetOpen S.r.l. - http://www.yetopen.it/
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users