diff --git a/mnpw.go b/mnpw.go index ec7d7b9d8106574f78e80cd101f6d3856b00caec..90ee2be3647219a87e44060dff79704a25dc32b2 100644 --- a/mnpw.go +++ b/mnpw.go @@ -1,6 +1,7 @@ package main import ( + "git.shore.co.il/shore/mnpw/pkg/nagios" "os" ) diff --git a/pkg/nagios/nagios.go b/pkg/nagios/nagios.go new file mode 100644 index 0000000000000000000000000000000000000000..6badb560823f2573448833a603746cd4c87dfffb --- /dev/null +++ b/pkg/nagios/nagios.go @@ -0,0 +1,12 @@ +package nagios + +// Although exit codes can't be a negative, int is used to match +// ExitCode in *os.ProcessState. +type ReturnCode int + +const ( + OK ReturnCode = 0 + WARNING = 1 + CRITICAL = 2 + UNKNOWN = 3 +)