How does negate work?

Jason Frisvold frisvolj at lafayette.edu
Wed Apr 29 15:26:52 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jason Frisvold wrote:
> What am I missing here?

In a typical case of clicking send just before "getting it" ....  I
figured it out.  It doesn't change the wording you get, it's the exit
value..  Duh..

Ok, I get it.

[root at dev objects]$ /usr/local/nagios/libexec/check_snmp -H 10.0.0.1 -C
public -o .1.3.6.1.4.1.318.1.1.1.4.1.1.0 -s 3 ; echo $?
SNMP CRITICAL - *2* | iso.3.6.1.4.1.318.1.1.1.4.1.1.0=2
2

[root at dev objects]$ /usr/local/nagios/libexec/negate
/usr/local/nagios/libexec/check_snmp -H 10.0.0.1 -C public -o
.1.3.6.1.4.1.318.1.1.1.4.1.1.0 -s 3 ; echo $?
SNMP CRITICAL - *2* | iso.3.6.1.4.1.318.1.1.1.4.1.1.0=2
0


- --
- ---------------------------
Jason Frisvold
Network Engineer
frisvolj at lafayette.edu
- ---------------------------
"What I cannot create, I do not understand"
   - Richard Feynman
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkn4VZwACgkQO80o6DJ8UvkHAQCeOlbj6Bx8vTW3/XUuAqPWgCJb
iH4An1fMclNeNgMcYsSnQPAhewdflYht
=67K9
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
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