Révision a88376d9
Ajouté par nagyrobi il y a presque 10 ans
etc/inc/rrd.inc | ||
---|---|---|
849 | 849 |
/* NTP, set up the ntpd rrd file */ |
850 | 850 |
if (isset($config['ntpd']['statsgraph'])) { |
851 | 851 |
/* set up the ntpd rrd file */ |
852 |
if (!file_exists("$rrddbpath$ifname$ntpd")) {
|
|
852 |
if (!file_exists("$rrddbpath$ntpd")) { |
|
853 | 853 |
$rrdcreate = "$rrdtool create $rrddbpath$ntpd --step $rrdntpdinterval "; |
854 | 854 |
$rrdcreate .= "DS:offset:GAUGE:$ntpdvalid:0:1000 "; |
855 | 855 |
$rrdcreate .= "DS:sjit:GAUGE:$ntpdvalid:0:1000 "; |
... | ... | |
876 | 876 |
|
877 | 877 |
/* enter UNKNOWN values in the RRD so it knows we rebooted. */ |
878 | 878 |
if($g['booting']) { |
879 |
mwexec("$rrdtool update $rrddbpath$ntpd N:U");
|
|
879 |
mwexec("$rrdtool update $rrddbpath$ntpd N:U:U:U:U:U:U");
|
|
880 | 880 |
} |
881 | 881 |
|
882 | 882 |
/* the ntp stats gathering function. */ |
Formats disponibles : Unified diff
Update rrd.inc
fixed NTPd graphs resetting when service restarts or reconfigured (thanks charliem https://forum.pfsense.org/index.php?topic=76620.msg422811#msg422811)