summaryrefslogtreecommitdiffstats
path: root/plugins/check_ide_smart.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ide_smart.c')
-rw-r--r--plugins/check_ide_smart.c82
1 files changed, 47 insertions, 35 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index 611b265..14d27b3 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -1,38 +1,39 @@
1/* 1/******************************************************************************
2 * check_ide-smart v.1 - hacked version of ide-smart for Nagios 2* Nagios check_ide_smart plugin
3 * Copyright (C) 2000 Robert Dale <rdale@digital-mission.com> 3*
4 * 4* License: GPL
5 * Nagios - http://www.nagios.org 5*
6 * 6* ide-smart 1.3 - IDE S.M.A.R.T. checking tool
7 * Notes: 7* Copyright (C) 1998-1999 Ragnar Hojland Espinosa <ragnar@lightside.dhis.org>
8 * ide-smart has the same functionality as before. Some return 8* 1998 Gadi Oxman <gadio@netvision.net.il>
9 * values were changed, otherwise the --nagios option was added. 9*
10 * 10* Copyright (c) 2000 Robert Dale <rdale@digital-mission.com>
11 * Run with: check_ide-smart --nagios [-d] <DRIVE> 11* Copyright (c) 2000-2006 nagios-plugins team
12 * Where DRIVE is an IDE drive, ie. /dev/hda, /dev/hdb, /dev/hdc 12*
13 * 13* Last Modified: $Date$
14 * - Returns 0 on no errors 14*
15 * - Returns 1 on advisories 15* Description:
16 * - Returns 2 on prefailure 16*
17 * - Returns -1 not too often 17* This file contains the check_ide_smart plugin
18 * 18*
19 * ide-smart 1.3 - IDE S.M.A.R.T. checking tool 19* This plugin checks a local hard drive with the (Linux specific) SMART interface
20 * Copyright (C) 1998-1999 Ragnar Hojland Espinosa <ragnar@lightside.dhis.org> 20*
21 * 1998 Gadi Oxman <gadio@netvision.net.il> 21*
22 * 22* License Information:
23 * This program is free software; you can redistribute it and/or modify 23*
24 * it under the terms of the GNU General Public License as published by 24* This program is free software; you can redistribute it and/or modify
25 * the Free Software Foundation; either version 2 of the License, or 25* it under the terms of the GNU General Public License as published by
26 * (at your option) any later version. 26* the Free Software Foundation; either version 2 of the License, or
27 * 27* (at your option) any later version.
28 * This program is distributed in the hope that it will be useful, 28*
29 * but WITHOUT ANY WARRANTY; without even the implied warranty of 29* This program is distributed in the hope that it will be useful,
30 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 30* but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * GNU General Public License for more details. 31* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * 32* GNU General Public License for more details.
33 * You should have received a copy of the GNU General Public License 33*
34 * along with this program; if not, write to the Free Software 34* You should have received a copy of the GNU General Public License
35 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 35* along with this program; if not, write to the Free Software
36* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
36 * 37 *
37 * $Id$ 38 * $Id$
38 */ 39 */
@@ -525,6 +526,17 @@ print_help (void)
525 printf (_(UT_SUPPORT)); 526 printf (_(UT_SUPPORT));
526} 527}
527 528
529 /* todo : add to the long nanual as example
530 *
531 * Run with: check_ide-smart --nagios [-d] <DRIVE>
532 * Where DRIVE is an IDE drive, ie. /dev/hda, /dev/hdb, /dev/hdc
533 *
534 * - Returns 0 on no errors
535 * - Returns 1 on advisories
536 * - Returns 2 on prefailure
537 * - Returns -1 not too often
538 */
539
528 540
529void 541void
530print_usage (void) 542print_usage (void)