Révision 1acb0665
Added suggestion made by @sumpfralle
| plugins/router/snmp__mikrotik_ram | ||
|---|---|---|
| 78 | 78 |
{
|
| 79 | 79 |
die "Croaking: " . $session->error(); |
| 80 | 80 |
} |
| 81 |
# print "graph_args --base 1000 -r --lower-limit 0 --upper-limit 100\n"; |
|
| 82 | 81 |
print "graph_args --base 1024 -l 0 --vertical-label Bytes --upper-limit " . ($response->{$sysRAMTotal} * 1024) . "\n";
|
| 83 | 82 |
print "graph_title RAM usage\n"; |
| 84 | 83 |
print "graph_category system\n"; |
| ... | ... | |
| 101 | 100 |
else |
| 102 | 101 |
{
|
| 103 | 102 |
print "sysRAMUsage.value U\n"; |
| 103 |
print "sysRAMTotal.value U\n"; |
|
| 104 | 104 |
} |
| 105 | 105 |
|
| 106 | 106 |
# vim:syntax=perl |
Formats disponibles : Unified diff