2009-05-10 07:44:45 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
2009-05-18 07:37:07 -04:00
|
|
|
************************************************************************
|
|
|
|
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/>.
|
|
|
|
************************************************************************
|
|
|
|
*/
|
2009-05-10 07:44:45 -04:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* tmonpolld.php, TSM Monitor
|
|
|
|
*
|
2009-05-15 07:54:36 -04:00
|
|
|
* This file instantiates PollD and executes the polling process.
|
|
|
|
* Start it like this: 'nohup php tmonpolld.php &'
|
|
|
|
*
|
2009-05-10 07:44:45 -04:00
|
|
|
*
|
|
|
|
* @author Michael Clemens
|
|
|
|
* @version 1.0
|
|
|
|
* @package tsmmonitor
|
|
|
|
*/
|
|
|
|
|
2009-05-13 04:29:01 -04:00
|
|
|
include_once("../includes/global.php");
|
2009-05-10 07:44:45 -04:00
|
|
|
|
|
|
|
|
2009-06-08 06:47:55 -04:00
|
|
|
$tmonpolld = new PollD($adodb, $config["server_os"]);
|
2009-05-23 12:50:14 -04:00
|
|
|
//$tmonpolld->setDebuglevel("WARN");
|
2009-05-20 09:52:50 -04:00
|
|
|
$tmonpolld->controlPollD("on");
|
2009-05-13 04:29:01 -04:00
|
|
|
$tmonpolld->poll();
|
2009-05-10 07:44:45 -04:00
|
|
|
|
|
|
|
|
|
|
|
?>
|