summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0c33862)
raw | patch | inline | side by side (parent: 0c33862)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Mon, 13 Jan 2003 12:21:51 +0000 (12:21 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Mon, 13 Jan 2003 12:21:51 +0000 (12:21 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@239 f882894a-f735-0410-b71e-b25c423dba1c
contrib/check_dhcp.c | patch | blob | history | |
contrib/check_fping_in.c | patch | blob | history | |
contrib/check_rbl.c | patch | blob | history |
diff --git a/contrib/check_dhcp.c b/contrib/check_dhcp.c
index 6a6037f1f75cf68a5ee14e35bb8dce6526c6799b..24b82f98edf1053c34690a2ae11715b68baea9db 100644 (file)
--- a/contrib/check_dhcp.c
+++ b/contrib/check_dhcp.c
#include <arpa/inet.h>
#include <netdb.h>
-#define PROGNAME "check_dhcp"
+const char *progname = "check_dhcp";
/*#define DEBUG*/
#define HAVE_GETOPT_H
/* print usage help */
void print_help(void){
- /*print_revision(PROGNAME,"$Revision$");*/
+ /*print_revision(progname,"$Revision$");*/
printf("Copyright (c) 2001-2002 Ethan Galstad (nagios@nagios.org)\n\n");
printf("This plugin tests the availability of DHCP servers on a network.\n\n");
/* prints usage information */
void print_usage(void){
- printf("Usage: %s [-s serverip] [-r requestedip] [-t timeout] [-i interface]\n",PROGNAME);
- printf(" %s --help\n",PROGNAME);
- printf(" %s --version\n",PROGNAME);
+ printf("Usage: %s [-s serverip] [-r requestedip] [-t timeout] [-i interface]\n",progname);
+ printf(" %s --help\n",progname);
+ printf(" %s --version\n",progname);
return;
}
case 'V': /* version */
- /*print_revision(PROGNAME,"$Revision$");*/
+ /*print_revision(progname,"$Revision$");*/
exit(STATE_OK);
case 'h': /* help */
index 50fd5eea1f2abc9ed7c48f6855217bd976246a3b..9f844b72d3c82a3a6ab203993cb7ccc0c549ae93 100644 (file)
--- a/contrib/check_fping_in.c
+++ b/contrib/check_fping_in.c
#include "popen.h"
#include "utils.h"
-#define PROGNAME "check_fping"
+const char *progname = "check_fping_in";
#define PACKET_COUNT 15
#define PACKET_SIZE 56
#define CRITICAL_COUNT 2
void print_usage(void)
{
- printf("Usage: %s <host_address> <host_address> [<host_address>] ...\n",PROGNAME);
+ printf("Usage: %s <host_address> <host_address> [<host_address>] ...\n",progname);
}
void print_help(void)
{
- print_revision(PROGNAME,"$Revision$");
+ print_revision(progname,"$Revision$");
printf
("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 5c6611354812c1aa57340480fc7c887d7a284e28..69fdd23c1211160a248992e696065957c6c485bc 100644 (file)
--- a/contrib/check_rbl.c
+++ b/contrib/check_rbl.c
#include "popen.h"
#include "string.h"
-#define PROGNAME "check_rbl"
+const char progname = "check_rbl";
int process_arguments(int, char **);
int call_getopt(int, char **);
}
break;
case 'V': /* version */
- print_revision(PROGNAME,"$Revision$");
+ print_revision(progname,"$Revision$");
exit(STATE_OK);
case 'h': /* help */
print_help();
void print_help(void)
{
- print_revision(PROGNAME,"$Revision$");
+ print_revision(progname,"$Revision$");
printf
("Copyright (c) 2000 Karl DeBisschop\n\n"
"This plugin uses dig to test whether the specified host is on any RBL lists.\n\n");
("Usage: %s -H hostip -r rblname [-s server] [-t timeout] [-v]\n"
" %s --help\n"
" %s --version\n",
- PROGNAME,PROGNAME,PROGNAME);
+ progname, progname, progname);
}