| 1 |
# all those variables need to be defined to activate this rule |
| 2 |
#@@define MUNIN_DOMAINS undefined |
| 3 |
#@@define MUNIN_HOSTS undefined |
| 4 |
#@@define MUNIN_DISKDEVS undefined |
| 5 |
#@@define MUNIN_DISKS undefined |
| 6 |
|
| 7 |
@@define MUNIN_VC var/cache/munin |
| 8 |
@@define MUNIN_VL var/lib/munin |
| 9 |
|
| 10 |
/@@{RUN}/munin$ d RecreatedDir |
| 11 |
!/@@{RUN}/munin/munin-master-processmanager-[[:digit:]]+\\.sock$ s |
| 12 |
/@@{MUNIN_VC}/www/static$ d VarDir |
| 13 |
/@@{MUNIN_VC}/www/static/((definitions|dynazoom)\\.html|favicon\\.ico|(formatdate|querystring|zoom)\\.js|logo(-h)?\\.png|style(-1\\.2|-new)?\\.css)$ f VarFile |
| 14 |
/@@{MUNIN_VL}$ d VarDir |
| 15 |
/@@{MUNIN_VL}/graphs$ f VarFile |
| 16 |
/@@{MUNIN_VL}/munin-(graph|update)\\.stats$ f VarFile |
| 17 |
!/@@{MUNIN_VL}/munin-(graph|update)\\.stats\\.tmp$ f |
| 18 |
@@if defined MUNIN_DOMAINS |
| 19 |
@@if defined MUNIN_HOSTS |
| 20 |
@@if defined MUNIN_DISKDEVS |
| 21 |
@@if defined MUNIN_DISKS |
| 22 |
!/@@{RUN}/munin/munin-(graph|update|@@{MUNIN_DOMAINS}-@@{MUNIN_HOSTS})\\.lock$ f |
| 23 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}$ d VarDir |
| 24 |
/@@{MUNIN_VC}/www/(disk|exim|munin|network|processes|sensors|system|time)-(day|month|week|year)\\.html$ f VarFile |
| 25 |
@@define MUNIN_LOCAL (cpu|df|df_inode|entropy|exim_mail(queue|stats)|forks|fw_packets|http_loadtime|if(_err)?_@@{MUNIN_INTERFACES}|interrupts|iostat(_ios)?|irqstats|load|memory|munin_stats|ntp_kernel_(err|pll_freq|pll_off)|ntp_offset|open_(files|inodes)|proc_pri|processes|swap|threads|uptime|users|vmstat) |
| 26 |
!/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/(cpu-day\\.png)$ f |
| 27 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/diskstats_(iops|latency|throughput|utilization)$ d VarDir |
| 28 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/diskstats_(iops|latency|throughput|utilization)/@@{MUNIN_DISKDEVS}(\\.html|-(day|week|month|year)\\.png)$ f VarFile |
| 29 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/diskstats_(iops|latency|throughput|utilization)(\\.html|-(day|week|month|year)\\.png)$ f VarFile |
| 30 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/if_(errcoll|packets)_@@{MUNIN_INTERFACES}(\\.html|-(day|week|month|year)\\.png)$ f VarFile |
| 31 |
/@@{MUNIN_VC}/www/mysql-(day|week|month|year)\\.html$ f VarFile |
| 32 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/mysql(_(bytes|(slow)?queries|threads))?(\\.html|-(day|week|month|year)\\.png)$ f VarFile |
| 33 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/netstat_(established)?(\\.html|-(day|week|month|year)\\.png)$ f VarFile |
| 34 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/sendmail(_mail(queue|stats|traffic))?(\\.html|-(day|week|month|year)\\.png)$ f VarFile |
| 35 |
/@@{MUNIN_VC}/www/sendmail-(day|week|month|year)\\.html$ f VarFile |
| 36 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/(acpi|netstat|systat)(\\.html|-(day|week|month|year)\\.png)$ f VarFile |
| 37 |
@@if exists /usr/share/doc/tor/copyright |
| 38 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/tor_(bandwidth|connections|dormant|routers|traffic)(\\.html|-(day|week|month|year)\\.png)$ f VarFile |
| 39 |
@@endif |
| 40 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}(/@@{MUNIN_HOSTS}/diskstats_(iops|latency|throughput|utilization))?/index\\.html$ f VarFile |
| 41 |
/@@{MUNIN_VC}/www/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/@@{MUNIN_LOCAL}(\\.html|-(day|month|week|year)\\.png)$ f VarFile |
| 42 |
/@@{MUNIN_VC}/www/(@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}/)?(index|problems)\\.html$ f VarFile |
| 43 |
/@@{MUNIN_VL}/(state-@@{MUNIN_DOMAINS}-@@{MUNIN_HOSTS}|datafile|limits|htmlconf)(\\.storable)?$ f VarFile |
| 44 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-(forks-forks|swap-swap_(in|out))-d\\.rrd$ f VarFile |
| 45 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-entropy-entropy-g\\.rrd$ f VarFile |
| 46 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-cpu-(guest|idle|iowait|interrupt|irq|nice|softirq|steal|system|user)-d\\.rrd$ f VarFile |
| 47 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-(load-load|threads-threads|uptime-uptime)-g\\.rrd$ f VarFile |
| 48 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-df(_inode)?-(_dev|@@{MUNIN_DISKS})-g\\.rrd$ f VarFile |
| 49 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-diskstats_iops-@@{MUNIN_DISKDEVS}[_-](avg(rd|wr)rqsz|(rd|wr)io)-g\\.rrd$ f VarFile |
| 50 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-diskstats_(latency)-@@{MUNIN_DISKDEVS}[-_](avg(rd|wr)?wait|svctm)-g\\.rrd$ f VarFile |
| 51 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-diskstats_(throughput)-@@{MUNIN_DISKDEVS}[-_]((rd|wr)bytes)-g\\.rrd$ f VarFile |
| 52 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-diskstats_(utilization)-@@{MUNIN_DISKDEVS}[-_](util)-g\\.rrd$ f VarFile |
| 53 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-exim_mail(queue-(frozen|mails)-g|stats-(completed|received|rejected)-d)\\.rrd$ f VarFile |
| 54 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-fw_packets-(forwarded|received)-d\\.rrd$ f VarFile |
| 55 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-if_err_@@{MUNIN_INTERFACES}-(collisions|rcvd|[rt]xdrop|trans)-c\\.rrd$ f VarFile |
| 56 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-if_errcoll_@@{MUNIN_INTERFACES}-(collisions|[io]errors)-c\\.rrd$ f VarFile |
| 57 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-if_packets_@@{MUNIN_INTERFACES}-([or]packets)-c\\.rrd$ f VarFile |
| 58 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-if_@@{MUNIN_INTERFACES}-(down|up|[ior]bytes)-d\\.rrd$ f VarFile |
| 59 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-interrupts-(ctx|intr)-d\\.rrd$ f VarFile |
| 60 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-iostat-(cd0|da0|dev[[:digit:]]+_[[:digit:]]|pass[01]){1,2}_(read|write)-d\\.rrd$ f VarFile |
| 61 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-iostat_ios-dev[[:digit:]]+_[[:digit:]]{1,2}_[rw]time-g\\.rrd$ f VarFile |
| 62 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-irqstats-i([[:digit:]]+|CAL|DFR|ERR|HYP|IWI|LOC|MCE|MCP|MIS|NMI|NPI|PIN|PIW|PMI|RES|RTR|SPU|THR|TLB|TRMi|VPMI)-d\\.rrd$ f VarFile |
| 63 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-lstime-lstime-g\\.rrd$ f VarFile |
| 64 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-memory-(active|apps|buffers|cached|committed|free|inactive|ksm_sharing|laundry|mapped|page_tables|per_cpu|shmem|slab|swap|swap_cache|vmalloc_used|wired)-g\\.rrd$ f VarFile |
| 65 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-munin_stats-(graph|html|limits|update)-g\\.rrd$ f VarFile |
| 66 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-mysql_(threads-threads)-g\\.rrd$ f VarFile |
| 67 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-mysql_(bytes-(recv|sent)|queries-(cache(_hits)?|delete|insert|replace|select|update)|slowqueries-queries)-d\\.rrd$ f VarFile |
| 68 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-netstat-(active|established|failed|passive|resets)-d\\.rrd$ f VarFile |
| 69 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-netstat(_established-established)?-g\\.rrd$ f VarFile |
| 70 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-ntp_(kernel_(err-ntp_err|pll_(freq|off)-ntp_pll_(freq|off)))-g\\.rrd$ f VarFile |
| 71 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-ntp_offset-(delay|jitter|offset)-g\\.rrd$ f VarFile |
| 72 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-open_((files|inodes)-(max|used))-g\\.rrd$ f VarFile |
| 73 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-proc_pri-(high|locked|low)-g\\.rrd$ f VarFile |
| 74 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-processes-(dead|idle|paging|processes|runnable|sleeping|stopped|uninterruptible|zombie)-g\\.rrd$ f VarFile |
| 75 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-sendmail_(mailqueue-mails)-g\\.rrd$ f VarFile |
| 76 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-sendmail_(mailstats-(discarded|received|rejected|sent)|mailtraffic-(received|sent))-d\\.rrd$ f VarFile |
| 77 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-users-(X|other|pts|pty|tty)-g\\.rrd$ f VarFile |
| 78 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-systat-(cs|forks|(hard|soft)int|syscall)-d\\.rrd$ f VarFile |
| 79 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-vmstat-(sleep|wait)-g\\.rrd$ f VarFile |
| 80 |
/@@{MUNIN_VL}/@@{MUNIN_DOMAINS}/@@{MUNIN_HOSTS}-http_loadtime-http___localhost_-g\\.rrd$ f VarFile |
| 81 |
@@undef MUNIN_LOCAL |
| 82 |
@@endif |
| 83 |
@@endif |
| 84 |
@@endif |
| 85 |
@@endif |
| 86 |
|
| 87 |
@@define MUNIN_LOGDIR var/log/munin |
| 88 |
@@define MUNIN_LOGFILES munin-(graph|html|limits|update)\\.log |
| 89 |
/@@{MUNIN_LOGDIR}$ d VarDir |
| 90 |
/@@{MUNIN_LOGDIR}/@@{MUNIN_LOGFILES}$ f ActLog |
| 91 |
/@@{MUNIN_LOGDIR}/@@{MUNIN_LOGFILES}\\.1$ f RotLog |
| 92 |
/@@{MUNIN_LOGDIR}/@@{MUNIN_LOGFILES}\\.2\\.@@{LOGEXT}$ f CompSerLog |
| 93 |
/@@{MUNIN_LOGDIR}/@@{MUNIN_LOGFILES}\\.[3-6]\\.@@{LOGEXT}$ f MidlSerLog |
| 94 |
/@@{MUNIN_LOGDIR}/@@{MUNIN_LOGFILES}\\.7\\.@@{LOGEXT}$ f LastSerLog |
| 95 |
@@undef MUNIN_LOGDIR |
| 96 |
@@undef MUNIN_LOGFILES |
| 97 |
|
| 98 |
@@if defined MUNIN_INTERFACES |
| 99 |
@@undef MUNIN_INTERFACES |
| 100 |
@@endif |
| 101 |
@@if defined MUNIN_DOMAINS |
| 102 |
@@undef MUNIN_DOMAINS |
| 103 |
@@endif |
| 104 |
@@if defined MUNIN_HOSTS |
| 105 |
@@undef MUNIN_HOSTS |
| 106 |
@@endif |
| 107 |
@@if defined MUNIN_DISKDEVS |
| 108 |
@@undef MUNIN_DISKDEVS |
| 109 |
@@endif |
| 110 |
@@if defined MUNIN_DISKS |
| 111 |
@@undef MUNIN_DISKS |
| 112 |
@@endif |
| 113 |
@@if defined MUNIN_VL |
| 114 |
@@undef MUNIN_VL |
| 115 |
@@endif |
| 116 |
@@if defined MUNIN_VC |
| 117 |
@@undef MUNIN_VC |
| 118 |
@@endif |