diff --git a/.codespell.exclude b/.codespell.exclude new file mode 100644 index 00000000..a27d8a60 --- /dev/null +++ b/.codespell.exclude @@ -0,0 +1,45 @@ + echo "succes.label Login success" + echo "succes.draw AREA" +echo "succes.value $success" +Tim Small + accesss => 'NFSPROC3_ACCESS (Check Access Permission)', +# Beginn des modifizierten Skriptes - Beginning of the modified script # + [ /(\d+) packets with ECN ECT\(0\) bit set$/, [ [ :packets, 'ECT(0) bit' ] ] ], + [ /(\d+) packets with ECN ECT\(1\) bit set$/, [ [ :packets, 'ECT(1) bit' ] ] ], + [ /(\d+) ARP entrys? timed out$/, [ [ :entries, 'timed out' ] ] ], +echo -en "recieved.value " + print "require dont.graph.anything [0-9]+\n" +# Informations générales : +# Marge de bruit 5.10 dB 5.60 dB +# Adresse MAC Freebox XX:XX:XX:XX:XX:XX +# Adresse IP 203.0.113.60 +# Adresse IP privée 192.0.2.1 +# Adresse IP DMZ 192.0.2.2 +# Adresse IP Freeplayer 192.0.2.0 +# Adresse MAC Adresse IP +# Linjen som grep'es ut kan se ut som dette: +# Linjen som grep'es ut kan se ut som dette: +VISITORS="$(echo 'munin' | curl --silent -X POST -H 'Content-type: text/xml' -d @- http://api.trafic.ro/rest/0.01/sumar-site/$RID | xmlstarlet sel -t -m "/sumar-site/vizitatori_ultimele_24_ore" -v ".")" +# - Serien Timer werden nun separat gezaehlt (anzahl pro Woche) +# - Timer werden nur ignoriert wenn sie 0(inaktiv) als Status haben + primary muss ein iterable oder StringType sein + secondary muss iterable oder StringType sein + print ("d.label Design voltage\nd.type GAUGE\nd.draw AREA\n"); + if ($str =~ /^(no?|0|f(alse)?)$/i) { +# (Based off the perl munin plugin by Joan Carles Soler) + + +Christian Loos +# - kein div 0 Fehler mehr wenn der Host nicht zu erreichen ist +# - im Namen kann Munin-konform der Hostname mit angegeben werden: vdr_localhost vdr_192.168.0.2, ... (localhost ist default) + print "platte.info Angabe, wieviel der von VDR beschreibbaren Festplatten belegt ist.\n"; + echo 'graph_title Samba Locked Files' + echo 'graph_vlabel number of locked files' + echo 'samba_locked.label Locked Files' + echo 'lock.label Locked files' + echo 'graph_info This graph shows the Memory used by process' + echo 'shares.label shared files' +# Based on Tim Wulkau's script. Thank you! + echo 'graph_title Memory usage by process' + echo 'VmSize.info The size of the virtual memory allocated to the process' +grep -v 'Preparing to download files' | \ diff --git a/.codespell.ignore-words b/.codespell.ignore-words new file mode 100644 index 00000000..67699dd7 --- /dev/null +++ b/.codespell.ignore-words @@ -0,0 +1,5 @@ +cas +conexant +ende +referer +wan diff --git a/.travis.yml b/.travis.yml index 10cd4ddb..eafd3de9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ dist: bionic addons: apt: packages: + - codespell - devscripts - python - python-flake8 @@ -84,4 +85,5 @@ before_install: # - MythTV script: + - make lint - prove diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..ea8a844f --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY: lint +lint: + # TODO: add "--ignore-words .codespell.ignore-words" as soon as travis supports a newer + # testing environment (containing codespell 0.11 or later). + find plugins/ -type f -not -name "*.png" -not -name "*.conf" -not -name "*.jar" -print0 \ + | xargs -0 codespell \ + --exclude-file .codespell.exclude