Ad Widget

Collapse

AIX (Agent 2.4.4): proc.num always returns 0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #1

    AIX (Agent 2.4.4): proc.num always returns 0

    Hi

    this discussion is still ongoing, I'm afraid (on AIX 5.3)

    Years ago there was a problem with the command-line lenght
    of the cmdline part in the /proc filesystem (limit was 80 chars).
    Now the new fix is in place, but we don't get any value other than 0
    for all existing process we would like to monitor:
    Code:
    $ /usr/sbin/zabbix_agentd -t proc.num[/usr/sbin/inetd]
    proc.num[/usr/sbin/inetd]                     [u|0]
    $ /usr/sbin/zabbix_agentd -t proc.num[,,run]
    proc.num[,,run]                               [u|0]
    The same result (0) is shown, if we do a zabbix_get for proc.num[/usr/sbin/inetd] or the zabbix_agentd itself.
    Our old work-around using the user-parameters
    Code:
    UserParameter=usr.proc.cntuser[*],ps -fu $1 | grep -c "$2"
    UserParameter=usr.proc.cnt[*],ps -eaf |grep -v grep|grep -c "$1"
    work well.
    Does somebody else see this behaviour with the 2.4.4 agent (or newer) or is it a bug in just this version ?

    I found that the limit of MAXCOMLEN (32 chars.) is mentioned in
    ZBX-5243 and the code in 3.0.3 looks like the proposed patch.

    Thanks in advance for any answer.

    Kind regards
    Norbert.
    Last edited by NOB; 04-07-2016, 16:40. Reason: Forgot to mentions the OS version
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please check issue ZBX-9385.

    ZBX-9385
    agentd for AIX аlways return value 0 for key proc.num[,,run]


    This issue fixed at Zabbix 2.4.6.

    Comment

    • NOB
      Senior Member
      Zabbix Certified Specialist
      • Mar 2007
      • 469

      #3
      Hi Atsushi

      thanks for your reply.

      So the question is: where to get a decent agent for AIX ?
      The only one we found on the Zabbix website for AIX is 2.4.4 !

      Short of compiling our own, we might use an even older one.

      Regards
      Norbert.

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        If you want the file does not exist in the download page, you will need to compile it yourself.
        Or, If you have a contract that official support, it may be provided by the partners.

        Comment

        Working...