From 78bb41eacb79ab3a359adcf3bd37af81ddc9aaa1 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 30 Jul 2023 21:55:09 +0200 Subject: T3355: migrate webproxy log to proper "monitor log" tree --- op-mode-definitions/monitor-log.xml.in | 6 ------ op-mode-definitions/webproxy.xml.in | 32 ++++++++++++++++++-------------- 2 files changed, 18 insertions(+), 20 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index c7be07aa8..ee52a7eb8 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -339,12 +339,6 @@ journalctl --no-hostname --boot --follow --unit keepalived.service - - - Monitor last lines of Webproxy log - - journalctl --no-hostname --boot --follow --unit squid.service - diff --git a/op-mode-definitions/webproxy.xml.in b/op-mode-definitions/webproxy.xml.in index 70e3ed608..4e555c3d9 100644 --- a/op-mode-definitions/webproxy.xml.in +++ b/op-mode-definitions/webproxy.xml.in @@ -2,23 +2,27 @@ - - - Monitor WebProxy service - - ${vyatta_bindir}/vyatta-monitor Webproxy squid + - - - Monitor the last lines of the squid access log - - if [ -f /var/log/squid/access.log ]; then sudo tail --follow=name /var/log/squid/access.log; else echo "WebProxy access-log does not exist"; fi - - + - Monitor the last lines of the squid cache log + Monitor last lines of Webproxy log - if [ -f /var/log/squid/cache.log ]; then sudo tail --follow=name /var/log/squid/cache.log; else echo "WebProxy cache-log does not exist"; fi + journalctl --no-hostname --boot --follow --unit squid.service + + + + Monitor the last lines of the Webproxy access log + + if [ -f /var/log/squid/access.log ]; then sudo tail --follow=name /var/log/squid/access.log; else echo "WebProxy access-log does not exist"; fi + + + + Monitor the last lines of the Webproxy cache log + + if [ -f /var/log/squid/cache.log ]; then sudo tail --follow=name /var/log/squid/cache.log; else echo "WebProxy cache-log does not exist"; fi + + -- cgit v1.2.3