Changeset View
Changeset View
Standalone View
Standalone View
files/patch-collectors_python.d.plugin_megacli_megacli.chart.py
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- collectors/python.d.plugin/megacli/megacli.chart.py.orig 2019-10-15 22:45:31 UTC | |||||
+++ collectors/python.d.plugin/megacli/megacli.chart.py | |||||
@@ -163,8 +163,8 @@ class Battery: | |||||
class Megacli: | |||||
def __init__(self): | |||||
self.s = find_binary('sudo') | |||||
- self.m = find_binary('megacli') | |||||
- self.sudo_check = [self.s, '-n', '-v'] | |||||
+ self.m = find_binary('megacli') or find_binary('MegaCli') # Binary on FreeBSD is MegaCli | |||||
+ self.sudo_check = [self.s, '-n', '-l'] | |||||
self.disk_info = [self.s, '-n', self.m, '-LDPDInfo', '-aAll', '-NoLog'] | |||||
self.battery_info = [self.s, '-n', self.m, '-AdpBbuCmd', '-a0', '-NoLog'] | |||||