Ein Wiki privater Natur

netdata

Eine Sammlung kleiner Dinge, die das Leben leichter machen

Apache Charts werden nicht mehr dargestellt.

Ein führendes Leerzeichen für eine Option in /etc/netdata/go.d/apache.conf
war der Auslöser.

 autodetection_retry: 120 illegal

autodetection_retry: 120 korrekt

debug:

su - netdata -s /bin/bash
cd /usr/libexec/netdata/plugins.d/
./go.d.plugin -d -m apache

https://learn.netdata.cloud/docs/data-collection/web-servers-and-web-proxies/apache#debug-mode

ein netdata restart ist auch oft eine Lösung
Für health Dinge reicht eigentlich immer ein
netdatacli reload-health

zu viele nächtliche Web Alerts

z.B.

Warning, web_log_1m_bad_requests = 33.5%,

/etc/netdata/edit-config health.d/web_log.conf

template: web_log_1m_redirects
       on: web_log.type_requests
    class: Workload
     type: Web Server
component: Web log
   lookup: sum -1m unaligned of redirect
     calc: $this * 100 / $web_log_1m_requests
    units: %
    every: 10s
     warn: ($web_log_1m_requests > 180) ? ($this > (($status >= $WARNING ) ? (  1 ) : ( 20 )) ) : ( 0 )
#    warn: ($web_log_1m_requests > 120) ? ($this > (($status >= $WARNING ) ? (  1 ) : ( 20 )) ) : ( 0 )
    delay: up 2m down 15m multiplier 1.5 max 1h
     info: ratio of redirection HTTP requests over the last minute (3xx except 304)
       to: webmaster

 template: web_log_1m_bad_requests
       on: web_log.type_requests
    class: Errors
     type: Web Server
component: Web log
   lookup: sum -1m unaligned of bad
     calc: $this * 100 / $web_log_1m_requests
    units: %
    every: 10s
     warn: ($web_log_1m_requests > 180) ? ($this > (($status >= $WARNING)  ? ( 10 ) : ( 30 )) ) : ( 0 )
#    warn: ($web_log_1m_requests > 120) ? ($this > (($status >= $WARNING)  ? ( 10 ) : ( 30 )) ) : ( 0 )
    delay: up 2m down 15m multiplier 1.5 max 1h
     info: ratio of client error HTTP requests over the last minute (4xx except 401)
       to: webmaster

 template: web_log_1m_internal_errors
       on: web_log.type_requests
    class: Errors
     type: Web Server
component: Web log
   lookup: sum -1m unaligned of error
     calc: $this * 100 / $web_log_1m_requests
    units: %
    every: 10s
#    warn: ($web_log_1m_requests > 120) ? ($this > (($status >= $WARNING)  ? ( 1 ) : ( 2 )) ) : ( 0 )
#    crit: ($web_log_1m_requests > 120) ? ($this > (($status == $CRITICAL) ? ( 2 ) : ( 5 )) ) : ( 0 )
     warn: ($web_log_1m_requests > 180) ? ($this > (($status >= $WARNING)  ? ( 1 ) : ( 2 )) ) : ( 0 )
     crit: ($web_log_1m_requests > 180) ? ($this > (($status == $CRITICAL) ? ( 2 ) : ( 5 )) ) : ( 0 )
    delay: up 2m down 15m multiplier 1.5 max 1h
     info: ratio of server error HTTP requests over the last minute (5xx)
       to: webmaster

Ich beobachte und berichte


Netdata geht nicht mehr

Es kommt eine Fehlermeldung, dass die /var/lib/netdata/www//index.html
nicht gelesen werden kann, oder nicht existiert.
service netdata restart
funktioniert nicht.

Lösung:

service netdata restart
Warning: The unit file, source configuration file or drop-ins of netdata.service changed on disk. Run 'systemctl daemon-reload' to reload units.
root@isp ~ # systemctl daemon-reload
root@isp ~ # service netdata restart