Ad Widget

Collapse

Zabbix Win32

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andrewm659
    Junior Member
    • Mar 2006
    • 17

    #1

    Zabbix Win32

    I am trying to get the zabbix win32 service installed, it installs successfully, but when i go to start it, it tells me that it started in an untimely manner.


    # This is config file for zabbix_agent
    # To get more information about Zabbix,
    # go http://zabbix.sourceforge.net

    # IP address of Zabbix server
    # Connections from other hosts will be denied

    Server=192.168.1.72
    Hostname=MEGATRON
    LogFile=C:\zabbixagent.log
    # Spend no more than Timeout seconds on processing
    # Must be between 1 and 30

    Timeout=3

    ####### USER-DEFINED MONITORED PARAMETERS #######
    # Format: UserParameter=<key>,<shell command>
    # Note that shell command should return numeric value
    #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
    #UserParameter=mysql[ping],mysqladmin -uroot ping|grep alive|wc -l
    #UserParameter=mysql[uptime],mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
    #UserParameter=mysql[threads],mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
    #UserParameter=mysql[questions],mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
    #UserParameter=mysql[slowqueries],mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
    #UserParameter=mysql[qps],mysqladmin -uroot status|cut -f9 -d":"
    #UserParameter=version[mysql],mysql -V
  • erisan500
    Senior Member
    Zabbix Certified Specialist
    • Aug 2005
    • 285

    #2
    Anything in the log / eventlog ?

    Greetings
    EriSan
    Zabbix Certified Specialist

    Comment

    • andrewm659
      Junior Member
      • Mar 2006
      • 17

      #3
      Zabbix Win32

      It never installed properly creating a service that would log all this info.....

      Comment

      • dantheman
        Senior Member
        • May 2006
        • 209

        #4
        Try opening up a command prompt, move to the directory where you put the zabbix agent, and then run zabbixw32 check-config and see if it has any problems with the configuration file.

        Comment

        • andrewm659
          Junior Member
          • Mar 2006
          • 17

          #5
          Zabbix Win32

          I did, the config file checked out fine.

          Comment

          • mary nancy
            Senior Member
            • Jul 2005
            • 125

            #6
            Hi

            I am also facing the same problem. I gave zabbixw32 check-config. it shows
            D:\Zabbix>zabbixw32 check-config


            this is the output
            Checking configuration file:

            Using configuration file "C:\zabbix_agentd.conf"
            Configuration file OK

            the services are showing starting but not getting started

            Comment

            • Tim S
              Junior Member
              • Jun 2006
              • 13

              #7
              Will the service start if you comment out the logfile line in the config?
              That's the problem I had until I fixed the file permissions so that the service had rights to write to the file.

              Comment

              • bing
                Junior Member
                • Jun 2005
                • 17

                #8
                temp folder

                The newer versions of the agent use c:\tmp as the temp folder, if this folder doesnt exist then the agent wont start.

                Comment

                • mary nancy
                  Senior Member
                  • Jul 2005
                  • 125

                  #9
                  hi

                  This is my Log File, Can somebody tell me what is wrong in this. Because even after Check-config was ok the service was not getting started, it is in the state starting..but never gets started


                  Server=155.66.239.33

                  # Server port for sending active checks

                  #ServerPort=10051

                  # Unique hostname. Required for active checks.

                  Hostname=gva100

                  # Listen port. Default is 10050

                  #ListenPort=10050

                  # IP address to bind agent
                  # If missing, bind to all available IPs

                  #ListenIP=127.0.0.1

                  # Number of pre-forked instances of zabbix_agentd.
                  # Default value is 5
                  # This parameter must be between 1 and 16

                  StartAgents=5

                  # How often refresh list of active checks. 2 minutes by default.

                  #RefreshActiveChecks=120

                  # Disable active checks. The agent will work in passive mode listening server.

                  #DisableActive=1

                  # Specifies debug level
                  # 0 - debug is not created
                  # 1 - critical information
                  # 2 - error information
                  # 3 - warnings (default)
                  # 4 - for debugging (produces lots of information)

                  DebugLevel=4

                  # Name of PID file

                  # PidFile=/var/tmp/zabbix_agentd.pid

                  # Name of log file.
                  # If not set, syslog will be used

                  LogFile=c:\tmp\zabbix_agentd.log

                  # Spend no more than Timeout seconds on processing
                  # Must be between 1 and 30

                  # Timeout=3

                  ##### Experimental options. Use with care ! #####

                  # Get rid of sockets in TIME_WAIT state
                  # This will set socket option SO_LINGER

                  # NoTimeWait=1

                  ##### End of experimental options

                  ####### 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)



                  I think the registry entry is not getting purged after uninstalling the older version of zabbix......Infact i restarted the server after uninstalling...

                  Comment

                  • erisan500
                    Senior Member
                    Zabbix Certified Specialist
                    • Aug 2005
                    • 285

                    #10
                    Please, post the line how you installed the zabbix agent.

                    Greetings
                    EriSan
                    Zabbix Certified Specialist

                    Comment

                    • mary nancy
                      Senior Member
                      • Jul 2005
                      • 125

                      #11
                      Hi,

                      Please find the installation procedure:

                      1. We have Created a folder Zabbix in D drive and copy the zabbixw32.exe, zabbix_agentd.conf to D:\zabbix
                      Remember for NT serversthere are 4 files(pdh.dbg, pdh.dll, pdh.pdb, psapi.dll) related to DLL for NT servers , an agent config file and an Executable file copy all of them to d:\Zabbix

                      2. Change the hostname in the config file to the hostname of the server in which the Zabbix to be installed, and copy the config file to C:

                      3.Go to command prompt d:\zabbix
                      D:\zabbix> zabbixw32 check-config


                      4. once the configurations are OK , give this command D:\zabbix>zabbixw32 install
                      This will install the zabbixw32 service successfully

                      5. Go to Services.msc and start zabbix Win32 Agent service


                      The uninstallation Procedure:
                      Give the command like d:\Zabbix>zabbixw32 remove

                      Comment

                      • AlexWhite
                        Member
                        • Jun 2006
                        • 31

                        #12
                        Originally posted by mary nancy
                        Hi,
                        4. once the configurations are OK , give this command D:\zabbix>zabbixw32 install
                        This will install the zabbixw32 service successfully
                        5. Go to Services.msc and start zabbix Win32 Agent service
                        Small addition
                        start zabbix Win32 Agent service
                        D:\zabbix>net start ZabbixAgentdW32
                        Stop zabbix Win32
                        D:\zabbix>net stop ZabbixAgentdW32

                        Comment

                        • erisan500
                          Senior Member
                          Zabbix Certified Specialist
                          • Aug 2005
                          • 285

                          #13
                          Originally posted by mary nancy
                          4. once the configurations are OK , give this command D:\zabbix>zabbixw32 install
                          Try specifying your config file:
                          Code:
                           [b]D:\zabbix>zabbixw32 --config D:\zabbix\yourconfigfilename install[/b]
                          Greetings
                          EriSan
                          Zabbix Certified Specialist

                          Comment

                          • mary nancy
                            Senior Member
                            • Jul 2005
                            • 125

                            #14
                            Hi,

                            I tried net start and net stop , to start and stop services, but did not workout. after installation again the service is in starting state only....but never gets started.

                            to install I used
                            zabbixw32 --config c:\zabbix_agentd.conf install

                            nothing helped me.. I still dont understand why registry entries are not getting purged even after uninstallation

                            Somebody help me with this

                            Thanks and regards
                            Nancy

                            Comment

                            • martins.felipe
                              Member
                              • Jul 2006
                              • 34

                              #15
                              Same with me !!!

                              I'm facing the exact same problem
                              I check configurations and they are OK, the service gets up, I can see it's port by nmaping it, but it refuses to response any request of zabbix.
                              I found something about a problem using the pid file, and hostname configuration tags at configuration file.
                              I'm gonna take a look and as soon as I get it working , i'll let you up.

                              [ ] 's
                              Phil

                              Comment

                              Working...