Révision 117c5087
Plugin solr4_: format perldoc header
| plugins/solr/solr4_ | ||
|---|---|---|
| 1 | 1 |
#!/usr/bin/env python |
| 2 |
# |
|
| 3 |
# Copyright (c) 2013, Antonio Verni, me.verni@gmail.com |
|
| 4 |
# |
|
| 5 |
# Permission is hereby granted, free of charge, to any person obtaining a |
|
| 6 |
# copy of this software and associated documentation files (the "Software"), |
|
| 7 |
# to deal in the Software without restriction, including without limitation |
|
| 8 |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, |
|
| 9 |
# and/or sell copies of the Software, and to permit persons to whom the |
|
| 10 |
# Software is furnished to do so, subject to the following conditions: |
|
| 11 |
# |
|
| 12 |
# The above copyright notice and this permission notice shall be included |
|
| 13 |
# in all copies or substantial portions of the Software. |
|
| 14 |
# |
|
| 15 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
|
| 16 |
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 18 |
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 20 |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 21 |
# DEALINGS IN THE SOFTWARE. |
|
| 22 |
# |
|
| 23 |
# Solr 4.* munin graph plugin |
|
| 24 |
# Project repo: https://github.com/averni/munin-solr |
|
| 25 |
# |
|
| 26 |
# Plugin configuration parameters: |
|
| 27 |
# |
|
| 28 |
# [solr_*] |
|
| 29 |
# env.host_port <host:port> |
|
| 30 |
# env.url <default /solr> |
|
| 31 |
# env.qpshandler_<handlerlabel> <handlerpath> |
|
| 32 |
# |
|
| 33 |
# Example: |
|
| 34 |
# [solr_*] |
|
| 35 |
# env.host_port solrhost:8080 |
|
| 36 |
# env.url /solr |
|
| 37 |
# env.qpshandler_select /select |
|
| 38 |
# |
|
| 39 |
# Install plugins: |
|
| 40 |
# ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_numdocs_core_1 |
|
| 41 |
# ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_requesttimes_select |
|
| 42 |
# ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_qps |
|
| 43 |
# ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_qps_core_1_select |
|
| 44 |
# ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_indexsize |
|
| 45 |
# ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_memory |
|
| 46 |
# |
|
| 47 |
# |
|
| 2 |
""" |
|
| 3 |
=head1 NAME |
|
| 4 |
|
|
| 5 |
Solr 4.* munin graph plugin |
|
| 6 |
|
|
| 7 |
|
|
| 8 |
=head1 CONFIGURATION |
|
| 9 |
|
|
| 10 |
Plugin configuration parameters: |
|
| 11 |
|
|
| 12 |
[solr_*] |
|
| 13 |
env.host_port <host:port> |
|
| 14 |
env.url <default /solr> |
|
| 15 |
env.qpshandler_<handlerlabel> <handlerpath> |
|
| 16 |
|
|
| 17 |
Example: |
|
| 18 |
[solr_*] |
|
| 19 |
env.host_port solrhost:8080 |
|
| 20 |
env.url /solr |
|
| 21 |
env.qpshandler_select /select |
|
| 22 |
|
|
| 23 |
Install plugins: |
|
| 24 |
ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_numdocs_core_1 |
|
| 25 |
ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_requesttimes_select |
|
| 26 |
ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_qps |
|
| 27 |
ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_qps_core_1_select |
|
| 28 |
ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_indexsize |
|
| 29 |
ln -s /usr/share/munin/plugins/solr_.py /etc/munin/plugins/solr_memory |
|
| 30 |
|
|
| 31 |
|
|
| 32 |
=head1 AUTHOR |
|
| 33 |
|
|
| 34 |
Copyright (c) 2013, Antonio Verni, me.verni@gmail.com |
|
| 35 |
|
|
| 36 |
|
|
| 37 |
=head1 LICENSE |
|
| 38 |
|
|
| 39 |
Permission is hereby granted, free of charge, to any person obtaining a |
|
| 40 |
copy of this software and associated documentation files (the "Software"), |
|
| 41 |
to deal in the Software without restriction, including without limitation |
|
| 42 |
the rights to use, copy, modify, merge, publish, distribute, sublicense, |
|
| 43 |
and/or sell copies of the Software, and to permit persons to whom the |
|
| 44 |
Software is furnished to do so, subject to the following conditions: |
|
| 45 |
|
|
| 46 |
The above copyright notice and this permission notice shall be included |
|
| 47 |
in all copies or substantial portions of the Software. |
|
| 48 |
|
|
| 49 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
|
| 50 |
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 51 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
| 52 |
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 53 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
| 54 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
| 55 |
DEALINGS IN THE SOFTWARE. |
|
| 56 |
|
|
| 57 |
Project repo: https://github.com/averni/munin-solr |
|
| 58 |
|
|
| 59 |
""" |
|
| 48 | 60 |
|
| 49 | 61 |
|
| 50 | 62 |
import sys |
Formats disponibles : Unified diff