mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Plugin icecast2_all: fix code style issues reported by flake8
This commit is contained in:
parent
ab3a583756
commit
8b24b64960
2 changed files with 23 additions and 18 deletions
|
@ -1,5 +1,15 @@
|
||||||
#! /usr/bin/python
|
#! /usr/bin/python
|
||||||
# -*- coding: iso-8859-1 -*-
|
# -*- coding: iso-8859-1 -*-
|
||||||
|
"""
|
||||||
|
This plugin shows the statistics of every source currently connected to the Icecast2 server.
|
||||||
|
See the Icecast2_ plugin for specific mountpoint plugin.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import urllib2
|
||||||
|
from xml.dom import minidom
|
||||||
|
|
||||||
|
|
||||||
# Hostname of Icecast server
|
# Hostname of Icecast server
|
||||||
# Just canonical name, no http:// nor ending /
|
# Just canonical name, no http:// nor ending /
|
||||||
|
@ -9,10 +19,6 @@ username = "admin"
|
||||||
password = ""
|
password = ""
|
||||||
realm = "Icecast2 Server"
|
realm = "Icecast2 Server"
|
||||||
|
|
||||||
# This plugin shows the statistics of every source currently connected to the Icecast2 server. See the Icecast2_ plugin for specific mountpoint plugin.
|
|
||||||
|
|
||||||
import urllib2, os.path, time, sys
|
|
||||||
from xml.dom import minidom
|
|
||||||
|
|
||||||
def hent_XML():
|
def hent_XML():
|
||||||
auth_handler = urllib2.HTTPBasicAuthHandler()
|
auth_handler = urllib2.HTTPBasicAuthHandler()
|
||||||
|
|
|
@ -157,7 +157,6 @@ plugins/http/wget_page
|
||||||
plugins/i2p/i2p_
|
plugins/i2p/i2p_
|
||||||
plugins/icecast/icecast_
|
plugins/icecast/icecast_
|
||||||
plugins/icecast/icecast2
|
plugins/icecast/icecast2
|
||||||
plugins/icecast/icecast2_all
|
|
||||||
plugins/icecast/icecast2_stats_
|
plugins/icecast/icecast2_stats_
|
||||||
plugins/imapproxy/imapproxy_multi
|
plugins/imapproxy/imapproxy_multi
|
||||||
plugins/ip6/ip6_
|
plugins/ip6/ip6_
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue