Still stuck on plug-in...

Brian Wilson wilson at unity.ncsu.edu
Thu Nov 7 17:12:01 CET 2002


On 7 Nov 2002, Kim C. Callis wrote:

> I have tried all sorts of creative ways to get the following plug-ins
> (check_imap. check_pop and check_mysql) to work correctly. From the
> command line, all of these plug-ins work correctly...
>
> [root at web libexec]# ./check_imap mail
> IMAP ok - 0 second response time
> [root at web libexec]# ./check_pop mail
> POP ok - 0 second response time
> [root at web libexec]# ./check_mysql web
> Uptime: 296761  Threads: 1  Questions: 29641  Slow queries: 0  Opens:
> 894  Flush tables: 1  Open tables: 64 Queries per second avg: 0.100
>
> But unfortunately, when it is checked by nagios I get the following:
>
> mail
> IMAP
> CRITICAL 07-11-2002 08:06:20 1d 7h 27m 49s 3/3 (Return code of 127 is
> out of bounds - plugin may be missing)
> POP
> CRITICAL 07-11-2002 08:02:22 1d 7h 24m 29s 3/3 (Return code of 127 is
> out of bounds - plugin may be missing)
> web
> MySQL
> CRITICAL 07-11-2002 08:02:59 1d 7h 26m 59s 3/3 (Return code of 127 is
> out of bounds - plugin may be missing)
>
> So what might I be missing that makes it fail under nagios, but works on
> the commandline?
>
> Thanks,
>
> Kim C. Callis
>
>

Check and make sure nagios is looking for the plugins in the correct
directory..  Most likely this is configured in resource.cfg and will look
something like this:

$USER1$=/usr/lib/netsaint/plugins

Chances are it's pointing to /usr/lib/nagios/plugins and you're trying to
use netsaint plugins or vice versa.

Brian

--
Brian Wilson  <wilson at ncsu.edu>      Network Analyst
Communication Technologies, ATD      W: 919.513.3472
North Carolina State University      www.ncstate.net



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en




More information about the Users mailing list