<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>[Nagios-users] passive check configuration problems</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV>I don't believe that you can have a space in a service description. I'd be
wary of the ':' too.</DIV>
<DIV> </DIV>
<DIV>--</DIV>
<DIV>Marc</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Peter Hicks
[mailto:petong@jah.net] <BR><B>Sent:</B> Fri 11/21/2003 3:11 PM <BR><B>To:</B>
nagios-users@lists.sourceforge.net <BR><B>Cc:</B> <BR><B>Subject:</B>
[Nagios-users] passive check configuration problems<BR><BR></FONT></DIV>
<P><FONT size=2>Hi list,<BR><BR>I am having some trouble getting passive
alerts working properly. My<BR>setup consists of lrrd sending notifications to
nsca daemon. This part<BR>works correctly. Originally I would see the alert
come through the<BR>nagios log, but would not receive a notification. I now
receive a<BR>notification, but it does not contain the proper information.
(see<BR>below). Could someone point out what I have incorrectly set up in
my<BR>service configuration? (also below) I am looking to have the
alerts<BR>return the proper status information, and I am curious as to why
nagios<BR>reports that the service can not be found.<BR><BR>Thanks for the
help.<BR><BR><BR>------------------------<BR>This is from daemon.log:<BR>Nov
21 12:56:05 zero nsca[16130]: SERVICE CHECK -> Host
Name:<BR>'xxx.xxxxx.xxx', Service Description: 'qmail_mailq: mails',
Return<BR>Code: '1', Output: 'Value is 746.92. Warning range (:700)
exceeded'<BR><BR>------------------------<BR>This is from
nagios.log:<BR>[1069447865] EXTERNAL
COMMAND:<BR>PROCESS_SERVICE_CHECK_RESULT;xxx.xxxxx.xxx;qmail_mailq:
mails;1;Value<BR>is 743.03. Warning range (:700) exceeded<BR><BR>[1069447875]
Warning: Message queue contained results for service<BR>'qmail_mailq:
mails' on host 'xxx.xxxxx.xxx'. The service could not<BR>be
found!<BR><BR>[1069447925] Warning: The results of service 'qmail-mailq:
mails' on<BR>host 'xxx.xxxxx.xxx' are stale by 45 seconds (threshold=315
seconds).<BR>I'm forcing an immediate check of the service.<BR>[1069447935]
SERVICE ALERT: xxx.xxxxx.xxx;qmail-mailq:<BR>mails;UNKNOWN;HARD;1;Incorrect
number of arguments
supplied<BR><BR><BR>------------------------<BR>Notification
email:<BR>Notification Type: PROBLEM<BR><BR>Service: qmail-mailq:
mails<BR>Host: xxx<BR>Address: xxx.xxx.xxx.xxx<BR>State:
UNKNOWN<BR><BR>Date/Time: Fri Nov 21 12:52:15 PST 2003<BR><BR>Additional
Info:<BR><BR>Incorrect number of arguments
supplied<BR><BR><BR>------------------------<BR>Service.cfg excerpt:<BR>define
service{<BR>
host_name
xxx.xxxxx.xxx<BR>
service_description
qmail-mailq: mails<BR>
parallelize_check
0<BR>
obsess_over_service
1 <BR>
check_freshness
1 <BR>
notifications_enabled
1 <BR>
event_handler_enabled
1 <BR>
flap_detection_enabled
0 <BR>
process_perf_data
1<BR>
retain_status_information
0<BR>
retain_nonstatus_information
1<BR>
active_checks_enabled
0<BR>
passive_checks_enabled
1<BR>
is_volatile
1<BR>
check_period
24x7<BR>
max_check_attempts
1<BR>
normal_check_interval
5<BR>
retry_check_interval
1<BR>
contact_groups
test<BR>
notification_interval
120<BR>
notification_period
24x7<BR>
notification_options
w,u,c,r<BR>
check_command
passive_mailq!<BR>
}<BR><BR>------------------------<BR>and finally, my
checkcommands.cfg:<BR>define
command{<BR> command_name
passive_mailq<BR>
command_line $USER1$/check_dummy $ARG1$
$ARG2$<BR>
}<BR><BR></FONT></P></BLOCKQUOTE>
</BODY>
</HTML>