5ce2f693d6
- Added runtime profiling output to PollD. - Fixed minor bug in PollD for query runtime > 900 sec situations. - Added log to file functionality to PollD.
46 lines
1.2 KiB
PHP
46 lines
1.2 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 instantiates PollD and executes the polling process.
|
|
* Start it like this: 'nohup php tmonpolld.php &'
|
|
*
|
|
*
|
|
* @author Michael Clemens
|
|
* @version 1.0
|
|
* @package tsmmonitor
|
|
*/
|
|
|
|
include_once("../includes/global.php");
|
|
|
|
|
|
$tmonpolld = new PollD($adodb);
|
|
//$tmonpolld->setDebuglevel("WARN");
|
|
$tmonpolld->controlPollD("on");
|
|
$tmonpolld->poll();
|
|
|
|
|
|
?>
|