Révision a2170c36
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.
| plugins/snmp/snmp__netapp_cifs | ||
|---|---|---|
| 23 | 23 |
return output.split()[3] |
| 24 | 24 |
|
| 25 | 25 |
# The interface number corresponds to vif1 on the tested netapp |
| 26 |
servername = sys.argv[0].split('_')[2]
|
|
| 26 |
servername = sys.argv[0].split('_')[1]
|
|
| 27 | 27 |
cifsConnectedUsers = '1.3.6.1.4.1.789.1.7.2.9.0' |
| 28 | 28 |
cifsNSessions = '1.3.6.1.4.1.789.1.7.2.12.0' |
| 29 | 29 |
cifsNOpenFiles = '1.3.6.1.4.1.789.1.7.2.13.0' |
| plugins/snmp/snmp__netapp_cpu | ||
|---|---|---|
| 25 | 25 |
snmpid = "1.3.6.1.4.1.789.1.2.1.3.0" |
| 26 | 26 |
warning = 80 |
| 27 | 27 |
critical = 95 |
| 28 |
servername = sys.argv[0].split('_')[2]
|
|
| 28 |
servername = sys.argv[0].split('_')[1]
|
|
| 29 | 29 |
|
| 30 | 30 |
if len(sys.argv) == 2 and sys.argv[1] == "config": |
| 31 | 31 |
print 'graph_title CPU usage on', servername |
Formats disponibles : Unified diff