Révision a7139bca
Unify shebang for python scripts
| plugins/apt/deb_packages/deb_packages.py | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# -*- coding: utf-8 -*- |
| 3 | 3 |
|
| 4 | 4 |
""" |
| plugins/arangodb/arangodb_ | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
""" |
| 4 | 4 |
Plugin to monitor ArangoDB servers. It works with the new server statistics |
| plugins/ceph/ceph-osd-info | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
""" |
| 4 | 4 |
: << =cut |
| plugins/change.org/changeorg_signature_count | ||
|---|---|---|
| 1 |
#!/usr/bin/python3 |
|
| 1 |
#!/usr/bin/env python3
|
|
| 2 | 2 |
''' |
| 3 | 3 |
=head1 NAME |
| 4 | 4 |
|
| plugins/currency/bitcoin/btcguild_hashrate_ | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# based on https://github.com/pdbrown/munin-custom/blob/master/plugins/hashrate |
| 3 | 3 |
# improved by @deveth0 (donation to 1GzHgp9hsDRsf96MnVk2oo6EG1VmWP9jGs :) ) |
| 4 | 4 |
# usage: link to btcguild_hashrate_YOURAPIKEY |
| plugins/currency/bitcoin/slush_hashrate_ | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# based on https://github.com/pdbrown/munin-custom/blob/master/plugins/hashrate |
| 3 | 3 |
# improved by @deveth0 (donation to 1GzHgp9hsDRsf96MnVk2oo6EG1VmWP9jGs :) ) |
| 4 | 4 |
# usage: set your api key in node-config, eg |
| plugins/currency/bitcoin/slush_reward_ | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# based on https://github.com/pdbrown/munin-custom/blob/master/plugins/hashrate |
| 3 | 3 |
# improved by @deveth0 (donation to 1GzHgp9hsDRsf96MnVk2oo6EG1VmWP9jGs :) ) |
| 4 | 4 |
# usage: set your api key in node-config, eg |
| plugins/disk/snmp__areca_ | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
# Copyright (C) 2009 - 2012 Andreas Thienemann <andreas@bawue.net> |
| 4 | 4 |
# |
| plugins/icecast/icecast2_ | ||
|---|---|---|
| 1 |
#! /usr/bin/python
|
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# -*- coding: iso-8859-1 -*- |
| 3 | 3 |
|
| 4 | 4 |
import os |
| plugins/icecast/icecast2_all | ||
|---|---|---|
| 1 |
#! /usr/bin/python
|
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# -*- coding: iso-8859-1 -*- |
| 3 | 3 |
""" |
| 4 | 4 |
This plugin shows the statistics of every source currently connected to the Icecast2 server. |
| plugins/icecast/icecast2_stats_ | ||
|---|---|---|
| 1 |
#!/usr/bin/python3 |
|
| 1 |
#!/usr/bin/env python3
|
|
| 2 | 2 |
# |
| 3 | 3 |
# This plugin shows the statistics of every source currently connected to the Icecast2 server. |
| 4 | 4 |
# See the Icecast2_ plugin for collecting data of specific mountpoints. |
| plugins/libvirt/kvm_cpu | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# -*- coding: utf-8 -*- |
| 3 | 3 |
# vim: set fileencoding=utf-8 |
| 4 | 4 |
# |
| plugins/libvirt/kvm_io | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# -*- coding: utf-8 -*- |
| 3 | 3 |
# vim: set fileencoding=utf-8 |
| 4 | 4 |
# |
| plugins/libvirt/kvm_mem | ||
|---|---|---|
| 1 |
#!/usr/bin/python3 |
|
| 1 |
#!/usr/bin/env python3
|
|
| 2 | 2 |
# -*- coding: utf-8 -*- |
| 3 | 3 |
# vim: set fileencoding=utf-8 |
| 4 | 4 |
# |
| plugins/libvirt/kvm_net | ||
|---|---|---|
| 1 |
#!/usr/bin/python3 |
|
| 1 |
#!/usr/bin/env python3
|
|
| 2 | 2 |
""" |
| 3 | 3 |
|
| 4 | 4 |
=head1 NAME |
| plugins/libvirt/munin-libvirtpy | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
# Revision 1.0 2008/05/16 - Steven Wagner |
| 4 | 4 |
# First functional release. Works for me. |
| plugins/lxd/lxd_disk | ||
|---|---|---|
| 1 |
#!/usr/bin/python3 |
|
| 1 |
#!/usr/bin/env python3
|
|
| 2 | 2 |
|
| 3 | 3 |
import sys |
| 4 | 4 |
|
| plugins/lxd/lxd_mem | ||
|---|---|---|
| 1 |
#!/usr/bin/python3 |
|
| 1 |
#!/usr/bin/env python3
|
|
| 2 | 2 |
|
| 3 | 3 |
import sys |
| 4 | 4 |
|
| plugins/monit/monit_parser | ||
|---|---|---|
| 1 |
#!/usr/bin/python3 |
|
| 1 |
#!/usr/bin/env python3
|
|
| 2 | 2 |
|
| 3 | 3 |
""" |
| 4 | 4 |
=head1 NAME |
| plugins/mumble/mumble_users | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# |
| 3 | 3 |
# Munin Plugin for Murmur/ICE |
| 4 | 4 |
# written by T. Fernandez |
| plugins/network/nsd3 | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
#%# family=auto |
| 3 | 3 |
#%# capabilities=autoconf |
| 4 | 4 |
|
| plugins/network/shorewall-accounting_ | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# shorewall_accounting v1.3 |
| 3 | 3 |
# |
| 4 | 4 |
# A munin plugin for tracking traffic as recorded by shorewall accounting rules. |
| plugins/network/shorewall_ | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# shorewall_ v2.0 - 30 Aug 2008 - Tanguy Pruvot <tanguy.pruvot@gmail.com> |
| 3 | 3 |
# |
| 4 | 4 |
# A munin plugin for tracking traffic as recorded by shorewall accounting rules |
| ... | ... | |
| 78 | 78 |
sys.exit(0) |
| 79 | 79 |
|
| 80 | 80 |
for chain, bytes in getBytesByChain(): |
| 81 |
print "%s.value %i" % (chain, bytes) |
|
| 81 |
print "%s.value %i" % (chain, bytes) |
|
| plugins/network/shorewall_acc | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# shorewall_accounting |
| 3 | 3 |
# A munin plugin for tracking traffic as recorded by shorewall accounting rules |
| 4 | 4 |
# Written by Chris AtLee <chris@atlee.ca> |
| plugins/nginx/nginx_upstream | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
#requires log format as below |
| 3 | 3 |
#log_format cache '$remote_addr - $host [$time_local] "$request" $status ' |
| 4 | 4 |
# '$body_bytes_sent "$http_referer" ' |
| plugins/other/beanstalkd | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
import sys, re |
| 4 | 4 |
from beanstalk import serverconn, protohandler |
| plugins/other/foldingathome_activecpu | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
# Written by Bertrand Grelot |
| 4 | 4 |
# requires python-beautifulsoup |
| plugins/puppet/puppetdb | ||
|---|---|---|
| 1 |
#!/usr/bin/python3 |
|
| 1 |
#!/usr/bin/env python3
|
|
| 2 | 2 |
""" |
| 3 | 3 |
=head1 NAME |
| 4 | 4 |
|
| plugins/riak/riak_fsm_time_95 | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
# This is monitoring plugin for riak Developer's website: http://wiki.basho.com/Riak.html |
| 4 | 4 |
# sample config in /etc/munin/plugin-conf.d/riak |
| plugins/riak/riak_memory | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
|
| 4 | 4 |
# This is monitoring plugin for riak Developer's website: http://wiki.basho.com/Riak.html |
| plugins/riak/riak_node | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
# This is monitoring plugin for riak Developer's website: http://wiki.basho.com/Riak.html |
| 4 | 4 |
# sample config in /etc/munin/plugin-conf.d/riak |
| plugins/router/snmp__juniper | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# -*- coding: utf-8 -*- |
| 3 | 3 |
|
| 4 | 4 |
# Copyright (C) 2014 Johann Schmitz <johann@j-schmitz.net> |
| plugins/router/snmp__juniper_spu | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# -*- coding: utf-8 -*- |
| 3 | 3 |
|
| 4 | 4 |
# Copyright (C) 2014 Johann Schmitz <johann@j-schmitz.net> |
| plugins/senderscore/senderscore | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# |
| 3 | 3 |
# Here's a plugin which lets you monitor your senderscore.org reputation. For |
| 4 | 4 |
# people sending a large amount of email - this might be useful. |
| plugins/tor/tor_ | ||
|---|---|---|
| 1 |
#!/usr/bin/python3 |
|
| 1 |
#!/usr/bin/env python3
|
|
| 2 | 2 |
''' |
| 3 | 3 |
=head1 NAME |
| 4 | 4 |
|
| plugins/twemproxy/nutcracker_requests_ | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
# This is a monitoring plugin for twemproxy (aka: nutcracker) |
| 4 | 4 |
# config in /etc/munin/plugin-conf.d/nutcracker.conf |
| plugins/weather/weather_ | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
import os |
| 4 | 4 |
import re |
| plugins/wowza/wowza-media-server | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
""" |
| 3 | 3 |
Plugin to monitor Wowza streaming servers. |
| 4 | 4 |
|
| plugins/znc/znc_logs.py | ||
|---|---|---|
| 1 |
#!/usr/bin/python3 |
|
| 1 |
#!/usr/bin/env python3
|
|
| 2 | 2 |
# -*- coding: utf-8 -*- |
| 3 | 3 |
''' |
| 4 | 4 |
=head1 NAME |
| plugins/zope/zope_cache_parameters | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
from sys import argv |
| 4 | 4 |
import httplib |
| plugins/zope/zope_conflict_errors | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
# |
| 3 | 3 |
# Copyright (c) 2008 LOGILAB S.A. (Paris, FRANCE). |
| 4 | 4 |
# http://www.logilab.fr/ -- mailto:contact@logilab.fr |
| plugins/zope/zope_db_activity | ||
|---|---|---|
| 1 |
#!/usr/bin/python |
|
| 1 |
#!/usr/bin/env python
|
|
| 2 | 2 |
|
| 3 | 3 |
from sys import argv |
| 4 | 4 |
import httplib |
Formats disponibles : Unified diff