diff options
| author | Simon Rettberg | 2025-02-13 12:07:34 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2025-02-13 12:07:34 +0100 |
| commit | 4c4806e9475bc9a11bf1a1ee1ca97ce38fbf43a1 (patch) | |
| tree | 8bf6f081736aa6ebfdfd81dc7db2d04fba46a415 /modules-available | |
| parent | [statistics] Increase cutoff for new machines to 30 days (diff) | |
| download | slx-admin-4c4806e9475bc9a11bf1a1ee1ca97ce38fbf43a1.tar.gz slx-admin-4c4806e9475bc9a11bf1a1ee1ca97ce38fbf43a1.tar.xz slx-admin-4c4806e9475bc9a11bf1a1ee1ca97ce38fbf43a1.zip | |
[eventlog] Fix escaping of predefined rule
Diffstat (limited to 'modules-available')
| -rw-r--r-- | modules-available/eventlog/install.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/eventlog/install.inc.php b/modules-available/eventlog/install.inc.php index ddf7c339..5827e225 100644 --- a/modules-available/eventlog/install.inc.php +++ b/modules-available/eventlog/install.inc.php @@ -105,7 +105,7 @@ $q = "INSERT IGNORE INTO `notification_rule` (10,'Drehende Platte','Rechner hat eine Rotierende HDD und keine SSD.','~poweron','{\"list\":[{\"path\":\"hdd_rpm\",\"op\":\">\",\"arg\":\"0\",\"index\":0},{\"path\":\"clientip\",\"op\":\"*\",\"index\":1},{\"path\":\"hostname\",\"op\":\"*\",\"index\":2}]}','Da dreht was im Rechner...','Rechner %2% (%1%) hat drehende Platte (%0% RPM)'), (11,'Neues stabiles MaxiLinux verfügbar','Eine neue MaxiLinux-Version (stabil) wurde veröffentlicht','#netboot-new-version','{\"list\":[{\"path\":\"branchid\",\"op\":\"=\",\"arg\":\"bwlp/maxilinux-u2004\",\"index\":0},{\"path\":\"versionid\",\"op\":\"*\",\"index\":1},{\"path\":\"title\",\"op\":\"*\",\"index\":2},{\"path\":\"description\",\"op\":\"*\",\"index\":3},{\"path\":\"dateline\",\"op\":\"*\",\"index\":4}]}','Neues MaxiLinux','Sehr geehrte Frau Müller,\r\n\r\nEs gibt ein neues MaxiLinux, veröffentlicht am %4ts%.\r\n%2%\r\n\r\nChangelog:\r\n%3%'), (12,'Neues MaxiLinux verfügbar','Ein neues MaxiLinux (stabil oder beta) wurde veröffentlicht','#netboot-new-version','{\"list\":[{\"path\":\"branchid\",\"op\":\"*\",\"index\":0},{\"path\":\"versionid\",\"op\":\"*\",\"index\":1},{\"path\":\"title\",\"op\":\"*\",\"index\":2},{\"path\":\"description\",\"op\":\"*\",\"index\":3},{\"path\":\"dateline\",\"op\":\"*\",\"index\":4}]}','Neues MaxiLinux','Sehr geehrte Frau Müller,\r\n\r\nEs gibt ein neues MaxiLinux in der Kategorie %0%, veröffentlicht am %4ts%.\r\n%2%\r\n\r\nChangelog:\r\n%3%'), - (13,'dnbd3-proxy Korruption','Checksum-Prüfung auf einem dnbd3-proxy schlug fehl. (Bei regelmäßigem Auftreten RAM und HDD überprüfen.)','dnbd3-hashfail','{\"list\":[{\"path\":\"description\",\"op\":\"regex\",\"arg\":\"\\\\[[0-9]+\\\\]: (.*)$\",\"index\":0},{\"path\":\"clientip\",\"op\":\"*\",\"index\":1}]}','Checksum error dnbd3-proxy %1%','%0:1%') + (13,'dnbd3-proxy Korruption','Checksum-Prüfung auf einem dnbd3-proxy schlug fehl. (Bei regelmäßigem Auftreten RAM und HDD überprüfen.)','dnbd3-hashfail','{\"list\":[{\"path\":\"description\",\"op\":\"regex\",\"arg\":\"\\\\/\\\\\\\\[[0-9]+\\\\\\\\]: (.*)$\\\\/\",\"index\":0},{\"path\":\"clientip\",\"op\":\"*\",\"index\":1}]}','Checksum error dnbd3-proxy %1%','%0:1%') "; Database::exec($q); |
