aboutsummaryrefslogtreecommitdiffstats
path: root/include/config.pm
diff options
context:
space:
mode:
Diffstat (limited to 'include/config.pm')
-rwxr-xr-xinclude/config.pm43
1 files changed, 43 insertions, 0 deletions
diff --git a/include/config.pm b/include/config.pm
new file mode 100755
index 0000000..9987d05
--- /dev/null
+++ b/include/config.pm
@@ -0,0 +1,43 @@
+#! /usr/bin/perl
+use strict;
+use warnings;
+package nms::config;
+
+# DB
+our $db_name = "nms";
+our $db_host = "db";
+our $db_username = "nms";
+our $db_password = "risbrod";
+
+# Max SNMP polls to fire off at the same time.
+our $snmp_max = 20;
+
+# What SNMP objects to fetch.
+our @snmp_objects = [
+ ['ifIndex'],
+ ['sysName'],
+ ['sysDescr'],
+ ['ifHighSpeed'],
+ ['ifType'],
+ ['ifName'],
+ ['ifDescr'],
+ ['ifAlias'],
+ ['ifOperStatus'],
+ ['ifAdminStatus'],
+ ['ifLastChange'],
+ ['ifHCInOctets'],
+ ['ifHCOutOctets'],
+ ['ifInDiscards'],
+ ['ifOutDiscards'],
+ ['ifInErrors'],
+ ['ifOutErrors'],
+ ['ifInUnknownProtos'],
+ ['ifOutQLen'],
+ ['sysUpTime'],
+ ['jnxOperatingTemp'],
+ ['jnxOperatingCPU'],
+ ['jnxOperatingDescr'],
+ ['jnxBoxSerialNo']
+];
+
+1;