mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
netapp: move plugins within snmp folder as that's what they are.
Fix them so that the renamed version works; these still don't use Munin::SNMP and somebody who has access to them might want to rename them.
This commit is contained in:
parent
b4817a7f01
commit
a2170c363b
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ def snmpget(iservername,isnmpid):
|
||||||
return output.split()[3]
|
return output.split()[3]
|
||||||
|
|
||||||
# The interface number corresponds to vif1 on the tested netapp
|
# The interface number corresponds to vif1 on the tested netapp
|
||||||
servername = sys.argv[0].split('_')[2]
|
servername = sys.argv[0].split('_')[1]
|
||||||
cifsConnectedUsers = '1.3.6.1.4.1.789.1.7.2.9.0'
|
cifsConnectedUsers = '1.3.6.1.4.1.789.1.7.2.9.0'
|
||||||
cifsNSessions = '1.3.6.1.4.1.789.1.7.2.12.0'
|
cifsNSessions = '1.3.6.1.4.1.789.1.7.2.12.0'
|
||||||
cifsNOpenFiles = '1.3.6.1.4.1.789.1.7.2.13.0'
|
cifsNOpenFiles = '1.3.6.1.4.1.789.1.7.2.13.0'
|
|
@ -25,7 +25,7 @@ def snmpget(iservername,isnmpid):
|
||||||
snmpid = "1.3.6.1.4.1.789.1.2.1.3.0"
|
snmpid = "1.3.6.1.4.1.789.1.2.1.3.0"
|
||||||
warning = 80
|
warning = 80
|
||||||
critical = 95
|
critical = 95
|
||||||
servername = sys.argv[0].split('_')[2]
|
servername = sys.argv[0].split('_')[1]
|
||||||
|
|
||||||
if len(sys.argv) == 2 and sys.argv[1] == "config":
|
if len(sys.argv) == 2 and sys.argv[1] == "config":
|
||||||
print 'graph_title CPU usage on', servername
|
print 'graph_title CPU usage on', servername
|
Loading…
Add table
Add a link
Reference in a new issue