From a7139bcaee71c8b94d3f7314e1913e9fb1d2dfb9 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Wed, 28 Oct 2020 23:38:41 +0100 Subject: [PATCH] Unify shebang for python scripts --- plugins/apt/deb_packages/deb_packages.py | 2 +- plugins/arangodb/arangodb_ | 2 +- plugins/ceph/ceph-osd-info | 2 +- plugins/change.org/changeorg_signature_count | 2 +- plugins/currency/bitcoin/btcguild_hashrate_ | 2 +- plugins/currency/bitcoin/slush_hashrate_ | 2 +- plugins/currency/bitcoin/slush_reward_ | 2 +- plugins/disk/snmp__areca_ | 2 +- plugins/icecast/icecast2_ | 2 +- plugins/icecast/icecast2_all | 2 +- plugins/icecast/icecast2_stats_ | 2 +- plugins/libvirt/kvm_cpu | 2 +- plugins/libvirt/kvm_io | 2 +- plugins/libvirt/kvm_mem | 2 +- plugins/libvirt/kvm_net | 2 +- plugins/libvirt/munin-libvirtpy | 2 +- plugins/lxd/lxd_disk | 2 +- plugins/lxd/lxd_mem | 2 +- plugins/monit/monit_parser | 2 +- plugins/mumble/mumble_users | 2 +- plugins/network/nsd3 | 2 +- plugins/network/shorewall-accounting_ | 2 +- plugins/network/shorewall_ | 4 ++-- plugins/network/shorewall_acc | 2 +- plugins/nginx/nginx_upstream | 2 +- plugins/other/beanstalkd | 2 +- plugins/other/foldingathome_activecpu | 2 +- plugins/puppet/puppetdb | 2 +- plugins/riak/riak_fsm_time_95 | 2 +- plugins/riak/riak_memory | 2 +- plugins/riak/riak_node | 2 +- plugins/router/snmp__juniper | 2 +- plugins/router/snmp__juniper_spu | 2 +- plugins/senderscore/senderscore | 2 +- plugins/tor/tor_ | 2 +- plugins/twemproxy/nutcracker_requests_ | 2 +- plugins/weather/weather_ | 2 +- plugins/wowza/wowza-media-server | 2 +- plugins/znc/znc_logs.py | 2 +- plugins/zope/zope_cache_parameters | 2 +- plugins/zope/zope_conflict_errors | 2 +- plugins/zope/zope_db_activity | 2 +- 42 files changed, 43 insertions(+), 43 deletions(-) diff --git a/plugins/apt/deb_packages/deb_packages.py b/plugins/apt/deb_packages/deb_packages.py index f2c21eb6..00f1a6a2 100755 --- a/plugins/apt/deb_packages/deb_packages.py +++ b/plugins/apt/deb_packages/deb_packages.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- """ diff --git a/plugins/arangodb/arangodb_ b/plugins/arangodb/arangodb_ index 4ee21e92..e3058673 100755 --- a/plugins/arangodb/arangodb_ +++ b/plugins/arangodb/arangodb_ @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """ Plugin to monitor ArangoDB servers. It works with the new server statistics diff --git a/plugins/ceph/ceph-osd-info b/plugins/ceph/ceph-osd-info index d4dd4e8c..83e41420 100755 --- a/plugins/ceph/ceph-osd-info +++ b/plugins/ceph/ceph-osd-info @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """ : << =cut diff --git a/plugins/change.org/changeorg_signature_count b/plugins/change.org/changeorg_signature_count index 7c5d3a2a..ff518183 100755 --- a/plugins/change.org/changeorg_signature_count +++ b/plugins/change.org/changeorg_signature_count @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 ''' =head1 NAME diff --git a/plugins/currency/bitcoin/btcguild_hashrate_ b/plugins/currency/bitcoin/btcguild_hashrate_ index c60db5a3..2aa1a099 100755 --- a/plugins/currency/bitcoin/btcguild_hashrate_ +++ b/plugins/currency/bitcoin/btcguild_hashrate_ @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # based on https://github.com/pdbrown/munin-custom/blob/master/plugins/hashrate # improved by @deveth0 (donation to 1GzHgp9hsDRsf96MnVk2oo6EG1VmWP9jGs :) ) # usage: link to btcguild_hashrate_YOURAPIKEY diff --git a/plugins/currency/bitcoin/slush_hashrate_ b/plugins/currency/bitcoin/slush_hashrate_ index b07493fc..9d69a994 100755 --- a/plugins/currency/bitcoin/slush_hashrate_ +++ b/plugins/currency/bitcoin/slush_hashrate_ @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # based on https://github.com/pdbrown/munin-custom/blob/master/plugins/hashrate # improved by @deveth0 (donation to 1GzHgp9hsDRsf96MnVk2oo6EG1VmWP9jGs :) ) # usage: set your api key in node-config, eg diff --git a/plugins/currency/bitcoin/slush_reward_ b/plugins/currency/bitcoin/slush_reward_ index 2986ea00..b014ad5d 100755 --- a/plugins/currency/bitcoin/slush_reward_ +++ b/plugins/currency/bitcoin/slush_reward_ @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # based on https://github.com/pdbrown/munin-custom/blob/master/plugins/hashrate # improved by @deveth0 (donation to 1GzHgp9hsDRsf96MnVk2oo6EG1VmWP9jGs :) ) # usage: set your api key in node-config, eg diff --git a/plugins/disk/snmp__areca_ b/plugins/disk/snmp__areca_ index e694fd79..f3d5a94f 100755 --- a/plugins/disk/snmp__areca_ +++ b/plugins/disk/snmp__areca_ @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # Copyright (C) 2009 - 2012 Andreas Thienemann # diff --git a/plugins/icecast/icecast2_ b/plugins/icecast/icecast2_ index 754c8122..f6bc5d72 100755 --- a/plugins/icecast/icecast2_ +++ b/plugins/icecast/icecast2_ @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python # -*- coding: iso-8859-1 -*- import os diff --git a/plugins/icecast/icecast2_all b/plugins/icecast/icecast2_all index d9745e8b..3fccfaa9 100755 --- a/plugins/icecast/icecast2_all +++ b/plugins/icecast/icecast2_all @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python # -*- coding: iso-8859-1 -*- """ This plugin shows the statistics of every source currently connected to the Icecast2 server. diff --git a/plugins/icecast/icecast2_stats_ b/plugins/icecast/icecast2_stats_ index 744fe10c..6d333880 100755 --- a/plugins/icecast/icecast2_stats_ +++ b/plugins/icecast/icecast2_stats_ @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # # This plugin shows the statistics of every source currently connected to the Icecast2 server. # See the Icecast2_ plugin for collecting data of specific mountpoints. diff --git a/plugins/libvirt/kvm_cpu b/plugins/libvirt/kvm_cpu index 4eebbd81..b0c4ba1d 100755 --- a/plugins/libvirt/kvm_cpu +++ b/plugins/libvirt/kvm_cpu @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 # diff --git a/plugins/libvirt/kvm_io b/plugins/libvirt/kvm_io index 1e39126c..fc82352d 100755 --- a/plugins/libvirt/kvm_io +++ b/plugins/libvirt/kvm_io @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 # diff --git a/plugins/libvirt/kvm_mem b/plugins/libvirt/kvm_mem index 2ada1da1..5cdeeac1 100755 --- a/plugins/libvirt/kvm_mem +++ b/plugins/libvirt/kvm_mem @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 # diff --git a/plugins/libvirt/kvm_net b/plugins/libvirt/kvm_net index 381bd511..baea8449 100755 --- a/plugins/libvirt/kvm_net +++ b/plugins/libvirt/kvm_net @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ =head1 NAME diff --git a/plugins/libvirt/munin-libvirtpy b/plugins/libvirt/munin-libvirtpy index b37e7a19..0776ba3a 100755 --- a/plugins/libvirt/munin-libvirtpy +++ b/plugins/libvirt/munin-libvirtpy @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # Revision 1.0 2008/05/16 - Steven Wagner # First functional release. Works for me. diff --git a/plugins/lxd/lxd_disk b/plugins/lxd/lxd_disk index 7a58993a..069486f0 100755 --- a/plugins/lxd/lxd_disk +++ b/plugins/lxd/lxd_disk @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import sys diff --git a/plugins/lxd/lxd_mem b/plugins/lxd/lxd_mem index 23fb40f9..752c820e 100755 --- a/plugins/lxd/lxd_mem +++ b/plugins/lxd/lxd_mem @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import sys diff --git a/plugins/monit/monit_parser b/plugins/monit/monit_parser index aefe5615..473b34b3 100755 --- a/plugins/monit/monit_parser +++ b/plugins/monit/monit_parser @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ =head1 NAME diff --git a/plugins/mumble/mumble_users b/plugins/mumble/mumble_users index f69edb24..6064c578 100755 --- a/plugins/mumble/mumble_users +++ b/plugins/mumble/mumble_users @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Munin Plugin for Murmur/ICE # written by T. Fernandez diff --git a/plugins/network/nsd3 b/plugins/network/nsd3 index bddb3931..72d16784 100755 --- a/plugins/network/nsd3 +++ b/plugins/network/nsd3 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #%# family=auto #%# capabilities=autoconf diff --git a/plugins/network/shorewall-accounting_ b/plugins/network/shorewall-accounting_ index 4bb27d38..6c74ae4c 100755 --- a/plugins/network/shorewall-accounting_ +++ b/plugins/network/shorewall-accounting_ @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # shorewall_accounting v1.3 # # A munin plugin for tracking traffic as recorded by shorewall accounting rules. diff --git a/plugins/network/shorewall_ b/plugins/network/shorewall_ index b32bb7a0..a45a9029 100755 --- a/plugins/network/shorewall_ +++ b/plugins/network/shorewall_ @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # shorewall_ v2.0 - 30 Aug 2008 - Tanguy Pruvot # # A munin plugin for tracking traffic as recorded by shorewall accounting rules @@ -78,4 +78,4 @@ if len(sys.argv) > 1: sys.exit(0) for chain, bytes in getBytesByChain(): - print "%s.value %i" % (chain, bytes) \ No newline at end of file + print "%s.value %i" % (chain, bytes) diff --git a/plugins/network/shorewall_acc b/plugins/network/shorewall_acc index 5a5fc479..b3180dca 100755 --- a/plugins/network/shorewall_acc +++ b/plugins/network/shorewall_acc @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # shorewall_accounting # A munin plugin for tracking traffic as recorded by shorewall accounting rules # Written by Chris AtLee diff --git a/plugins/nginx/nginx_upstream b/plugins/nginx/nginx_upstream index 0bca0f8d..6e598641 100755 --- a/plugins/nginx/nginx_upstream +++ b/plugins/nginx/nginx_upstream @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #requires log format as below #log_format cache '$remote_addr - $host [$time_local] "$request" $status ' # '$body_bytes_sent "$http_referer" ' diff --git a/plugins/other/beanstalkd b/plugins/other/beanstalkd index dd68618b..73ad479f 100755 --- a/plugins/other/beanstalkd +++ b/plugins/other/beanstalkd @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import sys, re from beanstalk import serverconn, protohandler diff --git a/plugins/other/foldingathome_activecpu b/plugins/other/foldingathome_activecpu index 9b1e6b7b..6cabc7c5 100755 --- a/plugins/other/foldingathome_activecpu +++ b/plugins/other/foldingathome_activecpu @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # Written by Bertrand Grelot # requires python-beautifulsoup diff --git a/plugins/puppet/puppetdb b/plugins/puppet/puppetdb index 66c7819b..5284a5c1 100755 --- a/plugins/puppet/puppetdb +++ b/plugins/puppet/puppetdb @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 """ =head1 NAME diff --git a/plugins/riak/riak_fsm_time_95 b/plugins/riak/riak_fsm_time_95 index 0df440f7..f22df0c8 100755 --- a/plugins/riak/riak_fsm_time_95 +++ b/plugins/riak/riak_fsm_time_95 @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # This is monitoring plugin for riak Developer's website: http://wiki.basho.com/Riak.html # sample config in /etc/munin/plugin-conf.d/riak diff --git a/plugins/riak/riak_memory b/plugins/riak/riak_memory index 5f99c0f0..2c623928 100755 --- a/plugins/riak/riak_memory +++ b/plugins/riak/riak_memory @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # This is monitoring plugin for riak Developer's website: http://wiki.basho.com/Riak.html diff --git a/plugins/riak/riak_node b/plugins/riak/riak_node index cc193bc8..b32d9472 100755 --- a/plugins/riak/riak_node +++ b/plugins/riak/riak_node @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # This is monitoring plugin for riak Developer's website: http://wiki.basho.com/Riak.html # sample config in /etc/munin/plugin-conf.d/riak diff --git a/plugins/router/snmp__juniper b/plugins/router/snmp__juniper index e6568461..b8acaa61 100755 --- a/plugins/router/snmp__juniper +++ b/plugins/router/snmp__juniper @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2014 Johann Schmitz diff --git a/plugins/router/snmp__juniper_spu b/plugins/router/snmp__juniper_spu index 5ceab231..724aa937 100755 --- a/plugins/router/snmp__juniper_spu +++ b/plugins/router/snmp__juniper_spu @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2014 Johann Schmitz diff --git a/plugins/senderscore/senderscore b/plugins/senderscore/senderscore index a7c2886f..e40cb2e7 100755 --- a/plugins/senderscore/senderscore +++ b/plugins/senderscore/senderscore @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Here's a plugin which lets you monitor your senderscore.org reputation. For # people sending a large amount of email - this might be useful. diff --git a/plugins/tor/tor_ b/plugins/tor/tor_ index 39ec0d7c..c5a0d6ad 100755 --- a/plugins/tor/tor_ +++ b/plugins/tor/tor_ @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 ''' =head1 NAME diff --git a/plugins/twemproxy/nutcracker_requests_ b/plugins/twemproxy/nutcracker_requests_ index 655ed61c..504d8fb1 100755 --- a/plugins/twemproxy/nutcracker_requests_ +++ b/plugins/twemproxy/nutcracker_requests_ @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # This is a monitoring plugin for twemproxy (aka: nutcracker) # config in /etc/munin/plugin-conf.d/nutcracker.conf diff --git a/plugins/weather/weather_ b/plugins/weather/weather_ index d4807063..4f88261f 100755 --- a/plugins/weather/weather_ +++ b/plugins/weather/weather_ @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os import re diff --git a/plugins/wowza/wowza-media-server b/plugins/wowza/wowza-media-server index fd04aa5e..ea0055ee 100755 --- a/plugins/wowza/wowza-media-server +++ b/plugins/wowza/wowza-media-server @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """ Plugin to monitor Wowza streaming servers. diff --git a/plugins/znc/znc_logs.py b/plugins/znc/znc_logs.py index e8fb73e6..7d348b3f 100755 --- a/plugins/znc/znc_logs.py +++ b/plugins/znc/znc_logs.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' =head1 NAME diff --git a/plugins/zope/zope_cache_parameters b/plugins/zope/zope_cache_parameters index 268dc7fc..be0aa00a 100755 --- a/plugins/zope/zope_cache_parameters +++ b/plugins/zope/zope_cache_parameters @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python from sys import argv import httplib diff --git a/plugins/zope/zope_conflict_errors b/plugins/zope/zope_conflict_errors index 5458d750..8139fa02 100755 --- a/plugins/zope/zope_conflict_errors +++ b/plugins/zope/zope_conflict_errors @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright (c) 2008 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr diff --git a/plugins/zope/zope_db_activity b/plugins/zope/zope_db_activity index 7991ee5a..cf84ccb6 100755 --- a/plugins/zope/zope_db_activity +++ b/plugins/zope/zope_db_activity @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python from sys import argv import httplib