<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=174062714-11082004><FONT face=Arial size=2>I am trying to set
up a passive check and am having trouble with the services.cfg and
checkcommands.cfg</FONT></SPAN></DIV>
<DIV><SPAN class=174062714-11082004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=174062714-11082004><FONT face=Arial size=2>I found a sample
services.cfg, but it seems to be for the older version of nagios and throws
errors when I run nagios -v </FONT></SPAN></DIV>
<DIV><SPAN class=174062714-11082004><FONT face=Arial size=2>It seems nagios
insists I have settings for max_check_attempts, check_interval
and retry_interval which does seem odd for a passive only
check.</FONT></SPAN></DIV>
<DIV><SPAN class=174062714-11082004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=174062714-11082004><FONT face=Arial size=2>So far in
services.cfg I have:</FONT></SPAN></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=174062714-11082004><FONT
face=Arial size=2>-----------------------------------</FONT></SPAN></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=174062714-11082004></SPAN>#
HTTP 500 Errors<BR>define service{<BR>
host_name
rh2<BR>
service_description
HTTP 500 Errors<BR>
is_volatile
1<BR>
active_checks_enabled
0<BR>
passive_checks_enabled
1<BR>
max_check_attempts
1<BR>
contact_groups
linux-admins,411vm<BR>
notification_interval
240<BR>
notification_period
24x7<BR>
notification_options
c<BR>
check_period
24x7<BR>
normal_check_interval
1<BR>
retry_check_interval
1<BR>
check_command
check_none<BR> }</FONT></DIV>
<DIV align=left><FONT face=Arial size=2><SPAN class=174062714-11082004><FONT
face=Arial size=2>-----------------------------------</FONT></SPAN></FONT></DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial size=2>I define
the check_interval to prevent warnings at startup.</FONT></SPAN></DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial size=2>in
checkcommands.cfg I define check_none (not sure if this is the right way to do
this):</FONT></SPAN></DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial
size=2>-----------------------------------</FONT></SPAN></DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial size=2>#
'check_none' command definition<BR>define
command{<BR>
command_name
check_none<BR>
command_line /bin/echo
""<BR> }</FONT></SPAN></DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial
size=2>-----------------------------------</FONT></SPAN></DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial size=2>I am
successfully sending the packet to the nagios server with:</FONT></SPAN></DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial size=2>echo -e
"rh2;HTTP 500\t0\ttoo many errors test (OK)"| send_nsca -H
nagios</FONT></SPAN></DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial size=2>but, I
get errors in the nagios.log:</FONT></SPAN></DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial
size=2>--------------------------</FONT></SPAN></DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial
size=2>[1092235996] Warning: Unrecognized external command ->
PROCESS_HOST_CHECK_RESULT;rh2;HTTP 500;0;too many errors test
(OK)</FONT></SPAN></DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV align=left><SPAN class=174062714-11082004><FONT face=Arial size=2>Any ideas
out there?</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2>All The Best,</FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2>
<DIV><SPAN class=817051318-30062004><FONT face=Arial size=2>Brian Andrus,
president</FONT></SPAN></DIV>
<DIV><SPAN class=817051318-30062004><FONT face=Arial size=2>Millenia Internet
Services, Inc.</FONT></SPAN></DIV>
<DIV><SPAN class=817051318-30062004><FONT face=Arial size=2>(310)
260-1514</FONT></SPAN></DIV>
<DIV><SPAN class=817051318-30062004><FONT face=Arial size=2><A
title=blocked::http://www.millenia.com
href="BLOCKED::blocked::http://www.millenia.com">http://www.millenia.com</A></FONT></SPAN></DIV></FONT></DIV></FONT></DIV></DIV></BODY></HTML>