Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Tidy up build notice #31

Open
sroy-ingenu opened this issue Dec 21, 2016 · 1 comment
Open

Suggestion: Tidy up build notice #31

sroy-ingenu opened this issue Dec 21, 2016 · 1 comment

Comments

@sroy-ingenu
Copy link

Hi,

Right now the build notice output is:
status | hostname/checkname: check output

My current custom message:
Status: status
Host: hostname/check
Check: check output
Url: http://sensu-server/#/client/ingenu/hostname?check=checkname

Accomplished by modifying line 144:
From:
"#{@event['check']['status'].to_s.rjust(3)} | #{incident_key}: #{@event['check']['output'].strip}"

To:
"Status:#{@event['check']['status'].to_s.rjust(3)} \nHost: #{incident_key} \nCheck: #{@event['check']['output'].strip} \nUrl: http://sensu-server-URL/#/client/ingenu/#{@event['client']['name']}?check=#{@event['check']['name']}"

Thanks

@majormoses
Copy link
Member

@sroy-ingenu sorry looks this was not responded to for so long. I see there is the ability to the pass a message template to overwrite it so each user can do what they want. I do think your formatting is nicer and I would be 👍 as long as we remove the line with URL as we do not know the prefered URL to serve a sensu dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants