Blame view

check_sensors/check_sensors.h 615 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef CHECK_SENSORS_H
#define CHECK_SENSORS_H

#include <iostream>
#include <map>
#include <string>
#include <vector>

#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>

#include "auxiliar.h"

#include <sensors/sensors.h>

#define OK 0
#define WARN 1
#define CRIT 2
#define UNKN 3

#define VERSION "1.0"

int getTemps(const std::string& sensorName, std::map<std::string, double>& temps);
int evalStatus(const std::string& sensorName, double warn, double crit, std::string& status);
void printVersion();
void printHelp(bool longVersion);
void set_timeout(unsigned int sec);

#endif