[ZBXNEXT-3910] proc.num does not support all Linux proc statuses Created: 2017 Jun 05  Updated: 2024 Apr 10  Resolved: 2017 Aug 04

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: 3.2.5
Fix Version/s: 3.4.0alpha2, 3.4 (plan)

Type: New Feature Request Priority: Major
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: agent, proc.num
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File STATE.png    
Issue Links:
Duplicate
is duplicated by ZBXNEXT-2728 please add more states in proc.num Closed
Team: Team A
Sprint: Sprint 9, Sprint 10, Sprint 11, Sprint 12, Sprint 13
Story Points: 3

 Description   

Key proc.num supports only: run, sleep, zomb
but /proc/[pid]/status supports much more:

(3) state  %c
                        One of the following characters, indicating process
                        state:

                        R  Running

                        S  Sleeping in an interruptible wait

                        D  Waiting in uninterruptible disk sleep

                        Z  Zombie

                        T  Stopped (on a signal) or (before Linux 2.6.33)
                           trace stopped

                        t  Tracing stop (Linux 2.6.33 onward)

                        W  Paging (only before Linux 2.6.0)

                        X  Dead (from Linux 2.6.0 onward)

                        x  Dead (Linux 2.6.33 to 3.13 only)

                        K  Wakekill (Linux 2.6.33 to 3.13 only)

                        W  Waking (Linux 2.6.33 to 3.13 only)

                        P  Parked (Linux 3.9 to 3.13 only)


 Comments   
Comment by Stefan [ 2017 Jul 10 ]

a Duplicate of ZBXNEXT-2728 ?

vso yes, thanks !

Comment by Andrea Biscuola (Inactive) [ 2017 Jul 20 ]

RESOLVED in r70397

Actually, the feature was implemented with different commits (one per platform).
For viewing the complete diff:

svn diff -r 70278:70397

The feature actually add the monitoring of processes in IO/wait or trace states. The various BSDs implement the process virtual memory structure slightly differently between each others and also some flags differ.

For testing:

  • For the uninterruptible sleep, refer to the ZBXNEXT-3910 spec.
  • For the trace, just attach a debugger to a running process and it should appear in the count inside the zabbix front-end.
Comment by Andrea Biscuola (Inactive) [ 2017 Jul 25 ]

Fixed in:

  • pre-3.4.0alpha2(trunk)

If needed, we should be document where this feature is supported for the proc.num key

Comment by Martins Valkovskis [ 2017 Jul 26 ]

(3) [D] Updated documentation:

Please review.

vso REOPENED, trace param is not added to HP-UX, AIX, Solaris but is mentioned as supported on those platforms.

trace param handling must be added in proc.num key on FreeBSD, NetBSD, OpenBSD, Linux, however HP-UX, AIX, Solaris are excluded.

Please also be so kind and add to upgrade notes that FreeBSD, OpenBSD and NetBSD sleep parameter was fixed and will now only display processes count in interruptible sleep, while disk parameter can be used to obtain process count in uninterruptible sleep

martins-v I've tried to fix the supported platform page and also added the upgrade note part (link is now listed above). RESOLVED.

vso CLOSED

Generated at Sun Jun 29 06:43:00 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.