[Nagiosplug-devel] Weird 'No output' problem with new plugin

Gary Wall gary at daimonic.org
Tue Jul 19 05:58:23 CEST 2005


Forgot to CC the list :)

-------- Original Message --------
Subject: Re: [Nagiosplug-devel] Weird 'No output' problem with new plugin
From: "Gary Wall" <gary at daimonic.org>
Date: Tue, July 19, 2005 1:35 pm
To: <gavin at openfusion.com.au>

> Hi Gary,
>
> On Tue, Jul 19, 2005 at 10:42:30AM +0200, Gary Wall wrote:
>> If your plugin is not using strict.pm, and you're running nagios
>>  with
>>
>> an embedded perl interpreter, its likely that its not working because
>>
>> its failing to abide my strict. I had this issue in the past. If
>>  so,
>>
>> just 'use strict;' in your script and make it work from the command
>>
>> line, then try it with nagios again.
>
> Thanks for the suggestion. I am using both 'strict' and warnings, and
> it's working fine from the command line. How do I tell if nagios has
> got an embedded interpreter? (I'm using the DAG packages, so haven't
> built it myself). This is version 1.2, btw.
>
> Any other suggestions anyone? I'm really just baffled about how to
> troubleshoot further. Is there any way of turning up the verbosity of
> the logging nagios does or something?
>

I usually just start nagios with all services removed except the broken
one, in foreground mode under strace, like so:

strace -vfF -o strace.log nagios /etc/nagios/nagios.cfg

It can be annoying but you'll find it sooner or later that way.

//gary







More information about the Devel mailing list