Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
My Nagios Plugin Wrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
My Nagios Plugin Wrapper
Commits
e74e3751
Commit
e74e3751
authored
4 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Nagios package.
For now just the return codes for plugins.
parent
27ae1e18
No related branches found
No related tags found
No related merge requests found
Pipeline
#1775
failed
3 years ago
Stage: .pre
Stage: build
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mnpw.go
+1
-0
1 addition, 0 deletions
mnpw.go
pkg/nagios/nagios.go
+12
-0
12 additions, 0 deletions
pkg/nagios/nagios.go
with
13 additions
and
0 deletions
mnpw.go
+
1
−
0
View file @
e74e3751
package
main
import
(
"git.shore.co.il/shore/mnpw/pkg/nagios"
"os"
)
...
...
This diff is collapsed.
Click to expand it.
pkg/nagios/nagios.go
0 → 100644
+
12
−
0
View file @
e74e3751
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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment