summaryrefslogtreecommitdiffstats
path: root/plugins/check_ups.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-19 06:45:18 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-19 06:45:18 (GMT)
commitcaa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch)
tree118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /plugins/check_ups.c
parent16f53e0717b60660145388b0feb351628f606211 (diff)
downloadmonitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat 0 files changed git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ups.c')
-rw-r--r--plugins/check_ups.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index bbd963a..a498d20 100644
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
@@ -403,7 +403,7 @@ get_ups_variable (const char *varname, char *buf, size_t buflen)
403 int len; 403 int len;
404 404
405 *buf=0; 405 *buf=0;
406 406
407 /* create the command string to send to the UPS daemon */ 407 /* create the command string to send to the UPS daemon */
408 /* Add LOGOUT to avoid read failure logs */ 408 /* Add LOGOUT to avoid read failure logs */
409 sprintf (send_buffer, "GET VAR %s %s\nLOGOUT\n", ups_name, varname); 409 sprintf (send_buffer, "GET VAR %s %s\nLOGOUT\n", ups_name, varname);
@@ -453,7 +453,7 @@ get_ups_variable (const char *varname, char *buf, size_t buflen)
453} 453}
454 454
455 455
456/* Command line: CHECK_UPS -H <host_address> -u ups [-p port] [-v variable] 456/* Command line: CHECK_UPS -H <host_address> -u ups [-p port] [-v variable]
457 [-wv warn_value] [-cv crit_value] [-to to_sec] */ 457 [-wv warn_value] [-cv crit_value] [-to to_sec] */
458 458
459 459
@@ -508,7 +508,7 @@ process_arguments (int argc, char **argv)
508 usage2 (_("Invalid hostname/address"), optarg); 508 usage2 (_("Invalid hostname/address"), optarg);
509 } 509 }
510 break; 510 break;
511 case 'T': /* FIXME: to be improved (ie "-T C" for Celsius or "-T F" for Farenheit) */ 511 case 'T': /* FIXME: to be improved (ie "-T C" for Celsius or "-T F" for Farenheit) */
512 temp_output_c = 1; 512 temp_output_c = 1;
513 break; 513 break;
514 case 'u': /* ups name */ 514 case 'u': /* ups name */