summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f05eb7)
raw | patch | inline | side by side (parent: 3f05eb7)
author | Benoit Mortier <opensides@users.sourceforge.net> | |
Fri, 3 Dec 2004 00:55:28 +0000 (00:55 +0000) | ||
committer | Benoit Mortier <opensides@users.sourceforge.net> | |
Fri, 3 Dec 2004 00:55:28 +0000 (00:55 +0000) |
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
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@982 f882894a-f735-0410-b71e-b25c423dba1c
33 files changed:
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index f569731de9acb5e3b7896b3ec2f5c449744e91b0..d5bd3de4e8c9794f508cbf57f2ca981213716a48 100644 (file)
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
const char *progname = "check_by_ssh";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 0102ea566e6ae16c2d46d6a5e62af670dda6585c..211c16c0cd3986bd09fa003c2ea8498a0f8b31dc 100644 (file)
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
*****************************************************************************/
+const char *progname = "check_dig";
+const char *revision = "$Revision$";
+const char *copyright = "2002-2003";
+const char *email = "nagiosplug-devel@lists.sourceforge.net";
+
#include "common.h"
#include "netutils.h"
#include "utils.h"
void print_help (void);
void print_usage (void);
-const char *progname = "check_dig";
-const char *revision = "$Revision$";
-const char *copyright = "2002-2003";
-const char *email = "nagiosplug-devel@lists.sourceforge.net";
-
enum {
UNDEFINED = 0,
DEFAULT_PORT = 53
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index aaa3f12d830356dc8dc3884b29cd2031374f4a4b..6dfb09f23403857ba6586caea39b1989f40c49e5 100644 (file)
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
******************************************************************************/
-#include "common.h"
-#include "popen.h"
-#include "utils.h"
-#include "netutils.h"
-
const char *progname = "check_dns";
const char *revision = "$Revision$";
const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
+#include "common.h"
+#include "popen.h"
+#include "utils.h"
+#include "netutils.h"
+
int process_arguments (int, char **);
int validate_arguments (void);
int error_scan (char *);
diff --git a/plugins/check_dummy.c b/plugins/check_dummy.c
index a99e38a73f4df28d6261e3fcf0e95a7b4aecde9b..6864d02d39ca3dee36a0d0032a7fe4da74c6aa26 100644 (file)
--- a/plugins/check_dummy.c
+++ b/plugins/check_dummy.c
******************************************************************************/
-#include "common.h"
-#include "utils.h"
-
const char *progname = "check_dummy";
const char *revision = "$Revision$";
-const char *copyright = "1999-2003";
+const char *copyright = "1999-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
+#include "common.h"
+#include "utils.h"
+
void print_help (void);
void print_usage (void);
int
main (int argc, char **argv)
{
- int result;
+ int result = STATE_UNKNOWN;
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 817d647aa4aa14757a49647b13a657cf4f0d2e49..46d4bebceb307721536d15beb175d95027e4d03b 100644 (file)
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
const char *progname = "check_fping";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
int
main (int argc, char **argv)
{
+/* normaly should be int result = STATE_UNKNOWN; */
+
int status = STATE_UNKNOWN;
char *server = NULL;
char *command_line = NULL;
diff --git a/plugins/check_game.c b/plugins/check_game.c
index 89c212e854bd85c1c4df75b6c8000b781523c973..ea08f9d93a31e820c2e07a0a5e4e81a072ed2178 100644 (file)
--- a/plugins/check_game.c
+++ b/plugins/check_game.c
const char *progname = "check_game";
const char *revision = "$Revision$";
-const char *copyright = "2002-2003";
+const char *copyright = "2002-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
main (int argc, char **argv)
{
char *command_line;
- int result;
+ int result = STATE_UNKNOWN;
FILE *fp;
char input_buffer[MAX_INPUT_BUFFER];
char *p, *ret[QSTAT_MAX_RETURN_ARGS];
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 7c56e5dc3d7207d4199b4a64872b6f1bb950aeb3..7ad950a4a9513e6313f89a4d3e63b79b876c0be3 100644 (file)
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
* $Id$
*****************************************************************************/
+const char *progname = "check_hpjd";
+const char *revision = "$Revision$";
+const char *copyright = "2000-2004";
+const char *email = "nagiosplug-devel@lists.sourceforge.net";
+
#include "common.h"
#include "popen.h"
#include "utils.h"
#define DEFAULT_COMMUNITY "public"
-const char *progname = "check_hpjd";
-const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
-const char *email = "nagiosplug-devel@lists.sourceforge.net";
const char *option_summary = "-H host [-C community]\n";
main (int argc, char **argv)
{
char command_line[1024];
- int result;
+ int result = STATE_UNKNOWN;
int line;
char input_buffer[MAX_INPUT_BUFFER];
char query_string[512];
textdomain (PACKAGE);
if (process_arguments (argc, argv) != TRUE)
- usage4 (_("Could not parse arguments\n"));
+ usage4 (_("Could not parse arguments"));
/* removed ' 2>1' at end of command 10/27/1999 - EG */
/* create the query string */
index bcace8a0e36e983ac412bf0399c70ae9f0d604e5..09231aa0e09165383ca2fd5b389f6ee1a90d8b7b 100644 (file)
*
* $Id$
*/
+
+const char *progname = "check_ide_smart";
+const char *revision = "$Revision$";
+const char *copyright = "2000-2004";
+const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
#include "utils.h"
+
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c
index b12a0edba776af0c5dc5077bcb141d039839bbf1..92d41a895155987f4576984f6d60ffb3b9a721cf 100644 (file)
--- a/plugins/check_ldap.c
+++ b/plugins/check_ldap.c
const char *progname = "check_ldap";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
LDAP *ld;
LDAPMessage *result;
- int status;
+ /* should be int result = STATE_UNKNOWN; */
+
+ int status = STATE_UNKNOW;
long microsec;
double elapsed_time;
diff --git a/plugins/check_load.c b/plugins/check_load.c
index b918fa54a79ef234f966a4ac0e297756801a5d17..803467df5fb6787d5dce58df0bd094c19a67d749 100644 (file)
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
const char *progname = "check_load";
const char *revision = "$Revision$";
-const char *copyright = "1999-2003";
+const char *copyright = "1999-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
int
main (int argc, char **argv)
{
- int result;
+ int result = STATE_UNKNOWN;
+
#if HAVE_GETLOADAVG==1
double la[3] = { 0.0, 0.0, 0.0 }; /* NetBSD complains about unitialized arrays */
#else
diff --git a/plugins/check_mrtg.c b/plugins/check_mrtg.c
index 31d132d443758ac3335542b3271279fb4f58a93a..7cf7d89732f06f9d47291366e446086447bf10cc 100644 (file)
--- a/plugins/check_mrtg.c
+++ b/plugins/check_mrtg.c
const char *progname = "check_mrtg";
const char *revision = "$Revision$";
-const char *copyright = "1999-2001";
+const char *copyright = "1999-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
int
main (int argc, char **argv)
{
- int result = STATE_OK;
+ int result = STATE_UNKNOWN;
FILE *fp;
int line;
char input_buffer[MAX_INPUT_BUFFER];
return result;
}
-\f
+
+
+
/* process command-line arguments */
int
process_arguments (int argc, char **argv)
case 'v':
variable_number = atoi (optarg);
if (variable_number < 1 || variable_number > 2)
- usage (_("Invalid variable number\n"));
+ usage4 (_("Invalid variable number"));
break;
case 'w': /* critical time threshold */
value_warning_threshold = strtoul (optarg, NULL, 10);
validate_arguments (void)
{
if (variable_number == -1)
- usage (_("You must supply the variable number\n"));
+ usage4 (_("You must supply the variable number"));
if (label == NULL)
label = strdup ("value");
index 24ccaa9326b3a61930152f65529526f96cecded4..f8d695527211ebd054a7fee8b7e5ebb610044426 100644 (file)
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
const char *progname = "check_mrtgtraf";
const char *revision = "$Revision$";
-const char *copyright = "1999-2003";
+const char *copyright = "1999-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
int process_arguments (int, char **);
int
main (int argc, char **argv)
{
- int result = STATE_OK;
+ int result = STATE_UNKNOWN;
FILE *fp;
int line;
char input_buffer[MAX_INPUT_BUFFER];
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index f55630b2c38d1a772ce406f84af5e0e4cd08f72a..30dce9d3e4c59e12bc5f96bcef3b28b0199adebd 100644 (file)
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
const char *progname = "check_mysql";
const char *revision = "$Revision$";
-const char *copyright = "1999-2002";
+const char *copyright = "1999-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#define SLAVERESULTSIZE 40
#include "common.h"
#include "utils.h"
#include "netutils.h"
+
#include <mysql/mysql.h>
#include <mysql/errmsg.h>
MYSQL mysql;
MYSQL_RES *res;
MYSQL_ROW row;
+
+ /* should be status */
+
char *result = NULL;
char slaveresult[SLAVERESULTSIZE];
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 618ee57313a086938ea3b1f4d021ba9584ca2def..1daf5401286b45f19d1f0139280272d8f2941995 100644 (file)
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
const char *progname = "check_nagios";
const char *revision = "$Revision$";
-const char *copyright = "1999-2003";
+const char *copyright = "1999-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index efd7cdef0b619ccd249224143f04c15da037e500..f142675614b78f1731e87afe634ebc870102c187 100644 (file)
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
*
*****************************************************************************/
+const char *progname = "check_nt";
+const char *revision = "$Revision$";
+const char *copyright = "2003-2004";
+const char *email = "nagiosplug-devel@lists.sourceforge.net";
+
#include "common.h"
#include "netutils.h"
#include "utils.h"
enum checkvars vars_to_check = CHECK_NONE;
int show_all=FALSE;
-const char *progname = "check_nt";
-
char recv_buffer[MAX_INPUT_BUFFER];
void fetch_data (const char* address, int port, const char* sendb);
void print_usage(void);
int main(int argc, char **argv){
+
+/* should be int result = STATE_UNKNOWN; */
+
int return_code = STATE_UNKNOWN;
char *send_buffer=NULL;
char *output_message=NULL;
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index ce5773b9dbbdb87c770bee6e4464516004d7143c..41b7c870359ca0f8c87d20d0981559b1b0303ed9 100644 (file)
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
const char *progname = "check_nwstat";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
int
main(int argc, char **argv) {
- int result;
+ int result = STATE_UNKNOWN;
int sd;
char *send_buffer=NULL;
char recv_buffer[MAX_INPUT_BUFFER];
diff --git a/plugins/check_overcr.c b/plugins/check_overcr.c
index 22277f6eefc903d3dfd80e818fc6b5d59b298628..ddaebdbd1ea1d61240cb7c8348b00a0f72636a1e 100644 (file)
--- a/plugins/check_overcr.c
+++ b/plugins/check_overcr.c
const char *progname = "check_overcr";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
int
main (int argc, char **argv)
{
- int result;
+ int result = STATE_UNKNOWN;
char recv_buffer[MAX_INPUT_BUFFER];
char temp_buffer[MAX_INPUT_BUFFER];
char *temp_ptr = NULL;
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index f9d66110328cbbd0f39c4c9634e045ed504288c8..de76735bf1cc14c5a2c498321f7deca53e424546 100644 (file)
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
*****************************************************************************/
+const char *progname = "check_pgsql";
+const char *revision = "$Revision$";
+const char *copyright = "1999-2004";
+const char *email = "nagiosplug-devel@lists.sourceforge.net";
+
+#include "common.h"
+#include "utils.h"
+
+#include "netutils.h"
+#include <libpq-fe.h>
+
#define DEFAULT_DB "template1"
#define DEFAULT_HOST "127.0.0.1"
DEFAULT_CRIT = 8
};
-#include "common.h"
-#include "utils.h"
-#include "netutils.h"
-#include <libpq-fe.h>
+
int process_arguments (int, char **);
int validate_arguments (void);
PGconn *conn;
/*PGresult *res;*/
-const char *progname = "check_pgsql";
-const char *revision = "$Revision$";
-const char *copyright = "1999-2003";
-const char *email = "nagiosplug-devel@lists.sourceforge.net";
-
/******************************************************************************
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index ecaf03ed4a2573cd04cf47363b8b7948ae7c3168..e3f5398bc66ca99887f9d219bb31de6baef970bb 100644 (file)
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
const char *progname = "check_ping";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index 5448842ccbade6728dda7ce201889ada755bfb8a..4d01a1c24fd0187ab7e3566bf78c639d34252ea9 100644 (file)
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
const char *progname = "check_procs";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
#include "popen.h"
#include "utils.h"
+
#include <pwd.h>
int process_arguments (int, char **);
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index 68ed4d88f3e25d4b721dba79550e627926d3be86..57a3e40761e360e6da0afa3a6f208371551a181d 100644 (file)
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
UINT4 service;
char msg[BUFFER_LEN];
SEND_DATA data;
- int result;
+ int result = STATE_UNKNOWN;
UINT4 client_id;
char *str;
diff --git a/plugins/check_real.c b/plugins/check_real.c
index 4ede6a5c32f9dc839caa63f1a1917bc47b688f37..8a12a3e5f097728a90283b3a4a709db92692569c 100644 (file)
--- a/plugins/check_real.c
+++ b/plugins/check_real.c
const char *progname = "check_real";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
main (int argc, char **argv)
{
int sd;
- int result;
+ int result = STATE_UNKNOWN;
char buffer[MAX_INPUT_BUFFER];
char *status_line = NULL;
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 257a38bba8d2926fa7878b6dc294887edcb746d5..c0ddc70326231fd23eb6b42207354b52b63ca7de 100644 (file)
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
const char *progname = "check_smtp";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 6a41c6af095e582a7004833f600ca932d1b3cc4b..2e9ea63c96356d5315d24f43ad7f635e8bfc7403 100644 (file)
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
const char *progname = "check_snmp";
const char *revision = "$Revision$";
-const char *copyright = "1999-2003";
+const char *copyright = "1999-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index 82d0acad57f02f1d251775dd148b97e1369dd04e..a21d64a474366bc8e8f163b40365295f4fc320aa 100644 (file)
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
******************************************************************************/
-#include "common.h"
-#include "netutils.h"
-#include "utils.h"
-
const char *progname = "check_ssh";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
+#include "common.h"
+#include "netutils.h"
+#include "utils.h"
+
#ifndef MSG_DONTWAIT
#define MSG_DONTWAIT 0
#endif
int
main (int argc, char **argv)
{
- int result;
+ int result = STATE_UNKNOWN;
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
/* initialize alarm signal handling */
signal (SIGALRM, socket_timeout_alarm_handler);
+
alarm (socket_timeout);
/* ssh_connect exits if error is found */
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index 608080acb6f0ab856977c47b739f3c867be08dc3..6857a01b5e3ba42415a276ef7b69d99e5ab798e5 100644 (file)
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
*
*****************************************************************************/
-#include "common.h"
-#include "popen.h"
-#include "utils.h"
-
const char *progname = "check_swap";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
+#include "common.h"
+#include "popen.h"
+#include "utils.h"
+
int check_swap (int usp, long unsigned int free_swap);
int process_arguments (int argc, char **argv);
int validate_arguments (void);
int percent_used, percent;
unsigned long long total_swap = 0, used_swap = 0, free_swap = 0;
unsigned long long dsktotal = 0, dskused = 0, dskfree = 0, tmp = 0;
- int result = STATE_OK;
+ int result = STATE_UNKNOWN;
char input_buffer[MAX_INPUT_BUFFER];
char *perf;
int conv_factor = SWAP_CONVERSION;
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 119ccf108a212011915a1a0f69968b568929e5fc..05737764027a8ea72334eacc3c7cb762c7c771d8 100644 (file)
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
/* progname "check_tcp" changes depending on symlink called */
char *progname;
const char *revision = "$Revision$";
-const char *copyright = "1999-2003";
+const char *copyright = "1999-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
int
main (int argc, char **argv)
{
- int result;
+ int result = STATE_UNKNOWN;
int i;
char *status;
struct timeval tv;
diff --git a/plugins/check_time.c b/plugins/check_time.c
index ee6ff43865c6484fd1f6e9c0722a18567c980d1e..8381fb2feb380e2d273b09db578fd5b993f02744 100644 (file)
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
******************************************************************************/
-#include "common.h"
-#include "netutils.h"
-#include "utils.h"
-
const char *progname = "check_time";
const char *revision = "$Revision$";
-const char *copyright = "1999-2003";
+const char *copyright = "1999-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
+#include "common.h"
+#include "netutils.h"
+#include "utils.h"
+
enum {
TIME_PORT = 37
};
main (int argc, char **argv)
{
int sd;
- int result;
+ int result = STATE_UNKNOWN;
time_t conntime;
setlocale (LC_ALL, "");
diff --git a/plugins/check_udp.c b/plugins/check_udp.c
index 5d671745791fe3348cbc6ec0f90692c06e6c9137..0cb732f9932a4d0a86bfda1ab3ff40698d47d271 100644 (file)
--- a/plugins/check_udp.c
+++ b/plugins/check_udp.c
const char *progname = "check_udp";
const char *revision = "$Revision$";
-const char *copyright = "1999-2002";
+const char *copyright = "1999-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
int
main (int argc, char **argv)
{
- int result;
+ int result = STATE_UNKNOWN;
char recv_buffer[MAX_INPUT_BUFFER];
setlocale (LC_ALL, "");
time (&start_time);
result = process_udp_request (server_address, server_port, server_send,
recv_buffer, MAX_INPUT_BUFFER - 1);
+
time (&end_time);
if (result != STATE_OK) {
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index e974b7534576799b3e1c7045b84359ba35843ca9..3e538bca036ddba67dca88b22f2b8c31ca9cde82 100644 (file)
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
const char *progname = "check_ups";
const char *revision = "$Revision$";
-const char *copyright = "2000-2002";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include <locale.h>
int
main (int argc, char **argv)
{
- int result = STATE_OK;
+ int result = STATE_UNKNOWN;
char *message;
char *data;
char temp_buffer[MAX_INPUT_BUFFER];
diff --git a/plugins/check_users.c b/plugins/check_users.c
index 891fe3b78e17c4af1e40a4754b40406b214be9c5..d08932256958a28e3020902bd1aba52d0b28e6af 100644 (file)
--- a/plugins/check_users.c
+++ b/plugins/check_users.c
const char *progname = "check_users";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"
main (int argc, char **argv)
{
int users = -1;
- int result = STATE_OK;
+ int result = STATE_UNKNOWN;
char input_buffer[MAX_INPUT_BUFFER];
char *perf;
diff --git a/plugins/negate.c b/plugins/negate.c
index 9e25ebc57a5e0b4c8292ff4bdcafd71871732e2f..e0f997501fc3f8d038694458898e1f56a1acb94e 100644 (file)
--- a/plugins/negate.c
+++ b/plugins/negate.c
const char *progname = "negate";
const char *revision = "$Revision$";
-const char *copyright = "2002-2003";
+const char *copyright = "2002-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#define DEFAULT_TIMEOUT 9
diff --git a/plugins/urlize.c b/plugins/urlize.c
index 9973c1a31d5b1114a948c3e010e157ad948a5dd2..65a7b3dd2ff7f0ec7ef20becfc26c317b942327c 100644 (file)
--- a/plugins/urlize.c
+++ b/plugins/urlize.c
const char *progname = "urlize";
const char *revision = "$Revision$";
-const char *copyright = "2000-2003";
+const char *copyright = "2000-2004";
const char *email = "nagiosplug-devel@lists.sourceforge.net";
#include "common.h"