Hi,
I have qcenter with online monitoring QNAP NASs(NAS is placed on different sites). When any qnap go offline due to internet connection problem I will got email with notificaciton.
How to setup notification when offline NAS go to online after offline status?
I need notification Qnap device is online, when state was offline.
Thank you
Notify by email when device is back online
-
- First post
- Posts: 1
- Joined: Tue Apr 02, 2019 7:30 pm
- storageman
- Ask me anything
- Posts: 5506
- Joined: Thu Sep 22, 2011 10:57 pm
Re: Notify by email when device is back online
If Don's script still works maybe someway to incorporate it in autorun?
viewtopic.php?t=18350
Maybe other guys can help.
viewtopic.php?t=18350
Maybe other guys can help.
- OneCD
- Guru
- Posts: 12155
- Joined: Sun Aug 21, 2016 10:48 am
- Location: "... there, behind that sofa!"
Re: Notify by email when device is back online
Although, some additional logic would be needed to test and store the Internet connectivity state and only send a single email when that state returns to 'online'.
I guess the pseudocode could look like:
Thoughts anyone?
I guess the pseudocode could look like:
Code: Select all
if nas is online then
if notify then send-email and set notify as false
if not connected then set connected as true
else
if connected then set connected as false and set notify as true
fi
-
- Starting out
- Posts: 39
- Joined: Fri Jun 07, 2019 6:22 pm
Re: Notify by email when device is back online
Hi, I didn't understand where I have to add code.
Regards
Regards
NAS Qnap TS-251, 8gb
- dolbyman
- Guru
- Posts: 35273
- Joined: Sat Feb 12, 2011 2:11 am
- Location: Vancouver BC , Canada
Re: Notify by email when device is back online
you didn't?..so now you do?
that pseudocode is only a hint on what to do (in the code of your choice) ...it is not actually "code"
that pseudocode is only a hint on what to do (in the code of your choice) ...it is not actually "code"
Last edited by dolbyman on Fri Jun 07, 2019 11:27 pm, edited 1 time in total.
-
- Starting out
- Posts: 39
- Joined: Fri Jun 07, 2019 6:22 pm
Re: Notify by email when device is back online
yes, I did a mistake, I wanted to know if there were something like this and how I could do.
Regards
Regards
NAS Qnap TS-251, 8gb