From a09b4d33818f1b3fd3836a99cbb742fa84caecb4 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Wed, 13 Apr 2016 21:17:28 +0200 Subject: 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. --- include/config.pm | 43 +++++++++++++++++++++++++++++++++++++++++++ include/config.pm.dist | 43 ------------------------------------------- 2 files changed, 43 insertions(+), 43 deletions(-) create mode 100755 include/config.pm delete mode 100755 include/config.pm.dist (limited to 'include') 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; diff --git a/include/config.pm.dist b/include/config.pm.dist deleted file mode 100755 index 9987d05..0000000 --- a/include/config.pm.dist +++ /dev/null @@ -1,43 +0,0 @@ -#! /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; -- cgit v1.2.3