<br><font size=2 face="sans-serif">I am having problems configuring check_dns
and check_dig as dynamic check commands. For instance check_ping
accepts arguments passed from the service.cfg file. I have tried
the same syntax with check_dns and check_dig but keep getting invalid host
name errors.</font>
<br>
<br><font size=2 face="sans-serif">checkcommand.cfg:</font>
<br><font size=2 face="sans-serif"># 'check_dns' command definition</font>
<br><font size=2 face="sans-serif">define command{</font>
<br><font size=2 face="sans-serif"> command_name
check_dns</font>
<br><font size=2 face="sans-serif"> command_line
$USER1$/check_dig -H $ARG1$ -l $ARG2$</font>
<br>
<br><font size=2 face="sans-serif">service.cfg:</font>
<br><font size=2 face="sans-serif"># Service definition</font>
<br><font size=2 face="sans-serif">define service{</font>
<br><font size=2 face="sans-serif"> use
generic-service ; Name of service
template to use</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> host_name
sun-dmz-1</font>
<br><font size=2 face="sans-serif"> service_description
DNS</font>
<br><font size=2 face="sans-serif"> is_volatile
0</font>
<br><font size=2 face="sans-serif"> check_period
24x7</font>
<br><font size=2 face="sans-serif"> max_check_attempts
5</font>
<br><font size=2 face="sans-serif"> normal_check_interval
5</font>
<br><font size=2 face="sans-serif"> retry_check_interval
2</font>
<br><font size=2 face="sans-serif"> contact_groups
server-admins</font>
<br><font size=2 face="sans-serif"> notification_interval
30</font>
<br><font size=2 face="sans-serif"> notification_period
24x7</font>
<br><font size=2 face="sans-serif"> check_command
check_dig!172.20.0.5,www.ci.bend.or.us</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"><br>
Steve O'Brien<br>
City of Bend<br>
Network Administrator<br>
sobrien@ci.bend.or.us<br>
541-322-6393</font>