Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/snmp/snmp__cyberpower | ||
|---|---|---|
| 75 | 75 |
charge.min 0 |
| 76 | 76 |
charge.max 100 |
| 77 | 77 |
"; |
| 78 |
|
|
| 78 |
|
|
| 79 | 79 |
print "multigraph cyberpower_runtime |
| 80 | 80 |
graph_title CyberPower UPS Runtime |
| 81 | 81 |
graph_info This graph shows expected runtime informatiom. |
| ... | ... | |
| 86 | 86 |
runtime.draw AREA |
| 87 | 87 |
runtime.type GAUGE |
| 88 | 88 |
"; |
| 89 |
|
|
| 89 |
|
|
| 90 | 90 |
print "multigraph cyberpower_voltage |
| 91 | 91 |
graph_title CyberPower UPS Voltages |
| 92 | 92 |
graph_info This graph shows voltage information. |
| ... | ... | |
| 101 | 101 |
output.draw LINE1 |
| 102 | 102 |
output.type GAUGE |
| 103 | 103 |
"; |
| 104 |
|
|
| 104 |
|
|
| 105 | 105 |
if(oidExists(oid_cps_env_temp) && oidExists(oid_cps_env_humidity)){
|
| 106 | 106 |
print "multigraph cyberpower_environment |
| 107 | 107 |
graph_title CyberPower UPS Environment |
| ... | ... | |
| 120 | 120 |
humidity.max 100 |
| 121 | 121 |
"; |
| 122 | 122 |
} |
| 123 |
|
|
| 123 |
|
|
| 124 | 124 |
exit 0; |
| 125 | 125 |
} |
| 126 | 126 |
|
| ... | ... | |
| 177 | 177 |
} |
| 178 | 178 |
my $oid = $_[0]; |
| 179 | 179 |
my $val = $session->get_single($oid); |
| 180 |
|
|
| 180 |
|
|
| 181 | 181 |
if(!length $val || $val eq 'noSuchInstance' || $val eq 'U'){
|
| 182 | 182 |
return(0); |
| 183 | 183 |
}else{
|
Formats disponibles : Unified diff