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

Sandro Vaz (UOL) sandromergvaz at uol.com.br
Sun Apr 20 21:59:00 CEST 2003


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?

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.

- -- 
Jasmine Chua
Security Engineer

SecureCiRT Pte Ltd
Blk 750C Chai Chee Road
#04-01 Technopark at ChaiChee
Singapore 469003
Tel: 6243 6800 DID: 6243 6802
Fax: 6441 5119
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+otXBNgvTa7Hj2AURAiMJAJ480TDTezjjX7n6OLdJNIwJ38RwqQCgqQiN
3OXqMAstQfZxD9bBATgde04=
=I1eg
-----END PGP SIGNATURE-----



-------------------------------------------------------
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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 18/4/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 18/4/2003
 



-------------------------------------------------------
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