diff options
Diffstat (limited to 'plugins-root')
-rw-r--r-- | plugins-root/Makefile.am | 13 | ||||
-rw-r--r-- | plugins-root/check_dhcp.c | 8 | ||||
-rw-r--r-- | plugins-root/check_icmp.c | 8 | ||||
-rw-r--r-- | plugins-root/t/check_icmp.t | 2 |
4 files changed, 17 insertions, 14 deletions
diff --git a/plugins-root/Makefile.am b/plugins-root/Makefile.am index 107d993..de8813f 100644 --- a/plugins-root/Makefile.am +++ b/plugins-root/Makefile.am | |||
@@ -1,5 +1,11 @@ | |||
1 | ## Process this file with automake to produce Makefile.in | 1 | ## Process this file with automake to produce Makefile.in |
2 | 2 | ||
3 | NP-VERSION-FILE: .FORCE-NP-VERSION-FILE | ||
4 | @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN | ||
5 | -include NP-VERSION-FILE | ||
6 | |||
7 | AM_CFLAGS = -DNP_VERSION='"$(NP_VERSION)"' | ||
8 | |||
3 | VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t $(srcdir) | 9 | VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t $(srcdir) |
4 | 10 | ||
5 | INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins @SSLINCLUDE@ | 11 | INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins @SSLINCLUDE@ |
@@ -74,3 +80,10 @@ pst3_LDFLAGS = @PST3CFLAGS@ | |||
74 | 80 | ||
75 | check_dhcp_DEPENDENCIES = check_dhcp.c $(NETOBJS) $(DEPLIBS) | 81 | check_dhcp_DEPENDENCIES = check_dhcp.c $(NETOBJS) $(DEPLIBS) |
76 | check_icmp_DEPENDENCIES = check_icmp.c $(NETOBJS) | 82 | check_icmp_DEPENDENCIES = check_icmp.c $(NETOBJS) |
83 | |||
84 | all-local: .FORCE-NP-VERSION-FILE | ||
85 | |||
86 | clean-local: | ||
87 | rm -f NP-VERSION-FILE | ||
88 | |||
89 | .PHONY: .FORCE-NP-VERSION-FILE | ||
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c index 35874a9..bdd348f 100644 --- a/plugins-root/check_dhcp.c +++ b/plugins-root/check_dhcp.c | |||
@@ -6,8 +6,6 @@ | |||
6 | * Copyright (c) 2001-2004 Ethan Galstad (nagios@nagios.org) | 6 | * Copyright (c) 2001-2004 Ethan Galstad (nagios@nagios.org) |
7 | * Copyright (c) 2001-2007 Nagios Plugin Development Team | 7 | * Copyright (c) 2001-2007 Nagios Plugin Development Team |
8 | * | 8 | * |
9 | * Last Modified: $Date$ | ||
10 | * | ||
11 | * Description: | 9 | * Description: |
12 | * | 10 | * |
13 | * This file contains the check_dhcp plugin | 11 | * This file contains the check_dhcp plugin |
@@ -32,12 +30,10 @@ | |||
32 | * You should have received a copy of the GNU General Public License | 30 | * You should have received a copy of the GNU General Public License |
33 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 31 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
34 | * | 32 | * |
35 | * $Id$ | ||
36 | * | 33 | * |
37 | *****************************************************************************/ | 34 | *****************************************************************************/ |
38 | 35 | ||
39 | const char *progname = "check_dhcp"; | 36 | const char *progname = "check_dhcp"; |
40 | const char *revision = "$Revision$"; | ||
41 | const char *copyright = "2001-2007"; | 37 | const char *copyright = "2001-2007"; |
42 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 38 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
43 | 39 | ||
@@ -1168,7 +1164,7 @@ int call_getopt(int argc, char **argv){ | |||
1168 | break; | 1164 | break; |
1169 | 1165 | ||
1170 | case 'V': /* version */ | 1166 | case 'V': /* version */ |
1171 | print_revision(progname,revision); | 1167 | print_revision(progname, NP_VERSION); |
1172 | exit(STATE_OK); | 1168 | exit(STATE_OK); |
1173 | 1169 | ||
1174 | case 'h': /* help */ | 1170 | case 'h': /* help */ |
@@ -1385,7 +1381,7 @@ void print_hardware_address(const unsigned char *address){ | |||
1385 | /* print usage help */ | 1381 | /* print usage help */ |
1386 | void print_help(void){ | 1382 | void print_help(void){ |
1387 | 1383 | ||
1388 | print_revision(progname,revision); | 1384 | print_revision(progname, NP_VERSION); |
1389 | 1385 | ||
1390 | printf("Copyright (c) 2001-2004 Ethan Galstad (nagios@nagios.org)\n"); | 1386 | printf("Copyright (c) 2001-2004 Ethan Galstad (nagios@nagios.org)\n"); |
1391 | printf (COPYRIGHT, copyright, email); | 1387 | printf (COPYRIGHT, copyright, email); |
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index cc3f3d5..bbdfae7 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c | |||
@@ -6,8 +6,6 @@ | |||
6 | * Copyright (c) 2005-2008 Nagios Plugins Development Team | 6 | * Copyright (c) 2005-2008 Nagios Plugins Development Team |
7 | * Original Author : Andreas Ericsson <ae@op5.se> | 7 | * Original Author : Andreas Ericsson <ae@op5.se> |
8 | * | 8 | * |
9 | * Last Modified: $Date$ | ||
10 | * | ||
11 | * Description: | 9 | * Description: |
12 | * | 10 | * |
13 | * This file contains the check_icmp plugin | 11 | * This file contains the check_icmp plugin |
@@ -35,14 +33,12 @@ | |||
35 | * You should have received a copy of the GNU General Public License | 33 | * You should have received a copy of the GNU General Public License |
36 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 34 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
37 | * | 35 | * |
38 | * $Id$ | ||
39 | * | 36 | * |
40 | *****************************************************************************/ | 37 | *****************************************************************************/ |
41 | 38 | ||
42 | /* progname may change */ | 39 | /* progname may change */ |
43 | /* char *progname = "check_icmp"; */ | 40 | /* char *progname = "check_icmp"; */ |
44 | char *progname; | 41 | char *progname; |
45 | const char *revision = "$Revision$"; | ||
46 | const char *copyright = "2005-2008"; | 42 | const char *copyright = "2005-2008"; |
47 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 43 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
48 | 44 | ||
@@ -516,7 +512,7 @@ main(int argc, char **argv) | |||
516 | set_source_ip(optarg); | 512 | set_source_ip(optarg); |
517 | break; | 513 | break; |
518 | case 'V': /* version */ | 514 | case 'V': /* version */ |
519 | /*print_revision (progname, revision);*/ /* FIXME: Why? */ | 515 | print_revision (progname, NP_VERSION); |
520 | exit (STATE_OK); | 516 | exit (STATE_OK); |
521 | case 'h': /* help */ | 517 | case 'h': /* help */ |
522 | print_help (); | 518 | print_help (); |
@@ -1272,7 +1268,7 @@ void | |||
1272 | print_help(void) | 1268 | print_help(void) |
1273 | { | 1269 | { |
1274 | 1270 | ||
1275 | /*print_revision (progname, revision);*/ /* FIXME: Why? */ | 1271 | /*print_revision (progname);*/ /* FIXME: Why? */ |
1276 | 1272 | ||
1277 | printf ("Copyright (c) 2005 Andreas Ericsson <ae@op5.se>\n"); | 1273 | printf ("Copyright (c) 2005 Andreas Ericsson <ae@op5.se>\n"); |
1278 | printf (COPYRIGHT, copyright, email); | 1274 | printf (COPYRIGHT, copyright, email); |
diff --git a/plugins-root/t/check_icmp.t b/plugins-root/t/check_icmp.t index 11535ea..78bfd63 100644 --- a/plugins-root/t/check_icmp.t +++ b/plugins-root/t/check_icmp.t | |||
@@ -2,8 +2,6 @@ | |||
2 | # | 2 | # |
3 | # Ping Response Tests via check_icmp | 3 | # Ping Response Tests via check_icmp |
4 | # | 4 | # |
5 | # $Id$ | ||
6 | # | ||
7 | 5 | ||
8 | use strict; | 6 | use strict; |
9 | use Test::More; | 7 | use Test::More; |