[Nagiosplug-devel] check_nwstat patch against 1.3.1

Jason Martin jhmartin at toger.us
Tue Jun 1 09:45:04 CEST 2004


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

The attached check_nwstat patch against the 1.3.1 release does the 
following:

>  * 02-06-04 Todd Carter <na_ape_finder at yahoo.com>
>  * Corrected core problem in solaris 2.6 - 2.9 enviroments.
>  * Seems that getopt_long.c returns a NULL value in Solaris and "" in 
Linux.
>  * The result is in solaris this condition causes this plugin to core 
dump


- -Jason Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.5 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQFAvLJil2ODWuqVSBMRAtZAAJ4rsX1+nmAtQ5D/7VdUoYRmAQ5IWgCfY1Zj
MrGODPjOBYK79xGFyEjn54w=
=aN9E
-----END PGP SIGNATURE-----
-------------- next part --------------
22c22
<  * $Id: check_nwstat.c,v 1.4 2003/01/13 12:15:16 kdebisschop Exp $
---
>  * $Id: aws_check_nwstat.c,v 1.1.1.1 2004/02/26 20:29:26 nagios Exp $
23a24,30
>  * Revision:
>  * 02-06-04 Todd Carter <na_ape_finder at yahoo.com>
>  * Corrected core problem in solaris 2.6 - 2.9 enviroments.
>  * Seems that getopt_long.c returns a NULL value in Solaris and "" in Linux.
>  * The result is in solaris this condition causes this plugin to core dump
>  * - corrected. Also corrected in check_tcp, check_udp, check_http, check_nt,
>  * check_overcr and check_dns plugins.
27c34
< #define REVISION "$Revision: 1.4 $"
---
> #define REVISION "$Revision: 1.1.1.1 $"
674,677c681,687
< 			case '?': /* print short usage statement if args not parsable */
< 				printf ("%s: Unknown argument: %s\n\n", progname, optarg);
< 				print_usage();
< 				exit(STATE_UNKNOWN);
---
> 			case '?': 
> 			/* print short usage statement if args not parsable */
> 			/* TEC and JHM Fix 2/6/04 */
> 			if (optarg != NULL)
> 			printf ("%s: Unknown argument: %s\n\n", progname, optarg);
> 			print_usage();
> 			exit(STATE_UNKNOWN);
682c692
< 				print_revision(progname,"$Revision: 1.4 $");
---
> 				print_revision(progname,"$Revision: 1.1.1.1 $");


More information about the Devel mailing list