Ad Widget

Collapse

proc.num and long process names

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rts
    Member
    • May 2007
    • 54

    #1

    proc.num and long process names

    Hi,

    It appears that proc.num fails when the parameter is 16 characters or longer:
    Code:
    [root@xxxx ~]# ps aux |grep phpet1234
    root      8153  0.0  0.1 281376 12316 pts/0    S    12:03   0:00 /usr/local/bin/php /usr/local/bin/phpet1234
    root      8233  0.0  0.1 281372 12308 pts/0    S    12:03   0:00 /usr/local/bin/php /usr/local/bin/phpet12345
    root      8349  0.1  0.1 281372 12308 pts/0    S    12:03   0:00 /usr/local/bin/php /usr/local/bin/phpet123456
    root      8440  0.1  0.1 281372 12312 pts/0    S    12:03   0:00 /usr/local/bin/php /usr/local/bin/phpet1234567
    root      8533  0.1  0.1 281372 12308 pts/0    S    12:03   0:00 /usr/local/bin/php /usr/local/bin/phpet12345678
    root      9190  0.2  0.1 281376 12312 pts/0    S    12:04   0:00 /usr/local/bin/php /usr/local/bin/phpet123456789
    root      9270  0.3  0.1 281376 12308 pts/0    S    12:04   0:00 /usr/local/bin/php /usr/local/bin/phpet1234567890
    root      9378  0.5  0.1 281372 12308 pts/0    S    12:04   0:00 /usr/local/bin/php /usr/local/bin/phpet12345678901
    root      9721  0.0  0.0  60272   720 pts/0    S+   12:04   0:00 grep phpet1234
    [root@xxxx ~]# zabbix_agentd -t proc.num[phpet1234567]
    proc.num[phpet1234567]                        [u|1]
    [root@xxxx ~]# zabbix_agentd -t proc.num[phpet12345678]
    proc.num[phpet12345678]                       [u|1]
    [root@xxxx ~]# zabbix_agentd -t proc.num[phpet123456789]
    proc.num[phpet123456789]                      [u|1]
    [root@xxxx ~]# zabbix_agentd -t proc.num[phpet1234567890]
    proc.num[phpet1234567890]                     [u|2] [COLOR="Red"]Correct - as two processes match this criteria[/COLOR]
    [root@xxxx ~]# zabbix_agentd -t proc.num[phpet12345678901]
    proc.num[phpet12345678901]                    [u|0] [COLOR="Red"]Wrong - this process is running.  Why isn't Zabbix finding it?[/COLOR]
    [root@xxxx ~]# ps aux |grep phpet1234
    root      8153  0.0  0.1 281376 12316 pts/0    S    12:03   0:00 /usr/local/bin/php /usr/local/bin/phpet1234
    root      8233  0.0  0.1 281372 12308 pts/0    S    12:03   0:00 /usr/local/bin/php /usr/local/bin/phpet12345
    root      8349  0.0  0.1 281372 12308 pts/0    S    12:03   0:00 /usr/local/bin/php /usr/local/bin/phpet123456
    root      8440  0.0  0.1 281372 12312 pts/0    S    12:03   0:00 /usr/local/bin/php /usr/local/bin/phpet1234567
    root      8533  0.0  0.1 281372 12308 pts/0    S    12:03   0:00 /usr/local/bin/php /usr/local/bin/phpet12345678
    root      9190  0.1  0.1 281376 12312 pts/0    S    12:04   0:00 /usr/local/bin/php /usr/local/bin/phpet123456789
    root      9270  0.1  0.1 281376 12308 pts/0    S    12:04   0:00 /usr/local/bin/php /usr/local/bin/phpet1234567890
    root      9378  0.2  0.1 281372 12308 pts/0    S    12:04   0:00 /usr/local/bin/php /usr/local/bin/phpet12345678901
    root      9957  0.0  0.0  60272   716 pts/0    S+   12:05   0:00 grep phpet1234
    [root@xxxx ~]#
    Has anyone else seen this / got a suggestion? I'm still seeing this in v1.6.2

    Thanks,


    rtsh
  • dotneft
    Senior Member
    • Nov 2008
    • 699

    #2
    proc.num[name,user,state,cmdline]

    try zabbix_agentd -t proc.num[,,,/usr/local/bin/phpet12345678901] or zabbix_agentd -t proc.num[,,,phpet12345678901]

    Comment

    • rts
      Member
      • May 2007
      • 54

      #3
      I'm afraid that's not helped:

      Code:
      [root@xxxx ~]# ps aux |grep /usr/local/bin/phpet12345678901
      root     29848  2.2  0.1 281376 12312 pts/1    S    12:30   0:00 /usr/local/bin/php /usr/local/bin/phpet12345678901
      root     29881  0.0  0.0  60268   716 pts/1    S+   12:30   0:00 grep /usr/local/bin/phpet12345678901
      [root@xxxx ~]# zabbix_agentd -t proc.num[,,,/usr/local/bin/phpet12345678901]
      proc.num[,,,/usr/local/bin/phpet12345678901]  [u|0]
      [root@xxxx ~]# zabbix_agentd -t proc.num[,,,phpet12345678901]
      proc.num[,,,phpet12345678901]                 [u|0]
      [root@xxxx ~]# ps aux |grep /usr/local/bin/phpet12345678901
      root     29848  0.3  0.1 281376 12316 pts/1    S    12:30   0:00 /usr/local/bin/php /usr/local/bin/phpet12345678901
      root     30287  0.0  0.0  60268   720 pts/1    R+   12:30   0:00 grep /usr/local/bin/phpet12345678901
      [root@xxxx ~]#

      Comment

      • rts
        Member
        • May 2007
        • 54

        #4
        Has anyone managed to reproduce this?

        rts

        Comment

        Working...