Hello all,
i have defined in etc/check_mk/main.mk an extra_nagios_conf:
extra_nagios_conf += r"""
define command {
command_name check_host_by_tcp_80
command_line $USER1$/check_tcp -H
$HOSTADDRESS$
-p 80 -w 10 -c 20
}
“”"
And the additional legacy_check for the Nagios Check:
legacy_checks = [
( ( “check_host_by_tcp_80”, “TCP-Port 80”, True), [ “http-only” ], ALL_HOSTS ),
]
Now i want to create a custom_check via wato, will this work, too ?
custom_checks = [
( {‘service_description’: u’Uptime Check for Port 80’,
‘command_line’: ‘$USER1$/check_tcp -H $HOSTADDRESS$ -p
80 -w 10 -c 20’}, [‘http-only’], [ALL_HOSTS], {‘disabled’: True,
‘comment’: u’check_host_by_tcp_80’} ),
] + custom_checks
**Why ? **
- While this checks in the main.mk will not copied to our multisite Servers
- I become an Nagios Error, if i want Upgrade to version 1.2.4p3
regards
Stefan