summaryrefslogtreecommitdiffstats
path: root/plugins/check_hpjd.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-03 00:55:28 +0000
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-03 00:55:28 +0000
commit016d33230eb4fffd7e1f5644ce4901cb4d01f4e3 (patch)
tree1a6f29dcfd937bccffb66467127613b660d55365 /plugins/check_hpjd.c
parent3f05eb7fcb71942c90fa7d5796c3d18ed62443cf (diff)
downloadmonitoring-plugins-016d33230eb4fffd7e1f5644ce4901cb4d01f4e3.tar.gz
bump copyright year
initialize result to STATE_UNKNOW in place of STATE_OK git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@982 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_hpjd.c')
-rw-r--r--plugins/check_hpjd.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 7c56e5dc..7ad950a4 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -17,6 +17,11 @@
17* $Id$ 17* $Id$
18*****************************************************************************/ 18*****************************************************************************/
19 19
20const char *progname = "check_hpjd";
21const char *revision = "$Revision$";
22const char *copyright = "2000-2004";
23const char *email = "nagiosplug-devel@lists.sourceforge.net";
24
20#include "common.h" 25#include "common.h"
21#include "popen.h" 26#include "popen.h"
22#include "utils.h" 27#include "utils.h"
@@ -24,10 +29,6 @@
24 29
25#define DEFAULT_COMMUNITY "public" 30#define DEFAULT_COMMUNITY "public"
26 31
27const char *progname = "check_hpjd";
28const char *revision = "$Revision$";
29const char *copyright = "2000-2003";
30const char *email = "nagiosplug-devel@lists.sourceforge.net";
31 32
32const char *option_summary = "-H host [-C community]\n"; 33const char *option_summary = "-H host [-C community]\n";
33 34
@@ -59,7 +60,7 @@ int
59main (int argc, char **argv) 60main (int argc, char **argv)
60{ 61{
61 char command_line[1024]; 62 char command_line[1024];
62 int result; 63 int result = STATE_UNKNOWN;
63 int line; 64 int line;
64 char input_buffer[MAX_INPUT_BUFFER]; 65 char input_buffer[MAX_INPUT_BUFFER];
65 char query_string[512]; 66 char query_string[512];
@@ -85,7 +86,7 @@ main (int argc, char **argv)
85 textdomain (PACKAGE); 86 textdomain (PACKAGE);
86 87
87 if (process_arguments (argc, argv) != TRUE) 88 if (process_arguments (argc, argv) != TRUE)
88 usage4 (_("Could not parse arguments\n")); 89 usage4 (_("Could not parse arguments"));
89 90
90 /* removed ' 2>1' at end of command 10/27/1999 - EG */ 91 /* removed ' 2>1' at end of command 10/27/1999 - EG */
91 /* create the query string */ 92 /* create the query string */