diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 14:57:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-31 14:57:43 +0100 |
| commit | b1d260a821b7d4916d6bf1a026fbc9b4f2b268ae (patch) | |
| tree | 84a3fc6b26b181a1ed10d7ca55c32ac9170efbd4 /plugins/check_ups.c | |
| parent | b4c5956591e9741ce9b190210e7b10940a6adbdd (diff) | |
| parent | 8955f56de355403941bc8f02a4edb2bc72d1397a (diff) | |
| download | monitoring-plugins-b1d260a821b7d4916d6bf1a026fbc9b4f2b268ae.tar.gz | |
Merge pull request #2035 from RincewindsHat/cleanup/rest-of-plugins
Cleanup for some more plugins
Diffstat (limited to 'plugins/check_ups.c')
| -rw-r--r-- | plugins/check_ups.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/check_ups.c b/plugins/check_ups.c index f60c0e9e..adb7ab81 100644 --- a/plugins/check_ups.c +++ b/plugins/check_ups.c | |||
| @@ -40,7 +40,9 @@ const char *email = "devel@monitoring-plugins.org"; | |||
| 40 | #include "netutils.h" | 40 | #include "netutils.h" |
| 41 | #include "utils.h" | 41 | #include "utils.h" |
| 42 | 42 | ||
| 43 | enum { PORT = 3493 }; | 43 | enum { |
| 44 | PORT = 3493 | ||
| 45 | }; | ||
| 44 | 46 | ||
| 45 | #define UPS_NONE 0 /* no supported options */ | 47 | #define UPS_NONE 0 /* no supported options */ |
| 46 | #define UPS_UTILITY 1 /* supports utility line */ | 48 | #define UPS_UTILITY 1 /* supports utility line */ |
| @@ -66,7 +68,9 @@ enum { PORT = 3493 }; | |||
| 66 | #define UPSSTATUS_UNKNOWN 4096 | 68 | #define UPSSTATUS_UNKNOWN 4096 |
| 67 | #define UPSSTATUS_ALARM 8192 | 69 | #define UPSSTATUS_ALARM 8192 |
| 68 | 70 | ||
| 69 | enum { NOSUCHVAR = ERROR - 1 }; | 71 | enum { |
| 72 | NOSUCHVAR = ERROR - 1 | ||
| 73 | }; | ||
| 70 | 74 | ||
| 71 | typedef struct ups_config { | 75 | typedef struct ups_config { |
| 72 | unsigned int server_port; | 76 | unsigned int server_port; |
