diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-04-13 21:17:28 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-04-13 21:17:28 +0200 |
commit | a09b4d33818f1b3fd3836a99cbb742fa84caecb4 (patch) | |
tree | 336fbdff24655ff4079d1971b347935aa3714766 /include/config.pm | |
parent | e8a20f730651d07deff33dc559acfdca32cce271 (diff) |
Working test! It's amazing!
Never been so happy to see a single switch in the nms.
Missing: Varnish and collectors and better deplist.
Also: this is mainly _test_ stuff, not meant for development OR production.
Diffstat (limited to 'include/config.pm')
-rwxr-xr-x | include/config.pm | 43 |
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; |