hubot-archive / hubot-pager-me

PagerDuty integration for Hubot
https://www.npmjs.com/package/hubot-pager-me
MIT License
73 stars 92 forks source link

Restore the original 'pager sup' format for nagios alerts #35

Closed antonio closed 9 years ago

antonio commented 9 years ago

The original format was something like

Triggered:
----------

Acknowledged:
-------------
2858: 2014-12-19T04:46:54Z host1/unknown-services (CRITICAL) - assigned to antonio
2859: 2014-12-19T04:47:14Z host2/haproxy-status (CRITICAL) - assigned to antonio

but since mid December the / between the host and the check description has been replaced by a space.

A subject is always returned (this was probably not always the case before) and the first condition patch in the if clause setting the summary is always met. Reordering the condition branches is enough to get the original format back.

technicalpickles commented 9 years ago

Excellent, thanks :sparkling_heart: