summaryrefslogtreecommitdiffstats
path: root/plugins/check_swap.d/check_swap.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-02-18 21:58:59 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-02-18 21:58:59 +0100
commit5acd14fcfb419c9ef0d6bc38384dde4cd6b70bd9 (patch)
tree21e2fc86952bdea86c519d6df88b8ba03b10d27c /plugins/check_swap.d/check_swap.h
parent0645c9fc2c7f801ba3c7d68a17c137a63ada299f (diff)
downloadmonitoring-plugins-5acd14fcfb419c9ef0d6bc38384dde4cd6b70bd9.tar.gz
Implement new output functionality for check_swap
Diffstat (limited to 'plugins/check_swap.d/check_swap.h')
-rw-r--r--plugins/check_swap.d/check_swap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/check_swap.d/check_swap.h b/plugins/check_swap.d/check_swap.h
index 99039b21..1000fc9e 100644
--- a/plugins/check_swap.d/check_swap.h
+++ b/plugins/check_swap.d/check_swap.h
@@ -1,6 +1,7 @@
1#pragma once 1#pragma once
2 2
3#include "../common.h" 3#include "../common.h"
4#include "output.h"
4 5
5#ifndef SWAP_CONVERSION 6#ifndef SWAP_CONVERSION
6# define SWAP_CONVERSION 1 7# define SWAP_CONVERSION 1
@@ -32,6 +33,9 @@ typedef struct {
32 check_swap_threshold crit; 33 check_swap_threshold crit;
33 bool on_aix; 34 bool on_aix;
34 int conversion_factor; 35 int conversion_factor;
36
37 bool output_format_is_set;
38 mp_output_format output_format;
35} swap_config; 39} swap_config;
36 40
37swap_config swap_config_init(void); 41swap_config swap_config_init(void);