Ad Widget

Collapse

How to debug simple checks?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vitalyk
    Junior Member
    • Jul 2017
    • 4

    #1

    How to debug simple checks?

    Is there a way to run/debug simple check? I.e. "zabbix_get" for simple checks?

    Thanks,
    Vitaly
  • sca_ebe
    Junior Member
    • Jul 2017
    • 15

    #2
    Hello,

    The way I debug item is with zabbix_get.

    Example, on the host you want to check (assuming zabbix agent is listenning on *:10050)

    Check if service http is up :

    Code:
    zabbix_get -s 127.0.0.1 -k net.tcp.service[http]
    Check if service http is up on port 8080 :

    Code:
    zabbix_get -s 127.0.0.1 -k net.tcp.service[http,,8080]
    Documentation of simple checks : https://www.zabbix.com/documentation.../simple_checks

    Happy debugging!

    Comment

    • vitalyk
      Junior Member
      • Jul 2017
      • 4

      #3
      sca_ebe, thank you!
      But I want to monitor/debug remotely - the host is an appliance, I don't have Zabbix agent on it.

      Comment

      • sca_ebe
        Junior Member
        • Jul 2017
        • 15

        #4
        You're welcome.

        Edit :

        I've missread your answer. you don't need zabbix agent on the appliance

        But i don't know if you can do this with zabbix_get. Sorry

        Edit 2 :

        From the man page, you can't use zabbix_get without a zabbix-agent on the remote host :

        zabbix_get is a command line utility for getting data from Zabbix agent.
        And The documentation says :

        Simple checks are normally used for remote agent-less checks of services.

        Note that Zabbix agent is not needed for simple checks. Zabbix server/proxy is responsible for the processing of simple checks (making external connections, etc).
        But Simple checks are not really complicated to test

        icmpping : use ping command
        net.tcp.service : use telnet command
        net.udp.service : use netcat / nc command
        Last edited by sca_ebe; 07-07-2017, 15:59.

        Comment

        • vitalyk
          Junior Member
          • Jul 2017
          • 4

          #5
          >But Simple checks are not really complicated to test
          it's the issue - I want to check DNS service. Service is OK, but simple check returns no data.

          Comment

          Working...