Ad Widget

Collapse

Sending custom email - mail not found / broken pipe

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • PeterZielony
    Senior Member
    • Nov 2022
    • 146

    #1

    Sending custom email - mail not found / broken pipe

    Hi Everyone,

    How Zabbix is handling emails in general? I mean I have very specific requirements to send emails but to a person as a item name/value - this isn't possible with standard email notifications as they need to be predefined in actions for triggers.

    I have to monitor AD env and last changed password to send them email for a specific group (will use PS to monitor this) - there will be items created with their email as an item and time as a metric. When it got to 2 weeks before expiry - need to send them email. I could do it with powershell itself but I rather keep it in zabbix to control times with triggers etc.

    Now - I have email configured and emails are working fine (exchange emails) for registered users - but users who need to be notified won't be in Zabbix.

    So i used this guide with email component:
    https://www.zabbix.com/documentation...s/media/script to see if I can just do it as a script but i got a broken pipe where the "email" command is. (email - command not found obviously)

    I rather not install the email component (docker env, could do rebuilding etc. it but I'm lazy lol and I don't want to break dependencies i blow this project out of proportion to what it needs to do) - so real question is how exactly zabbix is sending emails so i could "expand" or copy this as a form of additional script where I can put recipient as an item value/name?
    Last edited by PeterZielony; 10-01-2024, 13:29.

    Hiring in the UK? Drop a message
  • Answer selected by PeterZielony at 10-01-2024, 15:50.
    PeterZielony
    Senior Member
    • Nov 2022
    • 146

    going to use openssl available out of the box with this script:


    Comment

    • PeterZielony
      Senior Member
      • Nov 2022
      • 146

      #2
      going to use openssl available out of the box with this script:



      Hiring in the UK? Drop a message

      Comment

      Working...