1 2 3 4 5 6 7 8 9 10 11 12 13
#ifndef CHECK_SMART_H #define CHECK_SMART_H #include <iostream> #include <sstream> #include <stdio.h> #include <cstring> #include <cstdlib> #include <unistd.h> #include <sys/time.h>
14
#include "auxiliar.h"
15 16 17 18 19 20 21 22 23 24 25
#define SMARTCTL_CMD "smartctl -A " #define VERSION "1.0" using namespace std; int evalStatus(char* disk, string reallocatedCount, string currentPending, string offlineUncorrectable, string *status); void printVersion(); void printHelp(bool longVersion); #endif