alerta / nagios-alerta

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

Windows Disks JSON issue #4

Closed eduardohki closed 9 years ago

eduardohki commented 9 years ago

Hello,

I'm having problems getting Windows disks events in Alerta, where a message example is below:

Aug 19 01:13:44 swone nagios: SERVICE ALERT: EKWS-DB;D Drive Usage;WARNING;SOFT;1;d:\ - total: 150.00 Gb - used: 122.97 Gb (82%) - free 27.02 Gb (18%)
Aug 19 01:13:44 swone nagios: {"origin":"nagios3/swone.expresso.net.br","resource":"EKWS-DB","event":"D Drive Usage","group":"Nagios","severity":"warning","environment":"Production","service":["Platform"],"tags":["check=Active"],"text":"d:\ - total: 150.00 Gb - used: 122.97 Gb (82%) - free 27.02 Gb (18%)","value":"1/3 (Soft)","type":"nagiosServiceAlert","rawData":"'d:\ Used Space'=122.97Gb;120.00;142.50;0.00;150.00"}#012#015

How can I replace the ":" character to prevent a broken JSON?

satterly commented 9 years ago

Fixed by #5