Commit 96a7a229 authored by thomas.forbriger's avatar thomas.forbriger

ThiesDL1 [FEATURE]: provide chronyreport script

parent 7140381a
#!/bin/sh
# this is <chronyreport.sh>
# ----------------------------------------------------------------------------
#
# Copyright (c) 2019 by Thomas Forbriger (BFO Schiltach)
#
# report chrony status
#
# replaces ntpreport.sh on systems where chronyd has replaced ntpd
#
# ----
# 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 2 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/>.
# ----
#
# REVISIONS and CHANGES
# 07/06/2019 V1.0 Thomas Forbriger
#
# ============================================================================
#
echo "check status of time sources" | /bin/logger -i -p user.notice -t "DL1logger $0" 2>&1
/usr/bin/chronyc sources | /bin/logger -i -p user.notice -t "DL1logger $0" 2>&1
/usr/bin/chronyc sourcestats | /bin/logger -i -p user.notice -t "DL1logger $0" 2>&1
# ----- END OF chronyreport.sh -----
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment