Closed eduardohki closed 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?
Fixed by #5
Hello,
I'm having problems getting Windows disks events in Alerta, where a message example is below:
How can I replace the ":" character to prevent a broken JSON?