check_ircd woes

Lance Albertson ramereth at gentoo.org
Thu Oct 30 01:10:21 CET 2003


On Mon, 2003-10-27 at 12:00, Marc Powell wrote:

> - Stop nagios and kill any processes that may remain (I'm thinking there
> might be some because of the intermittent behavior you mention below).

Did that, still not working right.

> - Continue to use the single host instead of hostgroup for now.

Still doing that

> - Start nagios and see if the behavior continues.

Indeed, it does

> - If so, try adding some debugging to check_ircd as below to make sure
> you're getting passed what you think you're getting passed --
> 
> [root at gemini libexec]# diff -C 5 check_ircd check_test 
> *** check_ircd  Thu Aug 15 16:52:33 2002
> --- check_test  Mon Oct 27 11:54:24 2003
> ***************
> *** 192,201 ****
> --- 192,205 ----
>         if ($opt_V) {
>                 print_revision($PROGNAME,'$Revision: 1.3 $ ');
>                 exit $ERRORS{'OK'};
>         }
>   
> + 
> +       print "Host: $opt_H, warning: $opt_w, critical: $opt_c";
> +       exit $ERRORS{'OK'};
> + 
>         if ($opt_h) {print_help(); exit $ERRORS{'OK'};}
>   
>         ($opt_H) || ($opt_H = shift) || usage("Host name/address not
> specified\n");
>         my $remotehost = $1 if ($opt_H =~ /([-.A-Za-z0-9]+)/);
>         ($remotehost) || usage("Invalid host: $opt_H\n");
> 

I added that code, and the values being returned seemed to be right.
Nothing added. I even tried adding the values for -w -c. When I run the
plugin with the added debug, nagios just shows that debug statement. If
I take out those lines, I'm back to my problems.

> - Worst case, try retyping the command definition... Maybe there's some
> weird control characters you can't see that are confusing the plugin.
> Not likley but not out of the realm of possibility. You'll need to
> restart nagios again, of course.

I looked again, nothing weird at all.

define command {
    command_name check_ircd
    command_line $USER1$/check_ircd -H $HOSTADDRESS$
}

I also tried manually setting the path instead of using $USER1$, still
no luck.

Is anyone one else having this problem?? I'm at a loss here.

Thanks,

-- 
Lance Albertson <ramereth at gentoo.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031029/073f4366/attachment.sig>


More information about the Users mailing list