From a133005c542bfda2013904499df0171177ddf4bf Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 9 Dec 2007 15:33:58 +0100 Subject: [PATCH] apcups plugin: Removed the `complain' stuff. --- src/apcups.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/apcups.c b/src/apcups.c index 174febe4..08df0b50 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -262,8 +262,6 @@ static int apc_query_server (char *host, int port, char *key; double value; - static complain_t compl; - #if APCMAIN # define PRINT_VALUE(name, val) printf(" Found property: name = %s; value = %f;\n", name, val) #else @@ -272,17 +270,13 @@ static int apc_query_server (char *host, int port, if (global_sockfd < 0) { - if ((global_sockfd = net_open (host, NULL, port)) < 0) + global_sockfd = net_open (host, NULL, port); + if (global_sockfd < 0) { - plugin_complain (LOG_ERR, &compl, "apcups plugin: " - "Connecting to the apcupsd failed."); + ERROR ("apcups plugin: Connecting to the " + "apcupsd failed."); return (-1); } - else - { - plugin_relief (LOG_NOTICE, &compl, "apcups plugin: " - "Connection re-established to the apcupsd."); - } } if (net_send (&global_sockfd, "status", 6) < 0) -- 2.11.0