[Git][NTPsec/ntpsec][master] New systemd units to run NTPviz data gathering and graphing.

Gary E. Miller gitlab at mg.gitlab.com
Mon Apr 17 20:42:08 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
91cad2a4 by James Browning at 2017-04-17T13:41:15-07:00
New systemd units to run NTPviz data gathering and graphing.

The units run data acquisition every five minutes, daily stats
graphing every hour and weekly stats graphing every 12 hours.

Signed-off-by: Gary E. Miller <gem at rellim.com>

- - - - -


8 changed files:

- + etc/ntploggps.service
- + etc/ntploggps.timer
- + etc/ntplogtemp.service
- + etc/ntplogtemp.timer
- + etc/ntpviz-daily.service
- + etc/ntpviz-daily.timer
- + etc/ntpviz-weekly.service
- + etc/ntpviz-weekly.timer


Changes:

=====================================
etc/ntploggps.service
=====================================
--- /dev/null
+++ b/etc/ntploggps.service
@@ -0,0 +1,8 @@
+[Unit]
+Documentation=man:ntploggps(1)
+Description=GPS information logger for ntpviz
+Requires=gpsd.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/ntploggps -o -l /var/log/ntpstats/gpsd


=====================================
etc/ntploggps.timer
=====================================
--- /dev/null
+++ b/etc/ntploggps.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Run ntploggps every five minutes
+
+[Timer]
+OnBootSec=5min
+OnUnitActiveSec=5min
+Persistent=true
+
+[Install]
+WantedBy=timers.target


=====================================
etc/ntplogtemp.service
=====================================
--- /dev/null
+++ b/etc/ntplogtemp.service
@@ -0,0 +1,7 @@
+[Unit]
+Documentation=man:ntplogtemp(1)
+Description=Temperature information logger for ntpviz
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/ntplogtemp -o -l /var/log/ntpstats/temp


=====================================
etc/ntplogtemp.timer
=====================================
--- /dev/null
+++ b/etc/ntplogtemp.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Run ntplogtemp every five minutes
+
+[Timer]
+OnBootSec=5min
+OnUnitActiveSec=5min
+Persistent=true
+
+[Install]
+WantedBy=timers.target


=====================================
etc/ntpviz-daily.service
=====================================
--- /dev/null
+++ b/etc/ntpviz-daily.service
@@ -0,0 +1,8 @@
+[Unit]
+Documentation=man:ntpviz(1)
+Description=Graph daily information for NTP
+Requires=ntpd.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/ntpviz -w l -p 1 -o /var/www/localhost/htdocs/day


=====================================
etc/ntpviz-daily.timer
=====================================
--- /dev/null
+++ b/etc/ntpviz-daily.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Run ntpviz for daily data graphing once an hour
+
+[Timer]
+OnCalendar=*:53:00
+Persistent=true
+
+[Install]
+WantedBy=timers.target


=====================================
etc/ntpviz-weekly.service
=====================================
--- /dev/null
+++ b/etc/ntpviz-weekly.service
@@ -0,0 +1,8 @@
+[Unit]
+Documentation=man:ntpviz(1)
+Description=Graph weekly information for NTP
+Requires=ntpd.service
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/ntpviz -w l -p 7 -o /var/www/localhost/htdocs/week


=====================================
etc/ntpviz-weekly.timer
=====================================
--- /dev/null
+++ b/etc/ntpviz-weekly.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Run ntpviz for daily weekly graphing twice a day
+
+[Timer]
+OnCalendar=11,23:45:00
+Persistent=true
+
+[Install]
+WantedBy=timers.target



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/91cad2a4cfe98067683443155d19b87d34cb2610

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/91cad2a4cfe98067683443155d19b87d34cb2610
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170417/8654c3fc/attachment.html>


More information about the vc mailing list