Notify by email when device is back online

Q'center app, Helpdesk app
Post Reply
podpora@dco.cz
First post
Posts: 1
Joined: Tue Apr 02, 2019 7:30 pm

Notify by email when device is back online

Post by podpora@dco.cz »

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
User avatar
storageman
Ask me anything
Posts: 5506
Joined: Thu Sep 22, 2011 10:57 pm

Re: Notify by email when device is back online

Post by storageman »

If Don's script still works maybe someway to incorporate it in autorun?
viewtopic.php?t=18350

Maybe other guys can help.
User avatar
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

Post by OneCD »

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:

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
Thoughts anyone?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
Gen19
Starting out
Posts: 39
Joined: Fri Jun 07, 2019 6:22 pm

Re: Notify by email when device is back online

Post by Gen19 »

Hi, I didn't understand where I have to add code.
Regards
:arrow: NAS Qnap TS-251, 8gb
User avatar
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

Post by dolbyman »

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"
Last edited by dolbyman on Fri Jun 07, 2019 11:27 pm, edited 1 time in total.
Gen19
Starting out
Posts: 39
Joined: Fri Jun 07, 2019 6:22 pm

Re: Notify by email when device is back online

Post by Gen19 »

yes, I did a mistake, I wanted to know if there were something like this and how I could do.
Regards
:arrow: NAS Qnap TS-251, 8gb
Post Reply

Return to “NAS Management”