Ad Widget

Collapse

Simple checks does not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fredo2906
    Junior Member
    • Jan 2011
    • 14

    #1

    Simple checks does not work

    Hi,

    I have created an item simple check for google smtp (just a test).
    Check: Smtp
    host : smtp.gmail.com
    port : 465

    The check always return 0 but when I do a telnet on the port, the connection is possible.
    Any idea?

    7865:20110128:063601.919 In substitute_simple_macros() data:'smtp,465'
    7865:20110128:063601.919 In get_value() key:'smtp,465'
    7865:20110128:063601.919 In get_value_simple(): key_orig [smtp,465]
    7865:20110128:063601.919 Transformed [smtp,465] into [net.tcp.service[smtp,smtp.gmail.com,465]]
    7866:20110128:063601.952 In get_values()
    7866:20110128:063601.952 In DCinit_nextchecks()
    7866:20110128:063601.952 In DCconfig_get_poller_items() poller_type:1
    7866:20110128:063601.952 End of DCconfig_get_poller_items():0
    7866:20110128:063601.952 In DCflush_nextchecks()
    7866:20110128:063601.952 End of get_values()
    7866:20110128:063601.952 In DCconfig_get_poller_nextcheck() poller_type:1
    7866:20110128:063601.952 End of DCconfig_get_poller_nextcheck():-1
    Last edited by fredo2906; 28-01-2011, 16:59.
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Hi,

    You haven't detailed how you configured your check.
    Make sure that it is setup as:
    Type: Simple check
    Key: smtp,465

    Based on your log, it seems that Zabbix is behaving as if "Type" had been set to "Zabbix agent" instead of "Simple check".

    Hope this helps,
    JBo

    Comment

    • fredo2906
      Junior Member
      • Jan 2011
      • 14

      #3
      Hi,
      Thank you for your reply.
      I have set the item to simplecheck.
      You can have a look at the picture attached.

      What I didn't say is that the check is done by Zabbix Proxy.
      Attached Files

      Comment

      • JBo
        Senior Member
        • Jan 2011
        • 310

        #4
        Hi,

        It looks OK to me.

        However, I have just checked Google help : smtp on port 465 needs SSL. I think that Zabbix does a simple (non SSL) SMTP connection for 'smtp' check.

        If you just want to know if port 465 is open, you can use tcp,465 instead of smtp,465.

        Hope this helps,
        JBo

        Comment

        • fredo2906
          Junior Member
          • Jan 2011
          • 14

          #5
          Hi,

          Thank you.
          Actually I wanted to check the smtp connection with ssl connection.
          I guess you pointed out the issue.

          Fred.

          Comment

          • joho
            Junior Member
            • Feb 2011
            • 3

            #6
            One issue is how to prevent, for example, Postfix from whining about connections to local host that are immediately disconnected (which I suspect is done via the Zabbix agent running locally on the host).

            For us, the monitoring of Postfix (SMTP) works, but the Postfix log file(s) are filled with "disconnection" messages, which of course are "ok".


            -joho

            Comment

            • JBo
              Senior Member
              • Jan 2011
              • 310

              #7
              Hi,

              Originally posted by joho
              One issue is how to prevent, for example, Postfix from whining about connections to local host that are immediately disconnected (which I suspect is done via the Zabbix agent running locally on the host).

              For us, the monitoring of Postfix (SMTP) works, but the Postfix log file(s) are filled with "disconnection" messages, which of course are "ok".
              The original question was about a connection that required SSL. Since Zabbix smtp simple check doesn't support SSL, the easiest way is to check if that tcp port is open with tcp,465 check.

              If don't want "disconnection errors" from Postfix, you can use smtp instead of tcp,25 check.
              If your Postfix only accepts SSL connections, you can use an external script instead of Zabbix simple check. It can be done with Nagios plugin check_ssmtp and a small wrapper.

              Regards,
              JBo

              Comment

              Working...