Codebase list munin-libvirt-plugins / 4369c74
add default uri Guido Günther authored 15 years ago Guido Guenther committed 15 years ago
4 changed file(s) with 4 addition(s) and 32 deletion(s). Raw diff Collapse all Expand all
77 # Licesnse: GPLv2
88 #
99 # depends: python-libvirt, python-libxml2
10 #
11 # If you don't want to use the default uri use:
12 #
13 # [libvirt-*]
14 # env.uri qemu:///system
15 #
16 # in your plugin configuration
1710 #
1811 #%# capabilities=autoconf
1912 #%# family=contrib
9588
9689
9790 def main(sys):
98 uri = os.getenv("uri")
91 uri = os.getenv("uri", "qemu:///system")
9992
10093 if len(sys) > 1:
10194 if sys[1] in [ 'autoconf', 'detect' ]:
88 # License: GPLv2
99 #
1010 # depends: python-libvirt
11 #
12 # If you don't want to use the default uri use:
13 #
14 # [libvirt-*]
15 # env.uri qemu:///system
16 #
17 # in your plugin configuration
1811 #
1912 #%# capabilities=autoconf
2013 #%# family=contrib
5851
5952
6053 def main(sys):
61 uri = os.getenv("uri")
54 uri = os.getenv("uri", "qemu:///system")
6255
6356 if len(sys) > 1:
6457 if sys[1] in [ 'autoconf', 'detect' ]:
77 # License GPLv2
88 #
99 # depends: python-libvirt, python-libxml2
10 #
11 # If you don't want to use the default uri use:
12 #
13 # [libvirt-*]
14 # env.uri qemu:///system
15 #
16 # in your plugin configuration
1710 #
1811 #%# capabilities=autoconf
1912 #%# family=contrib
9487
9588
9689 def main(sys):
97 uri = os.getenv("uri")
90 uri = os.getenv("uri", "qemu:///system")
9891
9992 if len(sys) > 1:
10093 if sys[1] in [ 'autoconf', 'detect' ]:
88 # License: GPLv2
99 #
1010 # depends: python-libvirt
11 #
12 # If you don't want to use the default uri use:
13 #
14 # [libvirt-*]
15 # env.uri qemu:///system
16 #
17 # in your plugin configuration
1811 #
1912 #%# capabilities=autoconf
2013 #%# family=contrib
7871
7972
8073 def main(sys):
81 uri = os.getenv("uri")
74 uri = os.getenv("uri", "qemu:///system")
8275
8376 if len(sys) > 1:
8477 if sys[1] in [ 'autoconf', 'detect' ]: