How to set up to send a message (email notification) when the OMV server was loaded (turned on), that the OMV server was loaded (turned on)?
Send a message that the OMV server was loaded (turned on)?
-
-
Try this.
Create a scheduled job with the following command:
echo 'OMV has started' | mail -s 'OMV has started' username@example.com
Set the job to run at reboot.
-
Create a systemd unit file, maybe use openmediavault-beep as reference.
-
Try this.
Create a scheduled job with the following command:
echo 'OMV has started' | mail -s 'OMV has started' username@example.com
Set the job to run at reboot.
Thank you very much!
And then OMV does not send messages when the server is turned on after turning off apc back-ups es 700.
When it turns off, it sends messages:
UPS APC @ localhost - Line Power Fail, system running on battery power. System is being shutdown! -
Is the UPS fully cutting power to the PC when it is being shutdown? How long are you waiting between the UPS shutting down the PC and restarting the PC?
-
Is the UPS fully cutting power to the PC when it is being shutdown? How long are you waiting between the UPS shutting down the PC and restarting the PC?
Yes, the APC is completely turned off.
Before shutdown sends.
The last message may not be able to send and sends after turning on the APC.
1. UPS APC @ localhost - Line Power Fail, system running on battery power. Shutdown imminent in 60 seconds.
2. UPS APC @ localhost - Line Power Fail, system running on battery power. System is being shutdown!
3. Automatic logout and shutdown proceedingSometimes it turns off the electricity for 8 hours, and we do not know the server is turned on.
-
So, what you are saying is that when you pull the plug on the UPS it eventually triggers a shutdown of your OMV machine and the machine is fully powered off at some point. Then after plugging the UPS back in and then you turn the OMV machine back on, the message I suggested is not sent?
Have you tested the scheduled command by selecting it and pressing the Run button?
-
So, what you are saying is that when you pull the plug on the UPS it eventually triggers a shutdown of your OMV machine and the machine is fully powered off at some point. Then after plugging the UPS back in and then you turn the OMV machine back on, the message I suggested is not sent?
Have you tested the scheduled command by selecting it and pressing the Run button?
Yes, it works fine: echo 'OMV has started' | mail -s 'OMV has started' username@example.com
And sends a message: 'OMV has startedI thought that the UPS program itself should have to send a message
Thank you very much!
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!