Page MenuHomeVyOS Platform

Webproxy monitor commands do not work
Closed, ResolvedPublicBUG

Description

Webproxy monitor commands do not work. They show always the same result.

vyos@vyos:~$ monitor webproxy access-log
WebProxy cache-log does not exist

vyos@vyos:~$ monitor webproxy cache-log
WebProxy cache-log does not exist

The root problem is in the incorrect path to log files.

vyos@vyos:~$ sudo cat /opt/vyatta/share/vyatta-op/templates/monitor/webproxy/access-log/node.def
help: Monitor the last lines of the squid access log
run: if [ -f /var/log/squid3/access.log ]; then sudo tail --follow=name /var/log/squid3/access.log; else echo "WebProxy cache-log does not exist"; fi
vyos@vyos:~$ sudo cat /opt/vyatta/share/vyatta-op/templates/monitor/webproxy/-log/node.def
access-log/ background/ cache-log/  node.def
vyos@vyos:~$ sudo cat /opt/vyatta/share/vyatta-op/templates/monitor/webproxy/cache-log/node.def
help: Monitor the last lines of the squid cache log
run: if [ -f /var/log/squid3/cache.log ]; then sudo tail --follow=name /var/log/squid3/cache.log; else echo "WebProxy cache-log does not exist"; fi

The correct path to webproxy log files must be

/var/log/squid

Details

Difficulty level
Easy (less than an hour)
Version
vyos-1.4-rolling-202207060217; vyos-1.3.1-S1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Related Objects

Mentioned In
1.3.2
1.3.2