Ad Widget

Collapse

Windows Zabbix agent error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gtatar
    Junior Member
    • Jul 2006
    • 6

    #1

    Windows Zabbix agent error

    Hi,
    I am a new Zabbix member.
    We tried to deploy the Zabbix agent version 1.1 on a Windows 2003 Sevice Pack 1 server and the service doesn't start. We are getting this error:

    [11-Jul-2006 23:22:09] Unable to add performance counter "\Processor(_Total)\% Processor Time" to query: The specified object is not found on the system.

    I found a few postings in the Zabbix Forums about the same issue. Most of them were reported in the beginning of 2005 and were cause by host names too long (our host name is SUNDATA1, it doesn't seem too long to me). This issue was supposed to be fixed in the current version of the Zabbix agent.

    I verified the Perfmon on the server and it shows good value for Processor Time, so that doesn't seem to be the problem.

    I would appreciate any suggestion.
    Thank you.
  • dantheman
    Senior Member
    • May 2006
    • 209

    #2
    If you comment out that line, does the agent start then?

    I have also seen some posts that people had a similar problem and there is a fix to reset some part of the performance monitor.... but I don't remember what the fix is.. it's on the forum somewhere.
    Last edited by dantheman; 13-07-2006, 01:31.

    Comment

    • gtatar
      Junior Member
      • Jul 2006
      • 6

      #3
      I don't know what line I could comment out. I am using the default configuration file. It looks to ma that this performance counter is built into the Zabbix Windows agent.

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Please can you try to run this in command line:

        ZabbixW32.exe test "perf_counter[\Processor(_Total)\% Processor Time]"
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • gtatar
          Junior Member
          • Jul 2006
          • 6

          #5
          I get this output:

          C:\zabbix\bin>ZabbixW32.exe test "perf_counter[\Processor(_Total)\% Processor Time]"
          Using configuration file "C:\zabbix_agentd.conf"
          Configuration file OK
          [13-Jul-2006 09:16:25] *************** Log file opened ***************
          [13-Jul-2006 09:16:25] Unable to add performance counter "\Processor(_Total)\% Processor Time" to query: The specified object is not found on the system.
          ^C
          C:\zabbix\bin>

          I have two Windows 2003 servers, both Sevice Pack 1. The one named SUNAPPS works fine, on the one named SUNDATA1 the Zabbix agent gets an error and then it hangs. I have to kill it with Ctrl-C.

          I try then to test any supported item. For example:
          ZabbixW32.exe test "system.hostname"

          The command still hangs.
          Last edited by gtatar; 13-07-2006, 16:29.

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            Do both servers have identical hardware? 32 or 64 bit? Did you perform all actions as Administrator?
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • gtatar
              Junior Member
              • Jul 2006
              • 6

              #7
              Hi,

              I reran the test and now I get more data back:

              E:\dump\zabbix\bin>zabbixw32 --config "E:\dump\zabbix\conf\zabbix_agentd.conf" t
              est "perf_counter[\Processor(_Total)\% Processor Time]"
              Using configuration file "E:\dump\zabbix\conf\zabbix_agentd.conf"
              Configuration file OK
              [14-Jul-2006 09:01:06] *************** Log file opened ****************
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] PdhLookupPerfNameByIndex failed: 3. MSG 0x800007D0 - Unab
              le to find message text [0x13D]
              [14-Jul-2006 09:01:06] Call to PdhCollectQueryData() failed: No data to return.

              I didn't have rights to write in the log, that's why it hung before.

              The servers are both 32 bit.

              Comment

              • Alexei
                Founder, CEO
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2004
                • 5654

                #8
                Did you run ZABBIX agent as Administrator?
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • gtatar
                  Junior Member
                  • Jul 2006
                  • 6

                  #9
                  The installation and the service startup was done as administrator.

                  The test I ran today, not. I am waiting for the Admin to arrive any moment now and I will also run the test as administrator.

                  Comment

                  • Alexei
                    Founder, CEO
                    Zabbix Certified Trainer
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Sep 2004
                    • 5654

                    #10
                    All right, please, let me know if it starts normally as Administrator.
                    Alexei Vladishev
                    Creator of Zabbix, Product manager
                    New York | Tokyo | Riga
                    My Twitter

                    Comment

                    • gtatar
                      Junior Member
                      • Jul 2006
                      • 6

                      #11
                      When I run it as administrator, I get a different message:


                      E:\dump\zabbix\bin>zabbixw32 --config "E:\dump\zabbix\conf\zabbix_agentd.conf" t
                      est "perf_counter[\Processor(_Total)\% Processor Time]"
                      Using configuration file "E:\dump\zabbix\conf\zabbix_agentd.conf"
                      Configuration file OK
                      [14-Jul-2006 09:17:46] *************** Log file opened ****************
                      [14-Jul-2006 09:17:46] Unable to add performance counter "\Processor(_Total)\% P
                      rocessor Time" to query: The specified object is not found on the system.

                      Comment

                      • myxz
                        Junior Member
                        • Jun 2006
                        • 8

                        #12
                        Does any one have workaround for this issue yet? Trying to install zabbix but agent wont start on several servers. It is hard to see any pattern in nonworking servers, one of them is w2k another w2k3. Please if You have any information share it. And Thank You for creating nice piece of software.
                        Last edited by myxz; 15-08-2006, 14:37.

                        Comment

                        • dantheman
                          Senior Member
                          • May 2006
                          • 209

                          #13
                          myxz, What do the agent logs show on the non-working agent servers?

                          Comment

                          • myxz
                            Junior Member
                            • Jun 2006
                            • 8

                            #14
                            [15-Aug-2006 15:05:01] *************** Log file opened ****************
                            [15-Aug-2006 15:11:38] Unable to add performance counter "\Processor(_Total)\% Processor Time" to query: The specified object is not found on the system.

                            This is what I get in log file.

                            my zabbix_agentd.conf file

                            Server=10.0.0.211

                            ServerPort=10051

                            HOSTNAME=WTS01

                            DisableActive=0

                            LogFile=C:\zabbix_agentd.log

                            DebugLevel=4
                            Last edited by myxz; 16-08-2006, 09:36.

                            Comment

                            • jem313
                              Junior Member
                              • Aug 2006
                              • 2

                              #15
                              Is that your entire conf file? If so where is your perfcounter configured?

                              Example is from the bottom of my conf file.

                              PerfCounter=netin,"\Network Interface(Intel[R] PRO_1000 MT Network Connection)\Bytes total/sec",5

                              My conf on 2k3

                              Code:
                              
                              Server=192.168.1.1
                              
                              
                              Hostname=localhost
                              
                              
                              StartAgents=5
                              
                              
                              DebugLevel=4
                              
                              LogFile=c:\zabbix_agentd.log
                              
                              Timeout=3
                              
                              ####### USER-DEFINED MONITORED PARAMETERS #######
                              # Format: UserParameter=<key>,<shell command>
                              # Note that shell command must not return empty string or EOL only
                              #UserParameter=system.test,who|wc -l
                              ### Set of parameter for monitoring MySQL server (v3.23.42 and later)
                              ### Change -u<username> and add -p<password> if required
                              
                              PerfCounter=netin,"\Network Interface(Intel[R] PRO_1000 MT Network Connection)\Bytes total/sec",5
                              PerfCounter=sessions,"\Server(All)\Server Sessions",5

                              Comment

                              Working...