Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: mail alarm

mail alarm 6 years 1 month ago #9544

  • pjaouen
  • pjaouen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
Bonjour,
j'ai suivi le tuto 11 sur les alarmes qui malheureusement ne traite pas du mail
et post server howto send email on alarm event 4 years 3 days ago #6010 postserver.pdf

mon alarme test fonctionne mais pas la commande email (echo avec différentes versions de')
il y a bien plant dans postconfig EventSelectList

screen.png


find / -name mail01 ne trouve rien

Si vous avez une idée !
The administrator has disabled public write access.

mail alarm 6 years 1 month ago #9546

  • teackele
  • teackele's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Hello

My french is terrible, but google translate says that you postconfig/postserver is not working.
I had with proview 5.5 also the same problem. It started sending emails when i also enabled SMS on the alarm. Probably a bug, but it got the mail command working. Also put in a sms command then.

Regards Teackele
The administrator has disabled public write access.

mail alarm 6 years 1 month ago #9547

  • pjaouen
  • pjaouen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
Thanks Teackele
it is a bug, needs SMS and Email ASup EventFlags in order to get Email alarms

Donc pour les alarmes mail, il faut cocher EventFlags Email et SMS

Pour Postconfig, contrairement à Help Class il faut logiquement Disable à 0.
Avec le système mail minimaliste ssmtp (2 lignes de config pour accéder au serveur mail principal) EmailCmd : echo '$text'|mail -s 'Proview alarm' '$address'
The administrator has disabled public write access.

mail alarm 6 years 1 month ago #9548

  • benoit
  • benoit's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 180
  • Thank you received: 1
  • Karma: 0
Salut pjaouen,
je serai intéressé par cette fonctionnalité d'envoie de mail suite à une alarme par exemple.
Peux-tu nous répondre en détaillant un peu plus la procédure pour réaliser cette fonction?
Par exemple en prenant un exemple simple d'une alarme Asup qui envoie un mail sur dépassement d'un seuil.
Merci.
/Ben
The administrator has disabled public write access.

mail alarm 6 years 1 month ago #9549

  • pjaouen
  • pjaouen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
pour les alarmes : tutoriel N°11 :
pour le mail : post server howto send email on alarm event message #6010 du forum : postserver.pdf

en suivant ces indications, ça ne marche pas ; mais (message #9547 de ce topic), en cochant EventFlags Email ET SMS ça marche

exemple simple : voir mon screen.png début de ce topic #9544.
C'est plant-plc-W-Asup1 partie gauche : alarme à la baisse de plant-22T2 au dessous de 8.5°C (cocher SMS en plus) et partie droite en haut Postconfig mettre " echo '$text'|mail -s 'Proview alarm' '$address' " ou autre commande système.
Au milieu à droite c'est File Open Userdatabase common pwrp (ou directement dans /usr/pwrp/adm/db/pwr_user2.dat) paramétrage du destinataire.
Attachments:
The administrator has disabled public write access.

mail alarm 6 years 1 month ago #9550

  • pjaouen
  • pjaouen's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
suite

pour plusieurs destinataires dans Asup Récipient : plusieurs utilisateurs séparés par une virgule ET un espace : dest1, dest2 ... sinon seul le premier reçoit un mail
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.225 seconds