alerta / nagios-alerta

Forward nagios alerts to the alerta monitoring system
http://alerta.io
MIT License
23 stars 15 forks source link

Invalid http call if long_desc is multiline #25

Closed tester22 closed 6 years ago

tester22 commented 6 years ago

If the field long_desc is multiline the http call is invalid causing alerta api to returrn 400.

Example: [1520768752] [alerta] Service check received. [1520768752] {"origin":"nagios/op5","resource":"db103","event":"SAP HANA Services","group":"Nagios","severity":"normal","environment":"Production","service":["Platform"],"tags":["check=Active"],"text":"daemon:YES nameserver:YES preprocessor:YES webdispatcher:YES compileserver:YES indexserver:YES ","value":"1/3 (Hard)","type":"nagiosServiceAlert","rawData":""} [1520768752] [alerta] HTTP server error (status=400)