Skip to content

Commit

Permalink
Merge pull request #10 from newrelic/patch/service-check-logging
Browse files Browse the repository at this point in the history
Improve service checks troubleshooting
  • Loading branch information
zkendra authored Mar 19, 2019
2 parents 1b22d0e + e33dca6 commit 39696c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 0.1.4 - 2019-03-19
### Changed
- Add log line when unable to execute service checks

## 0.1.3 - 2019-01-08
### Changed
- Rename sample service checks file for consistency
Expand Down
3 changes: 2 additions & 1 deletion src/nagios.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

const (
integrationName = "com.newrelic.nagios"
integrationVersion = "0.1.3"
integrationVersion = "0.1.4"
)

type argumentList struct {
Expand Down Expand Up @@ -185,6 +185,7 @@ func runCommand(name string, args ...string) (stdout string, stderr string, exit
exitCode = ws.ExitStatus()
} else {
// This will happen (in OSX) if `name` is not available in $PATH,
log.Error("Failed to execute script `%s`: %s", name, err.Error())
exitCode = -1
if stderr == "" {
stderr = err.Error()
Expand Down

0 comments on commit 39696c0

Please sign in to comment.