mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Fix coding style part 2
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
<?php
|
||||
/* Copyright (C) 2015 Daniel Preussker <f0o@devilcode.org>
|
||||
/*
|
||||
* Copyright (C) 2015 Daniel Preussker <f0o@devilcode.org>
|
||||
* This program 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.
|
||||
*
|
||||
*
|
||||
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* TinyDNS Statistics
|
||||
* @author Daniel Preussker <f0o@devilcode.org>
|
||||
* @copyright 2015 f0o, LibreNMS
|
||||
@@ -22,11 +24,13 @@
|
||||
* @subpackage Polling
|
||||
*/
|
||||
|
||||
if( !empty($agent_data['app']['tinydns']) && $app['app_id'] > 0 ) {
|
||||
echo " tinydns ";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-tinydns-".$app['app_id'].".rrd";
|
||||
if( !is_file($rrd_filename) ) {
|
||||
rrdtool_create($rrd_filename, "--step 300 \
|
||||
if (!empty($agent_data['app']['tinydns']) && $app['app_id'] > 0) {
|
||||
echo ' tinydns ';
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/app-tinydns-'.$app['app_id'].'.rrd';
|
||||
if (!is_file($rrd_filename)) {
|
||||
rrdtool_create(
|
||||
$rrd_filename,
|
||||
'--step 300 \
|
||||
DS:a:COUNTER:600:0:125000000000 \
|
||||
DS:ns:COUNTER:600:0:125000000000 \
|
||||
DS:cname:COUNTER:600:0:125000000000 \
|
||||
@@ -46,8 +50,9 @@ if( !empty($agent_data['app']['tinydns']) && $app['app_id'] > 0 ) {
|
||||
DS:notauth:COUNTER:600:0:125000000000 \
|
||||
DS:notimpl:COUNTER:600:0:125000000000 \
|
||||
DS:badclass:COUNTER:600:0:125000000000 \
|
||||
DS:noquery:COUNTER:600:0:125000000000 ".$config['rrd_rra']);
|
||||
}
|
||||
rrdtool_update($rrd_filename, "N:".$agent_data['app']['tinydns']);
|
||||
}
|
||||
?>
|
||||
DS:noquery:COUNTER:600:0:125000000000 '.$config['rrd_rra']
|
||||
);
|
||||
}//end if
|
||||
|
||||
rrdtool_update($rrd_filename, 'N:'.$agent_data['app']['tinydns']);
|
||||
}//end if
|
||||
|
||||
Reference in New Issue
Block a user