summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/check_dhcp.c12
-rw-r--r--contrib/check_fping_in.c6
-rw-r--r--contrib/check_rbl.c8
3 files changed, 13 insertions, 13 deletions
diff --git a/contrib/check_dhcp.c b/contrib/check_dhcp.c
index 6a6037f..24b82f9 100644
--- a/contrib/check_dhcp.c
+++ b/contrib/check_dhcp.c
@@ -42,7 +42,7 @@
42#include <arpa/inet.h> 42#include <arpa/inet.h>
43#include <netdb.h> 43#include <netdb.h>
44 44
45#define PROGNAME "check_dhcp" 45const char *progname = "check_dhcp";
46 46
47/*#define DEBUG*/ 47/*#define DEBUG*/
48#define HAVE_GETOPT_H 48#define HAVE_GETOPT_H
@@ -810,7 +810,7 @@ int get_results(void){
810/* print usage help */ 810/* print usage help */
811void print_help(void){ 811void print_help(void){
812 812
813 /*print_revision(PROGNAME,"$Revision$");*/ 813 /*print_revision(progname,"$Revision$");*/
814 814
815 printf("Copyright (c) 2001-2002 Ethan Galstad (nagios@nagios.org)\n\n"); 815 printf("Copyright (c) 2001-2002 Ethan Galstad (nagios@nagios.org)\n\n");
816 printf("This plugin tests the availability of DHCP servers on a network.\n\n"); 816 printf("This plugin tests the availability of DHCP servers on a network.\n\n");
@@ -844,9 +844,9 @@ void print_help(void){
844/* prints usage information */ 844/* prints usage information */
845void print_usage(void){ 845void print_usage(void){
846 846
847 printf("Usage: %s [-s serverip] [-r requestedip] [-t timeout] [-i interface]\n",PROGNAME); 847 printf("Usage: %s [-s serverip] [-r requestedip] [-t timeout] [-i interface]\n",progname);
848 printf(" %s --help\n",PROGNAME); 848 printf(" %s --help\n",progname);
849 printf(" %s --version\n",PROGNAME); 849 printf(" %s --version\n",progname);
850 850
851 return; 851 return;
852 } 852 }
@@ -962,7 +962,7 @@ int call_getopt(int argc, char **argv){
962 962
963 case 'V': /* version */ 963 case 'V': /* version */
964 964
965 /*print_revision(PROGNAME,"$Revision$");*/ 965 /*print_revision(progname,"$Revision$");*/
966 exit(STATE_OK); 966 exit(STATE_OK);
967 967
968 case 'h': /* help */ 968 case 'h': /* help */
diff --git a/contrib/check_fping_in.c b/contrib/check_fping_in.c
index 50fd5ee..9f844b7 100644
--- a/contrib/check_fping_in.c
+++ b/contrib/check_fping_in.c
@@ -35,7 +35,7 @@
35#include "popen.h" 35#include "popen.h"
36#include "utils.h" 36#include "utils.h"
37 37
38#define PROGNAME "check_fping" 38const char *progname = "check_fping_in";
39#define PACKET_COUNT 15 39#define PACKET_COUNT 15
40#define PACKET_SIZE 56 40#define PACKET_SIZE 56
41#define CRITICAL_COUNT 2 41#define CRITICAL_COUNT 2
@@ -379,7 +379,7 @@ int process_arguments(int argc, char **argv)
379 379
380void print_usage(void) 380void print_usage(void)
381{ 381{
382 printf("Usage: %s <host_address> <host_address> [<host_address>] ...\n",PROGNAME); 382 printf("Usage: %s <host_address> <host_address> [<host_address>] ...\n",progname);
383} 383}
384 384
385 385
@@ -389,7 +389,7 @@ void print_usage(void)
389void print_help(void) 389void print_help(void)
390{ 390{
391 391
392 print_revision(PROGNAME,"$Revision$"); 392 print_revision(progname,"$Revision$");
393 393
394 printf 394 printf
395 ("Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at)\n" 395 ("Copyright (c) 1999 Didi Rieder (adrieder@sbox.tu-graz.ac.at)\n"
diff --git a/contrib/check_rbl.c b/contrib/check_rbl.c
index 5c66113..69fdd23 100644
--- a/contrib/check_rbl.c
+++ b/contrib/check_rbl.c
@@ -21,7 +21,7 @@
21#include "popen.h" 21#include "popen.h"
22#include "string.h" 22#include "string.h"
23 23
24#define PROGNAME "check_rbl" 24const char progname = "check_rbl";
25 25
26int process_arguments(int, char **); 26int process_arguments(int, char **);
27int call_getopt(int, char **); 27int call_getopt(int, char **);
@@ -260,7 +260,7 @@ int call_getopt(int argc, char **argv)
260 } 260 }
261 break; 261 break;
262 case 'V': /* version */ 262 case 'V': /* version */
263 print_revision(PROGNAME,"$Revision$"); 263 print_revision(progname,"$Revision$");
264 exit(STATE_OK); 264 exit(STATE_OK);
265 case 'h': /* help */ 265 case 'h': /* help */
266 print_help(); 266 print_help();
@@ -290,7 +290,7 @@ int validate_arguments(void)
290 290
291void print_help(void) 291void print_help(void)
292{ 292{
293 print_revision(PROGNAME,"$Revision$"); 293 print_revision(progname,"$Revision$");
294 printf 294 printf
295 ("Copyright (c) 2000 Karl DeBisschop\n\n" 295 ("Copyright (c) 2000 Karl DeBisschop\n\n"
296 "This plugin uses dig to test whether the specified host is on any RBL lists.\n\n"); 296 "This plugin uses dig to test whether the specified host is on any RBL lists.\n\n");
@@ -325,5 +325,5 @@ void print_usage(void)
325 ("Usage: %s -H hostip -r rblname [-s server] [-t timeout] [-v]\n" 325 ("Usage: %s -H hostip -r rblname [-s server] [-t timeout] [-v]\n"
326 " %s --help\n" 326 " %s --help\n"
327 " %s --version\n", 327 " %s --version\n",
328 PROGNAME,PROGNAME,PROGNAME); 328 progname, progname, progname);
329} 329}