initial commit; version 22.5.12042
This commit is contained in:
50
includes/polling/applications/lighttpd.inc.php
Normal file
50
includes/polling/applications/lighttpd.inc.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage poller
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
echo "totalaccesses:$totalaccesses"
|
||||
echo "totalkbytes:$totalkbytes"
|
||||
echo "uptime:$uptime"
|
||||
echo "busyservers:$busyservers"
|
||||
echo "idleservers:$idleservers"
|
||||
echo "connectionsp:$connectionsp"
|
||||
echo "connectionsC:$connectionsC"
|
||||
echo "connectionsE:$connectionsE"
|
||||
echo "connectionsk:$connectionsk"
|
||||
echo "connectionsr:$connectionsr"
|
||||
echo "connectionsR:$connectionsR"
|
||||
echo "connectionsW:$connectionsW"
|
||||
echo "connectionsh:$connectionsh"
|
||||
echo "connectionsq:$connectionsq"
|
||||
echo "connectionsQ:$connectionsQ"
|
||||
echo "connectionss:$connectionss"
|
||||
echo "connectionsS:$connectionsS"
|
||||
*/
|
||||
|
||||
if (!empty($agent_data['app']['lighttpd']))
|
||||
{
|
||||
$app_id = discover_app($device, 'lighttpd');
|
||||
|
||||
foreach (explode("\n", $agent_data['app']['lighttpd']) as $line)
|
||||
{
|
||||
list($key, $val) = explode(":", $line);
|
||||
$data[trim($key)] = intval(trim($val));
|
||||
}
|
||||
|
||||
update_application($app_id, $data);
|
||||
rrdtool_update_ng($device, 'lighttpd', $data, $app_id);
|
||||
|
||||
unset($app_id, $line, $data);
|
||||
}
|
||||
|
||||
// EOF
|
Reference in New Issue
Block a user