Ad Widget

Collapse

active check howto

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Philippe
    Member
    • Oct 2004
    • 77

    #1

    active check howto

    hello,

    i would like to test with active checks.
    i configured a pc with zabbix agent and changed the agent configuration file for active checks.
    i added one item for this host and it is "agent of zabbix running", it's just to test how active checks work.
    in the logfile i get:


    3900:20070709:121824 zabbix_agentd started. ZABBIX 1.4.1.
    5784:20070709:121825 zabbix_agentd collector started
    5804:20070709:121825 zabbix_agentd listener started
    5500:20070709:121825 zabbix_agentd listener started
    2672:20070709:121825 zabbix_agentd listener started
    4912:20070709:121825 zabbix_agentd active check started [10.51.10.30:10051]
    4912:20070709:121825 In init_active_metrics()
    4912:20070709:121825 In refresh_metrics('10.51.10.30',10051)
    4912:20070709:121825 get_active_checks('10.51.10.30',10051)
    4912:20070709:121825 Sending [ZBX_GET_ACTIVE_CHECKS
    ocsinventory-ng.searo.local
    ]
    4912:20070709:121825 Before read
    4912:20070709:121825 In parse_list_of_checks('ZBX_EOF
    ')
    4912:20070709:121825 In disable_all_metrics()
    4912:20070709:121825 Parsed [ZBX_EOF]
    4912:20070709:121825 In process_active_checks('10.51.10.30',10051)
    4912:20070709:121825 In get_min_nextcheck()
    4912:20070709:121825 Sleeping for 60 seconds
    5784:20070709:121825 Call to PdhCollectQueryData() failed: No data to return.


    5784:20070709:121826 Call to PdhCollectQueryData() failed: No data to return.


    5784:20070709:121827 Call to PdhCollectQueryData() failed: No data to return.


    5784:20070709:121828 Call to PdhCollectQueryData() failed: No data to return.


    5784:20070709:121829 Call to PdhCollectQueryData() failed: No data to return.


    5784:20070709:121830 Call to PdhCollectQueryData() failed: No data to return.


    5784:20070709:121831 Call to PdhCollectQueryData() failed: No data to return.


    5784:20070709:121832 Call to PdhCollectQueryData() failed: No data to return.


    5784:20070709:121833 Call to PdhCollectQueryData() failed: No data to return.

    i don't see data in latest values.
    what am i doing wrong ? how does active cheks work ? can i check everything with active checks ?

    thanks,
    Ph.
  • Philippe
    Member
    • Oct 2004
    • 77

    #2
    i also tested with older zabbix clients on windows.
    With older clients i get no errors, but also nothing in latest values.
    is there a problem with zabbix 1.4.1 active checks ??
    Last edited by Philippe; 11-07-2007, 15:23.

    Comment

    • Philippe
      Member
      • Oct 2004
      • 77

      #3
      is there really nobody that can help ? developers ?
      could someone maybe post an example ?
      thnx, phil.

      Comment

      • sylvain
        Junior Member
        • Jul 2007
        • 15

        #4
        up! i managed myself to get it working only one time (i have upgraded to dev source then downgraded again with 1.4 with recreating of database of course)

        Comment

        • Philippe
          Member
          • Oct 2004
          • 77

          #5
          so i can consider active checks in alpha state as nobody seems to get it working ?

          Comment

          • marc
            Senior Member
            • Oct 2004
            • 146

            #6
            active checks should work properly. make sure Hostname in conffile == Hostname from gui even if you connect to an ip address.

            Comment

            • Philippe
              Member
              • Oct 2004
              • 77

              #7
              Hello Marc,

              thnx for your reply.
              Active checks work now, my hostname was the real name of the computer and not the gui name in zabbix.
              changed it to the same name and now it works.
              thnx for your help!

              grtz,
              Phil.

              Comment

              • gedp
                Member
                • May 2006
                • 47

                #8
                HELP: Hostname trick not helping

                Have the same problem. Even tried to get the hostname the same on zabbix server (gui), in zabbix_agentd.conf and on the W2K3 server itself.
                I'm doing a --stop, --uninstall, --install, --start between each test. Still the PdhCollectQueryData error.

                Comment

                • JonB
                  Member
                  • Oct 2006
                  • 63

                  #9
                  The hostname in the Zabbix frontend and the zabbix_agentd.conf must be the same. It doesn't have to the same as the server hostname but it does make it easier to identify which server is being monitored. It could be fred:fred.

                  You need to ensure that there is a path from the server being monitored back to the zabbix server. An easy way to check is to run from commandline

                  telnet ip.address.of.zabbix-server 10051

                  assuming your zabbix server is listening on port 10051.

                  Ensure that Active mode is not disabled in the zabbix_agentd.conf file.

                  Make sure that the items you are monitoring are set to type 'ZABBIX agent (Active)'.

                  Comment

                  • gedp
                    Member
                    • May 2006
                    • 47

                    #10
                    >The hostname in the Zabbix frontend and the zabbix_agentd.conf must be
                    >the same. It doesn't have to the same as the server hostname but it does
                    >make it easier to identify which server is being monitored. It could be
                    >fred:fred.

                    Hostname both on GUI and in zabbix_agentd.conf is CLIENT.sys1 (names changed for privacy)

                    >You need to ensure that there is a path from the server being monitored back
                    >to the zabbix server. An easy way to check is to run from commandline
                    >telnet ip.address.of.zabbix-server 10051

                    Was ok.

                    >assuming your zabbix server is listening on port 10051.

                    >Ensure that Active mode is not disabled in the zabbix_agentd.conf file.

                    Have DisableActive=0

                    >Make sure that the items you are monitoring are set to type 'ZABBIX agent (Active)'.

                    Guess this will be the problem. They are all on "zabbix agent".

                    For the moment it works with the older 1.1.6 version of the zabbix client. Maybe I should leave it this way till I upgrade the server to 1.4.1 and then change all the items.

                    Comment

                    • gedp
                      Member
                      • May 2006
                      • 47

                      #11
                      Have tried with setting to "zabbix agent (active)" for all items on that box, but still have the same problems.

                      Could it be that there is a problem running the 1.4.1 agent with the 1.1.6 server?

                      Comment

                      • bbrendon
                        Senior Member
                        • Sep 2005
                        • 870

                        #12
                        Originally posted by gedp
                        Have tried with setting to "zabbix agent (active)" for all items on that box, but still have the same problems.

                        Could it be that there is a problem running the 1.4.1 agent with the 1.1.6 server?
                        Definitely. 1.1.6 agents work on 1.4.1 servers. Not the other way around.
                        Unofficial Zabbix Expert
                        Blog, Corporate Site

                        Comment

                        Working...