Inverting the nagios output

Tom DE BLENDE (DHL BE) Tom.DeBlende at dhl.com
Thu Jul 17 14:09:39 CEST 2003


Like this:

[root at netsaint etc]# ../libexec/check_tcp -H netsaint -p 22
TCP OK - 0 second response time on port 22
[root at netsaint etc]# echo $?
0

[root at netsaint etc]# 
/usr/src/install/nagios/nagios-plugins-1.3.0/plugins/negate 
"../libexec/check_tcp -H netsaint -p 22"
TCP OK - 0 second response time on port 22
[root at netsaint etc]# echo $?
2

pawel.siwek at sgcib.com wrote:

>Do you mean something like this: ./negate | ./check_tcp -H xxx -p yy ??
>
>
>
>
>******************************************************************
>The sender's email address has changed to 
>firstname.lastname@ sgcib.com. You may want to update your 
>personal address book. Please see http://www.sgcib.com for more 
>information.
>                               **
>This message and any attachments (the "message") are confidential
>and intended solely for the addressee(s). Any unauthorised use or
>dissemination is prohibited. E-mails are susceptible to alteration.
>Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates
>shall be liable for the message if altered, changed or falsified.
>                         ***************
>L'adresse mail  de votre correspondant a change en prenom.nom@ sgcib.com.
>Il est recommande de mettre a jour votre carnet d'addresse
>personnel.Pour plus d'informations, aller  sur http://www.sgcib.com
>                               **
>Ce message et toutes les pieces jointes (ci-apres le "message")
>sont confidentiels et etablis a l'intention exclusive de ses
>destinataires. Toute utilisation ou diffusion non autorisee est
>interdite. Tout message electronique est susceptible d'alteration.
>La SOCIETE GENERALE et ses filiales declinent toute
>responsabilite au titre de ce message s'il a ete altere, modifie
>ou falsifie.
>******************************************************************
>
>  
>



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
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