Ad Widget

Collapse

SERVICE_STATE return nothing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moridin777
    Junior Member
    • Nov 2015
    • 7

    #1

    SERVICE_STATE return nothing

    Good afternoon.
    Has anyone got this problem in service_state?
    "not following parameter = value notation"

    When the service zabbiks on pc working correctly.
    When you add the line in config and restarted service you get alerts:"not following parameter = value notation".
    But if you do not restart agent service, the state of the service is monitored correct on Zabbix server and check status service.
    When I do: zabbix_get.exe -s zabbixserver -k 'service_state[Spooler]' i have nothing.


    Code:
    zabbix-conf:
    LogFile=c:\tmp\zabbix_agentd.log
    EnableRemoteCommands=1
    LogRemoteCommands=1
    Server=zabbixserver
    UnsafeUserParameters=1
    service_state[Spooler]
    zabbix-agent 2.2.5
    Zabbix-server 2.4
    Attached Files
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Zabbix agent does not respond only to requests from the server that is registered in the configuration file.
    Please try to add the IP address of the server that executed the zabbix_get command to the value of the Server.

    ex. (If you executed zabbix_get command with "-s 10.192.167.200" on local)
    Code:
    Server=zabbixserver,10.192.167.200
    Or, please try execute zabbix_get command on Zabbix server.

    Comment

    • moridin777
      Junior Member
      • Nov 2015
      • 7

      #3
      Originally posted by Atsushi
      Zabbix agent does not respond only to requests from the server that is registered in the configuration file.
      Please try to add the IP address of the server that executed the zabbix_get command to the value of the Server.

      ex. (If you executed zabbix_get command with "-s 10.192.167.200" on local)
      Code:
      Server=zabbixserver,10.192.167.200
      Or, please try execute zabbix_get command on Zabbix server.
      I tried to use IP, It did not help.
      I can not test zabbix_get on server, administrator did not install the utility.
      It is surprising, if not restart the service, then service_state tracked correctly.

      Comment

      • moridin777
        Junior Member
        • Nov 2015
        • 7

        #4
        Originally posted by Atsushi
        Zabbix agent does not respond only to requests from the server that is registered in the configuration file.
        Please try to add the IP address of the server that executed the zabbix_get command to the value of the Server.

        ex. (If you executed zabbix_get command with "-s 10.192.167.200" on local)
        Code:
        Server=zabbixserver,10.192.167.200
        Or, please try execute zabbix_get command on Zabbix server.
        I tested on a different server zabbix.
        UBUNTU 14
        zabbix server 2.4
        agent 2.2.5
        zabbix_get -s 192.168.0.110 -p 10051 -k 'service_state Spooler'
        I have an empty value.
        Tested on server and PC Windows 8.1.
        Telnet to server normal, and i see MY PC on monitoring.

        Comment

        • Atsushi
          Senior Member
          • Aug 2013
          • 2028

          #5
          That the value is empty, it may not be accessed from an IP address that is specified by the value of the Server.
          Please check your agent log with DebugLevel=4.

          And, you must execute with -k option below.
          Code:
          zabbix_get -s 192.168.0.110 -p 10051 -k 'service_state[Spooler]'

          Comment

          • moridin777
            Junior Member
            • Nov 2015
            • 7

            #6
            Originally posted by Atsushi
            That the value is empty, it may not be accessed from an IP address that is specified by the value of the Server.
            Please check your agent log with DebugLevel=4.

            And, you must execute with -k option below.
            Code:
            zabbix_get -s 192.168.0.110 -p 10051 -k 'service_state[Spooler]'
            When i start: zabbix_get -s 192.168.0.110 -p 10051 -k 'service_state[Spooler]
            in log, normal:
            Code:
              9760:20151201:075959.016 Requested [service_state[Spooler]]
              9760:20151201:075959.016 Sending back [0]
             10204:20151201:075959.596 In collect_perfstat()
            if i add line in config, and reload agent, i have:
            Code:
            8620:20151201:080416.617 Starting Zabbix Agent [KOD21162]. Zabbix 2.2.5 (revision 47406).
              8620:20151201:080416.617 using configuration file: C:\zabbix_agentd.conf
              8620:20151201:080416.627 In init_collector_data()
              8620:20151201:080416.627 End of init_collector_data()
              8620:20151201:080416.627 In init_perf_collector()
              8620:20151201:080416.627 End of init_perf_collector():SUCCEED
              5892:20151201:080416.637 agent #0 started [collector]
              5892:20151201:080416.637 In init_cpu_collector()
              5892:20151201:080416.637 In get_counter_name() pdhIndex:238
              8336:20151201:080416.647 agent #1 started[listener #1]
              1216:20151201:080416.657 agent #2 started[listener #2]
              7408:20151201:080416.667 agent #3 started[listener #3]
              5892:20151201:080417.047 End of get_counter_name():SUCCEED
              5892:20151201:080417.047 In get_counter_name() pdhIndex:6
              5892:20151201:080417.047 End of get_counter_name():SUCCEED
              5892:20151201:080417.047 In add_perf_counter() counter:'\Процессор(_Total)\% загруженности процессора' interval:900
              5892:20151201:080417.047 add_perf_counter(): PerfCounter '\Процессор(_Total)\% загруженности процессора' successfully added
              5892:20151201:080417.047 In add_perf_counter() counter:'\Процессор(0)\% загруженности процессора' interval:900
              5892:20151201:080417.047 add_perf_counter(): PerfCounter '\Процессор(0)\% загруженности процессора' successfully added
              5892:20151201:080417.047 In add_perf_counter() counter:'\Процессор(1)\% загруженности процессора' interval:900
              5892:20151201:080417.047 add_perf_counter(): PerfCounter '\Процессор(1)\% загруженности процессора' successfully added
              5892:20151201:080417.047 In add_perf_counter() counter:'\Процессор(2)\% загруженности процессора' interval:900
              5892:20151201:080417.047 add_perf_counter(): PerfCounter '\Процессор(2)\% загруженности процессора' successfully added
              5892:20151201:080417.047 In add_perf_counter() counter:'\Процессор(3)\% загруженности процессора' interval:900
              5892:20151201:080417.047 add_perf_counter(): PerfCounter '\Процессор(3)\% загруженности процессора' successfully added
              5892:20151201:080417.047 In get_counter_name() pdhIndex:2
              5892:20151201:080417.047 End of get_counter_name():SUCCEED
              5892:20151201:080417.047 In get_counter_name() pdhIndex:44
              5892:20151201:080417.047 End of get_counter_name():SUCCEED
              5892:20151201:080417.047 In add_perf_counter() counter:'\Система\Длина очереди процессора' interval:900
              5892:20151201:080417.047 add_perf_counter(): PerfCounter '\Система\Длина очереди процессора' successfully added
              5892:20151201:080417.047 End of init_cpu_collector():SUCCEED
              5892:20151201:080417.057 In collect_perfstat()
              5892:20151201:080417.057 End of collect_perfstat()
              5892:20151201:080418.057 In collect_perfstat()
              5892:20151201:080418.057 End of collect_perfstat()
              5892:20151201:080419.057 In collect_perfstat()
              5892:20151201:080419.057 End of collect_perfstat()
              5892:20151201:080420.057 In collect_perfstat()
              5892:20151201:080420.057 End of collect_perfstat()
              5892:20151201:080421.057 In collect_perfstat()
              5892:20151201:080421.057 End of collect_perfstat()
              5892:20151201:080422.057 In collect_perfstat()
              5892:20151201:080422.057 End of collect_perfstat()
              5892:20151201:080423.062 In collect_perfstat()
              5892:20151201:080423.062 End of collect_perfstat()
              5892:20151201:080424.062 In collect_perfstat()
              5892:20151201:080424.062 End of collect_perfstat()
              8924:20151201:080424.312 Zabbix Agent shutdown requested
              5892:20151201:080425.062 In free_cpu_collector()
              5892:20151201:080425.062 End of free_cpu_collector()
              5892:20151201:080425.062 zabbix_agentd collector stopped
              8924:20151201:080425.312 Zabbix Agent stopped. Zabbix 2.2.5 (revision 47406).
            It's all log zabbix, when i start normal, and vhen i reload with string.

            Comment

            • moridin777
              Junior Member
              • Nov 2015
              • 7

              #7
              write module with c# and used userparam.
              this decision has been described for zabbiks 1.8.

              Comment

              Working...