1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#! /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'],
['ifPhysAddress'],
['ifHCInOctets'],
['ifHCOutOctets'],
['ifInDiscards'],
['ifOutDiscards'],
['ifInErrors'],
['ifOutErrors'],
['ifInUnknownProtos'],
['ifOutQLen'],
['sysUpTime'],
['ciscoEnvMonTemperatureStatusValue'],
['ipIfStatsHCInOctets'],
['ipIfStatsHCOutOctets'],
['entPhysicalSerialNum'],
['entPhysicalName'],
['entPhysicalHardwareRev'],
['entPhysicalFirmwareRev'],
['entPhysicalSoftwareRev'],
['entPhysicalDescr'],
['jnxOperatingTemp'],
['jnxOperatingCPU'],
['jnxOperatingDescr'],
['jnxBoxSerialNo']
];
BEGIN {
eval {
require "/opt/gondul/include/config.local.pm";
};
}
1;
|