#!/usr/bin/perl
+use lib '../include';
+use nms;
#
#
# Grab from .htaccess-authentication
my $user = $ENV{'REMOTE_USER'};
-my $dbh = DBI->connect("dbi:Pg:dbname=snmpfetch;host=violet.tg05.gathering.org",
- "snmpfetch", "removed")
- or die "Couldn't connect to database";
+my $dbh = nms::db_connect();
$dbh->{AutoCommit} = 0;
my $sgetdone = $dbh->prepare(