Ad Widget

Collapse

Help with a certain check I'm attempting to create :)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ericko
    Junior Member
    • Aug 2010
    • 5

    #1

    Help with a certain check I'm attempting to create :)

    Hey Guys,


    I have multiple servers. I have a zabbix server, multiple zabbix proxies and 10 servers that has agents configured in it.

    What I wanted to do is to get the servers with the agents configured to send emails. And have the zabbix server check for emails being sent by 10 servers with agents configured in it. If the emails not sent/recieved within a minute, then alarm.

    Is there anyway of doing this? Any help would be appreciated.
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    Can you expand a little on what you are trying to accomplish? I'm confused as to weather or not you want to alert if there has not been an inbound/outbound email within the last minute or weather or not a host has not sent an email in the last minute.

    I am going to ask the silly question knowing that you probably have a good reason why this won't work but what about just checking to see if you MTA responds to port 25 connections and is running?
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • ericko
      Junior Member
      • Aug 2010
      • 5

      #3
      Re: Re: Help with a certain check I'm attempting to create

      Sorry about that.

      Basically, what I want to do is have all the servers that I have to start sending an email every 5 minutes. Once the e-mail has been sent, I would like the zabbix server to check whether the email that was sent by one of the 10 servers was received or not? If it is, then find out how long it took. Depending on how long it took, this would generate an alarm advising that there are mail delays. If the server hasn't received the email after a given time, this would alarm to advise that the email from a server didn't arrive.

      Is this possible to do? And if it is, please advice.

      Comment

      • nelsonab
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2006
        • 1233

        #4
        This is possible, but not within Zabbix directly. In fact that's pretty much true for just about every NMS.

        What you'll need to do is to write a script which will then push data into Zabbix. The Zabbix sender may be useful for this. Then you set up a trigger which would activate if no data has been received within a specified time period.
        RHCE, author of zbxapi
        Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
        Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

        Comment

        • ericko
          Junior Member
          • Aug 2010
          • 5

          #5
          Apologise for the late reply.

          I've managed to create a script and have place my script into the plugin section of zabbix

          Thanks again for the help.

          Comment

          Working...