Ad Widget

Collapse

UserParameter & ZabbixW32 1.1 beta5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zvn
    Junior Member
    • Jan 2006
    • 10

    #1

    UserParameter & ZabbixW32 1.1 beta5

    Hi!

    I am using zabbix on linux and windows hosts.

    On windows host in c:\zabbix_agentd.conf created UserParameter=tcpest3389,cmd.exe /c netstat -n -p TCP | find /c ":3389"

    On zabbix server added item:
    ---------------------------
    Description #term sessions
    Host my.host
    Type Zabbix agent
    Key tcpest3389
    Units
    Use multiplier Do not use
    Update interval (in sec) 120
    Keep history (in days) 90
    Keep trends (in days) 365
    Status Monitored
    Type of information Numeric (float)
    Store value As is
    ------------------

    And I can not get values of this UserParameter.
    Other items for my.host is working.

    Where I'm wrong?

    Thank you, Valery.
  • KarmaPolice
    Member
    • Oct 2005
    • 95

    #2
    Originally posted by zvn
    Hi!

    I am using zabbix on linux and windows hosts.

    On windows host in c:\zabbix_agentd.conf created UserParameter=tcpest3389,cmd.exe /c netstat -n -p TCP | find /c ":3389"

    On zabbix server added item:
    ---------------------------
    Description #term sessions
    Host my.host
    Type Zabbix agent
    Key tcpest3389
    Units
    Use multiplier Do not use
    Update interval (in sec) 120
    Keep history (in days) 90
    Keep trends (in days) 365
    Status Monitored
    Type of information Numeric (float)
    Store value As is
    ------------------

    And I can not get values of this UserParameter.
    Other items for my.host is working.

    Where I'm wrong?

    Thank you, Valery.
    I could be mistaken, but i think that that command returns a newline at the end of the command therefore zabbix would be receiving data it didn't know how to interperet.... i'm not sure how you would do this in windows, but you need to do something similar to what 'head -1' would do for linux on the output of that command.....

    This is all a bit of a stab in the dark but everything else seems to check out ok.

    1 other question: is that your only custom UserParameter ??

    Comment

    • zvn
      Junior Member
      • Jan 2006
      • 10

      #3
      Originally posted by KarmaPolice
      I could be mistaken, but i think that that command returns a newline at the end of the command therefore zabbix would be receiving data it didn't know how to interperet.... i'm not sure how you would do this in windows, but you need to do something similar to what 'head -1' would do for linux on the output of that command.....
      In windows return of command (I am output return to file) ended by 0x0D 0x0A, in linux 0x0A

      Zabbix 1.1 beta2 agent for windows (and server also) working without this troubles...

      Originally posted by KarmaPolice
      1 other question: is that your only custom UserParameter ??
      I am use two UserParameters on windows hosts:
      UserParameter=tcpest3389,cmd.exe /c netstat -n -p TCP | find /c ":3389 "
      UserParameter=tcpest1521,cmd.exe /c netstat -n -p TCP | find /c ":1521 "

      On linux hosts any troubles with UserParameter absent.

      Comment

      • zvn
        Junior Member
        • Jan 2006
        • 10

        #4
        server log is:
        Parameter [tcpest3389] is not supported by agent on host [hr] Old status [0]
        What does it mean? On server I'm install agent from 1.1beta5.

        I'm change
        UserParameter=tcpest3389,echo 1
        and in log same string.

        And I can not get this data from my.host

        Comment

        • zvn
          Junior Member
          • Jan 2006
          • 10

          #5
          What does it mean? On _______windows server________ I'm install agent from 1.1beta5.

          Comment

          • zvn
            Junior Member
            • Jan 2006
            • 10

            #6
            I make some test:
            create file c:\zabbix\tst with folowing content (two chars): 0x031 and 0x0A
            and add UserParameter=tst,type c:\zabbix\tst

            In server log:
            Parameter [tst] is not supported by agent on host [my.host] Old status [0]

            But for old UserParameters I can see in server log:
            Type of received value [1

            ] is not sutable for [my.host]

            Comment

            Working...