1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 18:07:20 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -1,42 +1,42 @@
#!/usr/bin/python
#
#
# Copyright (C) Rodolphe Franceschi
#
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
#
#
#
# This plugin monitors a SOLR server configured for multicore by automatically
# getting core names from SOLR default page.
#
#
# Tested on SOLR 1.4.0
#
#
# Parameters:
# config (required)
# autoconf (optional - used by munin-config)
#
# For the full list of options, refer to PLUGINOPTIONSLIST variable
#
#
# Example of symlink creation on Debian Lenny
# ln -s /usr/share/munin/plugins/solrmulticore_ /etc/munin/plugins/solrmulticore_avgRequestsPerSecond
#
#
# Magic markers (Used by munin-config and some installation scripts.
# Optional):
#%# family=auto
#%# capabilities=autoconf
import sys, os
import sys, os
import urllib2
import HTMLParser, urllib
@ -101,7 +101,7 @@ def parseArgs():
params = { }
params['valueName'] = parts[1]
# Automatic / Manual Mode for core names
if (len(SOLR_CORES) == 0):
params['cores'] = getSolrCoreNameList()
@ -173,7 +173,7 @@ if len(sys.argv) > 1:
params = parseArgs()
for core in params['cores']:
#print core, params['valueName']
queues = fetchUrl(core, PLUGINOPTIONSLIST[params['valueName']]['xmlpath'])
queues = fetchUrl(core, PLUGINOPTIONSLIST[params['valueName']]['xmlpath'])
searcher = getEntry(queues, PLUGINOPTIONSLIST[params['valueName']]['xmlparententryname'])
value = getValue(searcher, params['valueName']).strip()
print "%s.value %s" % (core, value)