mirror of
https://codeberg.org/mclemens/tsmmonitor2.git
synced 2024-12-23 03:46:40 -05:00
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
|
|
/*
|
|
************************************************************************
|
|
This file is part of TSM Monitor.
|
|
|
|
TSM Monitor is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
TSM Monitor is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with TSM Monitor. If not, see <http://www.gnu.org/licenses/>.
|
|
************************************************************************
|
|
*/
|
|
|
|
|
|
/**
|
|
*
|
|
* tmonpolld.php, TSM Monitor
|
|
*
|
|
* This file is the TSM Monitor Polling Daemon. It executes queries against TSM
|
|
* and inserts them into TMS Monitor's MySQL Database
|
|
*
|
|
* @author Michael Clemens
|
|
* @version 1.0
|
|
* @package tsmmonitor
|
|
*/
|
|
|
|
|
|
require('../includes/config.php');
|
|
require('../includes/polld.php');
|
|
|
|
|
|
$tmonpolld = new PollD();
|
|
$tmonpolld->setDBParams($db_host, $db_name, $db_user, $db_password);
|
|
$tmonpolld->initialize();
|
|
$tmonpolld->poll();
|
|
|
|
|
|
?>
|