mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
# -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,32 +1,32 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
########################################################################################
|
||||
##
|
||||
## A small script to grab the DNS statistics from a PowerDNS server
|
||||
## Needed commands: php, pdns_control
|
||||
##
|
||||
## Install:
|
||||
## Add the following to your snmpd.conf file:
|
||||
## extend powerdns /opt/observium/scripts/powerdns.php
|
||||
##
|
||||
## Version 1.0 By:
|
||||
## All In One - Dennis de Houx <info@all-in-one.be>
|
||||
##
|
||||
########################################################################################
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
/// A small script to grab the DNS statistics from a PowerDNS server
|
||||
/// Needed commands: php, pdns_control
|
||||
///
|
||||
/// Install:
|
||||
/// Add the following to your snmpd.conf file:
|
||||
/// extend powerdns /opt/observium/scripts/powerdns.php
|
||||
///
|
||||
/// Version 1.0 By:
|
||||
/// All In One - Dennis de Houx <info@all-in-one.be>
|
||||
///
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#### START SETTINGS ####
|
||||
/// START SETTINGS ///
|
||||
|
||||
$pdnscontrol = "/usr/bin/pdns_control";
|
||||
|
||||
#### END SETTINGS ####
|
||||
/// END SETTINGS ///
|
||||
|
||||
|
||||
##
|
||||
## DO NOT EDIT BENETH THIS LINE
|
||||
##
|
||||
########################################################################################
|
||||
///
|
||||
/// DO NOT EDIT BENETH THIS LINE
|
||||
///
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$cmd = shell_exec($pdnscontrol." show \*");
|
||||
$vars = array();
|
||||
|
||||
Reference in New Issue
Block a user