RES: RES: Re: Fwd: Re: [Nagiosplug-help] Plugin help and needed!

Subhendu Ghosh sghosh at sghosh.org
Wed Apr 23 03:29:35 CEST 2003


Also please check the version of negate you are using.  There was a post 
1.3 relase patch applied to CVS.

-sg

On 21 Apr 2003, Karl DeBisschop wrote:

> On Sun, 2003-04-20 at 15:59, Sandro Vaz (UOL) wrote:
> > Jasmine.
> > 
> > Yeah, there´s a problem. In my checkcommands I´ve put:
> > 
> > define command{
> >         command_name    check_port_closed
> >         command_line    $USER1$/negate "$USER1$/check_tcp -H $HOSTADDRESS$
> > -p 81"
> >         }
> > 
> > And the at Nagios interface we have a critical, where we should have an OK
> > state, because the host has no 81 port open.
> > 
> > Can someone help?
> 
> Use single quotes:
> 
> USER1$/negate '$USER1$/check_tcp -H $HOSTADDRESS$ -p 81'
> 
> Actually, the intent was mo quotes were needed at all, but some released
> versions do no require POSIX ordering of options, so the above should be
> more reliable (since as far as I can tell, not one of you thought to
> mention what version you were using)
> 
> --
> Karl
> 
> > TIA,
> > 
> > SMV
> > 
> > -----Mensagem original-----
> > De: nagios-users-admin at lists.sourceforge.net
> > [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Jasmine
> > Enviada em: domingo, 20 de abril de 2003 14:16
> > Para: Sandro Vaz (UOL); nagios-users at lists.sourceforge.net
> > Assunto: Fwd: RES: Re: [Nagios-users] Fwd: Re: [Nagiosplug-help] Plugin help
> > and needed!
> > 
> > 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Hi 
> > 
> > I have tried that, but nothing happens. So i did an strace and this is how
> > it 
> > looks like. 
> > 
> > $ strace ./negate "./check_tcp -H x.x.x.x -p 80" execve("./negate",
> > ["./negate", "./check_tcp -H x.x.x.x -p 80"], [/* 28 vars 
> > */]) = 0
> > strace: exec: Exec format error
> > 
> > 
> > On Monday 21 April 2003 00:41, you wrote:
> > > Looking at the previous e-mail, I believe it´s...
> > >
> > > ./negate "./check_tcp -H <host> -p <port>"
> > >
> > > HTH,
> > >
> > > SMV
> > >
> > > -----Mensagem original-----
> > > De: nagios-users-admin at lists.sourceforge.net
> > > [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Jasmine 
> > > Enviada em: domingo, 20 de abril de 2003 11:48
> > > Para: nagios-users at lists.sourceforge.net
> > > Assunto: Fwd: Re: [Nagios-users] Fwd: Re: [Nagiosplug-help] Plugin 
> > > help and needed!
> > >
> > >
> > > I still having problems in using the negate script it says to come 
> > > with a wrapped plugin.
> > >
> > > its this how execute it?
> > > ./negate "check_tcp -H x.x.x.x -p 80"?
> > >
> > > the help does not reveal much about how to use it. And, I am not very 
> > > familiar with C language for the source code to see how it works.
> > 

-- 





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list