We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21b1b70 commit af20daaCopy full SHA for af20daa
homemon-snmp/snmp-collector.js
@@ -60,8 +60,8 @@ for (var key in snmp_data_array) {
60
function executeSNMP (x) {
61
x.session.get (x.oids, function (error, varbinds) {
62
if (error) {
63
- console.log (error);
64
- } else {
+ console.log (error);
+ } else {
65
// console.log(x.host, varbinds[0].value, varbinds[1].value);
66
67
var now = new Date();
@@ -92,4 +92,5 @@ function executeSNMP (x) {
92
x.lastDown = down;
93
}
94
});
95
-};
+}
96
+
homemon-snmp/snmp.py
@@ -1,5 +1,5 @@
1
import netsnmp
2
-import time
+# import time
3
import datetime
4
import os
5
import sys
@@ -53,5 +53,3 @@
53
bytes_up_old = bytes_up_new
54
bytes_down_old = bytes_down_new
55
oldtime = newtime
56
-
57
- print
0 commit comments