summaryrefslogtreecommitdiff
path: root/exitcodes.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-04-18 23:00:48 +0300
committerPaul Buetow <paul@buetow.org>2023-04-18 23:00:48 +0300
commit3658638e3bb3edb0f266c65fe0e42a1cd53a5f83 (patch)
tree53735108cc161bec79ebafaecc12803d636e1f3a /exitcodes.go
parent7ea496151c0336414c9563613d7c1ce87e28f4ba (diff)
use nagiosCode and other refactorings
Diffstat (limited to 'exitcodes.go')
-rw-r--r--exitcodes.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/exitcodes.go b/exitcodes.go
deleted file mode 100644
index 18e3e19..0000000
--- a/exitcodes.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package main
-
-const (
- ok = 0
- warning = 1
- critical = 2
- unknown = 3
-)
-
-func codeToString(state int) string {
- switch state {
- case 0:
- return "OK"
- case 1:
- return "WARNING"
- case 2:
- return "CRITICAL"
- default:
- return "UNKNOWN"
- }
-}