mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
# -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+19
-19
@@ -1,22 +1,22 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
########################################################################################
|
||||
##
|
||||
## A small script to grab the NTPD Server statistics from a NTPD server
|
||||
## Needed commands: php, ntpd, ntpq, ntpdc
|
||||
##
|
||||
## Install:
|
||||
## Add the following to your snmpd.conf file:
|
||||
## extend ntpdserver /opt/observium/scripts/ntpd-server.php
|
||||
##
|
||||
## Version 1.1 By:
|
||||
## All In One - Dennis de Houx <info@all-in-one.be>
|
||||
##
|
||||
########################################################################################
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
/// A small script to grab the NTPD Server statistics from a NTPD server
|
||||
/// Needed commands: php, ntpd, ntpq, ntpdc
|
||||
///
|
||||
/// Install:
|
||||
/// Add the following to your snmpd.conf file:
|
||||
/// extend ntpdserver /opt/observium/scripts/ntpd-server.php
|
||||
///
|
||||
/// Version 1.1 By:
|
||||
/// All In One - Dennis de Houx <info@all-in-one.be>
|
||||
///
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#### START SETTINGS ####
|
||||
/// START SETTINGS ///
|
||||
|
||||
$ntpq = "/usr/sbin/ntpq";
|
||||
$ntpdc = "/usr/sbin/ntpdc";
|
||||
@@ -24,13 +24,13 @@
|
||||
# Change this to true if you have clk_jitter, sys_jitter in the ntpq -c rv output
|
||||
$newstats_style = false;
|
||||
|
||||
#### END SETTINGS ####
|
||||
/// END SETTINGS ///
|
||||
|
||||
|
||||
##
|
||||
## DO NOT EDIT BENETH THIS LINE
|
||||
##
|
||||
########################################################################################
|
||||
///
|
||||
/// DO NOT EDIT BENETH THIS LINE
|
||||
///
|
||||
///////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$cmd = shell_exec($ntpq." -c rv");
|
||||
$cmd2 = shell_exec($ntpdc." -c iostats");
|
||||
|
||||
Reference in New Issue
Block a user