How to have inter-VMs alerts?
from foremanguy92_@lemmy.ml to selfhosted@lemmy.world on 31 Oct 15:20
https://lemmy.ml/post/21992115

Hey, I’ve setup a promox server and running some stuffs in it, and basically I want to know how to have alerts notifications that goes from one service to another, for example : I’m running NUT on proxmox shell, and I want to have an alert in Truenas (and in NextCloud running in Truenas) to say that the server will shutdown soon to the users that are actually using my cloud. Thank you 😄

#selfhosted

threaded - newest

just_another_person@lemmy.world on 31 Oct 16:52 next collapse

Well the services would have to speak the same event or messaging system, whatever it may be. Then you’d just need to bridge the networks of the containers, or have them speak to endpoints in each side.

There is no universal messaging system between all pieces of software though. Maybe figure out what you’re sending to first, then work back from there. There’s nothing blocking you from sending data between two containers in a variety of ways though.

WhyJiffie@sh.itjust.works on 31 Oct 22:59 collapse

would running nut-monitor in the VMs fit your use case?

foremanguy92_@lemmy.ml on 01 Nov 03:26 collapse

But it would a cleanest of running at only one place and fetch the infos after

WhyJiffie@sh.itjust.works on 04 Nov 01:51 collapse

my solution to this is to only deal with the UPS in proxmox. it shuts down everything if the battery goes below a certain level.

I think you can configure nut to run a few scripts when something changes around the UPS. you could have a script that sends an alert through ntfy, and/or the web services that you want to use for this, but I’m not familiar with the notification system of nextcloud and truenas

foremanguy92_@lemmy.ml on 04 Nov 14:32 collapse

Okay going to check it

WhyJiffie@sh.itjust.works on 04 Nov 20:42 collapse

one more thing I remembered when re-reading the title: I think you can send messages to the VM using the qm command. it stands for qemu monitor, basically its a management tool