brief_data() {
echo "$1" | sed -n -E -e '
- /^temp[0-9]+: +[-+][0-9.]+°C/ { s/^temp[0-9]+: +([-+][0-9.]+)°C.*/ \1/; H }
+ /^temp[0-9]+: +[-+][0-9.]+.?C/ { s/^temp[0-9]+: +([-+][0-9.]+).?C.*/ \1/; H }
$ { x; s/\n//g; p }'
}
Kessel is a wireless host while Kamino is wired. Devaron, the
Raspberry Pi OS (ARM64) machine, uses the ~abbey_pisensors~ monitor.
+Kamino is currently unmonitored as it is now rarely powered up.
+
#+CAPTION: =roles_t/abbey-core/tasks/main.yml=
#+BEGIN_SRC conf :tangle roles_t/abbey-core/tasks/main.yml
template:
src: nagios-{{ item }}.cfg
dest: /etc/nagios4/conf.d/{{ item }}.cfg
- loop: [ devaron, kamino, kessel ]
+ loop: [ devaron, kessel ]
notify: Reload NAGIOS4.
#+END_SRC
hosts:
anoat:
devaron:
- kamino:
kessel:
weather:
hosts:
hosts:
devaron:
geonosis:
- kamino:
#+END_SRC
** =playbooks/site.yml=
template:
src: nagios-{{ item }}.cfg
dest: /etc/nagios4/conf.d/{{ item }}.cfg
- loop: [ devaron, kamino, kessel ]
+ loop: [ devaron, kessel ]
notify: Reload NAGIOS4.
- name: Install Analog.