summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6fc70bc)
raw | patch | inline | side by side (parent: 6fc70bc)
author | Benoit Mortier <opensides@users.sourceforge.net> | |
Mon, 3 Jan 2005 01:37:10 +0000 (01:37 +0000) | ||
committer | Benoit Mortier <opensides@users.sourceforge.net> | |
Mon, 3 Jan 2005 01:37:10 +0000 (01:37 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1077 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_ide_smart.c | patch | blob | history |
index 0b7b23048c14971bd6d4edece2c8b6f5475952d3..6487d0859bfb7a8b3603e0a42fec0ed6e4879619 100644 (file)
#include "common.h"
#include "utils.h"
+void print_help (void);
+void print_usage (void);
+
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
SMART_CMD_AUTO_OFFLINE
};
+void print_values (values_t * p, thresholds_t * t);
+int smart_cmd_simple (int fd, enum SmartCommand command, __u8 val0, char show_error);
int
main (int argc, char *argv[])
case 4:
smart_read_values (fd, &values);
smart_read_thresholds (fd, &thresholds);
- retval = net_saint (&values, &thresholds);
+ retval = nagios (&values, &thresholds);
break;
default:
smart_read_values (fd, &values);
int
-net_saint (values_t * p, thresholds_t * t)
+nagios (values_t * p, thresholds_t * t)
{
value_t * value = p->values;
threshold_t * threshold = t->thresholds;
void
-print_values (values_t * p, thresholds_t * t)
+print_values (values_t * p, thresholds_t * t)
{
value_t * value = p->values;
threshold_t * threshold = t->thresholds;
Turn on automatic offline tests\n\
-0, --auto-off\n\
Turn off automatic offline tests\n\
- -n, --net-saint\n\
- Output suitable for Net Saint\n", progname);
+ -n, --nagios\n\
+ Output suitable for Nagios\n", progname);
}
void
print_usage (void)
{
- printf ("Usage: %s \n", progname);
+ printf ("\
+Usage: %s [-d <device>] [-i <immediate>] [-q quiet] [-1 <auto-on>]\n\
+ [-O <auto-off>] [-n <nagios>]\n", progname);
}