Linux Poller Time PL
Linux Poller Time PL
/usr/bin/perl
use strict;
use warnings;
use DBI;
my $db_user = 'DBUSERNAME';
my $db_pass = 'DBPASSWORD';
my $sql = 'SELECT value FROM `settings` WHERE name="stats_poller" LIMIT 1';
my $sth = $dbh->prepare($sql)
or die "Couldn't prepare statement: " . $dbh->errstr;
$sth->execute()
or die "Couldn't execute: " . $sth->errstr;
my $time = $sth->fetchrow();
chomp $time;
$time =~ m/^Time:([0-9]+\.[0-9]+)/;