Processes resource on Solaris

Anyone ever had this resource working with solaris ?

Can’t seem to get it to find any processes at all.

Best regards

found out why -

ps is being used with the bsd options axo which are not standard on Solaris

On linux the ps delivers

  PID %CPU %MEM    VSZ   RSS TT       STAT  STARTED     TIME USER     COMMAND
    1  0.0  0.0 191220  3712 ?        Ss     May 25 00:07:30 root     /usr/lib/systemd/systemd --switched-root --system --deserialize 22
    2  0.0  0.0      0     0 ?        S      May 25 00:00:00 root     [kthreadd]
    3  0.0  0.0      0     0 ?        S      May 25 00:00:03 root     [ksoftirqd/0]

On Solaris I can get something similar with

ps -o ‘pid pcpu pmem vsz rss tty stime time user fname’

  PID %CPU %MEM  VSZ      RSS TT         LWP    STIME        TIME     USER COMMAND
2245  0.0  0.1 4192     3032 pts/1        1   Jun_17       00:00     root bash
2372  0.0  0.1 4184     3640 pts/1        1   Jun_17       00:00     root bash
7032  0.0  0.1 2592     2256 pts/1        1 23:35:21       00:00     root ps

Is it possible to get the resource updated to allow for Solaris usage or at least change it’s supports info.

Best regards

Thank you @weaverslodge Thank you for opening https://github.com/inspec/inspec/issues/3171
You would need to adapt https://github.com/inspec/inspec/blob/master/lib/resources/processes.rb#L106