summaryrefslogtreecommitdiff
path: root/op-mode-definitions/monitor-log.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-05 22:31:48 +0100
committerChristian Breunig <christian@breunig.cc>2024-01-06 08:33:33 +0100
commit9d02d32319f9328df618910a038ef580588e13c8 (patch)
treed68fb49a1d0141e106ba680e9e6279e717053475 /op-mode-definitions/monitor-log.xml.in
parentb8db1a9d7baf91b70c1b735e58710f1e2bc9fc7a (diff)
downloadvyos-1x-9d02d32319f9328df618910a038ef580588e13c8.tar.gz
vyos-1x-9d02d32319f9328df618910a038ef580588e13c8.zip
pki: T5886: add op-mode commands for log and renewal
* show log certbot * monitor log certbot * renew certbot
Diffstat (limited to 'op-mode-definitions/monitor-log.xml.in')
-rw-r--r--op-mode-definitions/monitor-log.xml.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in
index c03ec4cce..559952e25 100644
--- a/op-mode-definitions/monitor-log.xml.in
+++ b/op-mode-definitions/monitor-log.xml.in
@@ -30,6 +30,12 @@
</leafNode>
</children>
</node>
+ <leafNode name="certbot">
+ <properties>
+ <help>Monitor last lines of certbot log</help>
+ </properties>
+ <command>if sudo test -f /var/log/letsencrypt/letsencrypt.log; then sudo tail --follow=name /var/log/letsencrypt/letsencrypt.log; else echo "Cerbot log does not exist"; fi</command>
+ </leafNode>
<leafNode name="conntrack-sync">
<properties>
<help>Monitor last lines of conntrack-sync log</help>