-if [[ $HOSTNAME != "$MAIL_HOST" ]]; then
- ksta=$(needrestart -b | sed -n 's/NEEDRESTART-KSTA: *//p');
- case $ksta in
- 1) : ;;
- [023]) myreboot ;;
- *) err error: unknown kernel status ;;
- esac
-fi
+case $HOSTNAME in
+ kd)
+ /c/roles/prom/files/simple/usr/local/bin/fsf-install-prometheus
+ /c/roles/prom_export/files/simple/usr/local/bin/fsf-install-node-exporter -l 127.0.0.1
+ ;;
+ li|bk|je)
+ /c/roles/prom_export/files/simple/usr/local/bin/fsf-install-node-exporter -l 127.0.0.1
+ ;;
+ *)
+ /c/roles/prom_export/files/simple/usr/local/bin/fsf-install-node-exporter
+ ;;
+esac
+
+
+# TODO: executed from cron, this doesnt sent an email when we reboot,
+# because rebooting from the script stops the ability to send email.
+# We should figure some workaround.