New upstream version 2.3.4

This commit is contained in:
Jan Wagner 2023-10-18 07:29:37 +00:00
parent e7bdd1c6c6
commit de72f6f588
556 changed files with 90432 additions and 53391 deletions

View file

@ -2,9 +2,11 @@
#define _UTILS_BASE_
/* Header file for Monitoring Plugins utils_base.c */
#include "sha1.h"
#ifndef USE_OPENSSL
# include "sha256.h"
#endif
/* This file holds header information for thresholds - use this in preference to
/* This file holds header information for thresholds - use this in preference to
individual plugin logic */
/* This has not been merged with utils.h because of problems with
@ -19,7 +21,7 @@
typedef struct range_struct {
double start;
int start_infinity; /* FALSE (default) or TRUE */
bool start_infinity;
double end;
int end_infinity;
int alert_on; /* OUTSIDE (default) or INSIDE */
@ -59,7 +61,7 @@ range *parse_range_string (char *);
int _set_thresholds(thresholds **, char *, char *);
void set_thresholds(thresholds **, char *, char *);
void print_thresholds(const char *, thresholds *);
int check_range(double, range *);
bool check_range(double, range *);
int get_status(double, thresholds *);
/* Handle timeouts */
@ -77,7 +79,7 @@ void die (int, const char *, ...) __attribute__((noreturn,format(printf, 2, 3)))
#define NP_RANGE_UNPARSEABLE 1
#define NP_WARN_WITHIN_CRIT 2
/* a simple check to see if we're running as root.
/* a simple check to see if we're running as root.
* returns zero on failure, nonzero on success */
int np_check_if_root(void);