summaryrefslogtreecommitdiffstats
path: root/plugins-root
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-root')
-rw-r--r--plugins-root/Makefile.am13
-rw-r--r--plugins-root/check_dhcp.c8
-rw-r--r--plugins-root/check_icmp.c8
-rw-r--r--plugins-root/t/check_icmp.t2
4 files changed, 17 insertions, 14 deletions
diff --git a/plugins-root/Makefile.am b/plugins-root/Makefile.am
index 107d9933..de8813ff 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
3NP-VERSION-FILE: .FORCE-NP-VERSION-FILE
4 @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN
5-include NP-VERSION-FILE
6
7AM_CFLAGS = -DNP_VERSION='"$(NP_VERSION)"'
8
3VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t $(srcdir) 9VPATH = $(top_srcdir) $(top_srcdir)/lib $(top_srcdir)/plugins $(top_srcdir)/plugins/t $(srcdir)
4 10
5INCLUDES = -I.. -I$(top_srcdir)/lib -I$(top_srcdir)/gl -I$(top_srcdir)/intl -I$(top_srcdir)/plugins @SSLINCLUDE@ 11INCLUDES = -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
75check_dhcp_DEPENDENCIES = check_dhcp.c $(NETOBJS) $(DEPLIBS) 81check_dhcp_DEPENDENCIES = check_dhcp.c $(NETOBJS) $(DEPLIBS)
76check_icmp_DEPENDENCIES = check_icmp.c $(NETOBJS) 82check_icmp_DEPENDENCIES = check_icmp.c $(NETOBJS)
83
84all-local: .FORCE-NP-VERSION-FILE
85
86clean-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 35874a93..bdd348f2 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
39const char *progname = "check_dhcp"; 36const char *progname = "check_dhcp";
40const char *revision = "$Revision$";
41const char *copyright = "2001-2007"; 37const char *copyright = "2001-2007";
42const char *email = "nagiosplug-devel@lists.sourceforge.net"; 38const 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 */
1386void print_help(void){ 1382void 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 cc3f3d59..bbdfae75 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"; */
44char *progname; 41char *progname;
45const char *revision = "$Revision$";
46const char *copyright = "2005-2008"; 42const char *copyright = "2005-2008";
47const char *email = "nagiosplug-devel@lists.sourceforge.net"; 43const 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
1272print_help(void) 1268print_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 11535ea6..78bfd638 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
8use strict; 6use strict;
9use Test::More; 7use Test::More;