| 1 |
@@define VCI var/cache/icinga2 |
| 2 |
@@define VLII var/lib/icinga2 |
| 3 |
@@define VLOI var/log/icinga2 |
| 4 |
# redefine or insert your own system's uuid for a better rule |
| 5 |
@@if not defined ICINGA2_UUID |
| 6 |
@@define ICINGA2_UUID @@{RELAXEDUUID} |
| 7 |
@@endif |
| 8 |
@@if not defined ICINGA2_HOSTNAMERE |
| 9 |
@@define ICINGA2_HOSTNAMERE ([[:alpha:]][-_\.[:alnum:]]*) |
| 10 |
@@endif |
| 11 |
|
| 12 |
/@@{VCI}$ d VarDir |
| 13 |
/@@{VCI}/(api-state\\.json|icinga2\\.(debug|vars)|objects\\.cache|status\\.dat)$ f VarFile |
| 14 |
/@@{VLII}(/api/log)?$ d VarDir |
| 15 |
/@@{VLII}/api/log/current$ f VarFile |
| 16 |
/@@{VLII}/(icinga2\\.state|modified-attributes\\.conf)$ f VarFile |
| 17 |
/@@{VLII}/api/packages/_api/@@{ICINGA2_UUID}/conf\\.d/(comments|downtimes)$ d VarDir |
| 18 |
!/@@{VLII}/api/packages/_api/@@{ICINGA2_UUID}/conf\\.d/comments/@@{ICINGA2_HOSTNAMERE}![[:alnum:][:space:].]+!@@{STRICTUUID}\\.conf$ f |
| 19 |
/@@{VLOI}$ d LogDir |
| 20 |
|
| 21 |
|
| 22 |
@@define IC2_LOG icinga2\\.log |
| 23 |
# there might also be a debug log and an error.log |
| 24 |
# icinga2.log, debug.log: |
| 25 |
# logrotate, daily, rotate 7, compress, delaycompress, missingok, notifempty |
| 26 |
# error.log: |
| 27 |
# logrotate, daily, rotate 90, compress, delaycompress, missingok, notifempty |
| 28 |
/@@{VLOI}/@@{IC2_LOG}$ f ActLog |
| 29 |
/@@{VLOI}/@@{IC2_LOG}\\.1$ f RotLog |
| 30 |
/@@{VLOI}/@@{IC2_LOG}\\.2\\.@@{LOGEXT}$ f CompSerLog |
| 31 |
/@@{VLOI}/@@{IC2_LOG}\\.[3456]\\.@@{LOGEXT}$ f MidlSerLog |
| 32 |
/@@{VLOI}/@@{IC2_LOG}\\.7\\.@@{LOGEXT}$ f LastSerLog |
| 33 |
@@undef IC2_LOG |
| 34 |
!/tmp/FileCache_icingaweb(/htmlpurifier\\.cache)?$ d |
| 35 |
!/tmp/FileCache_icingaweb/icinga-[[:xdigit:]]{8}-[[:xdigit:]]{8}-[[:xdigit:]]{8}\\.min\\.(css|js)$ f |
| 36 |
|
| 37 |
/@@{RUN}/icinga2(/cmd)?$ d RecreatedDir |
| 38 |
/@@{RUN}/icinga2/icinga2\\.pid?$ f VarFile |
| 39 |
!/@@{RUN}/icinga2/cmd/icinga2\\.cmd$ p |
| 40 |
|