Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected 'ps_aux' output. #94

Open
lonicerae opened this issue Dec 8, 2016 · 3 comments
Open

Unexpected 'ps_aux' output. #94

lonicerae opened this issue Dec 8, 2016 · 3 comments

Comments

@lonicerae
Copy link

Hi Richard,

When I was using 'redhat-access-insights', it seems that the collected data 'ps_aux' is not the result as it should be. Please kindly check the follows:

$ cat ./test-host1-20161207134651/insights_commands/ps_aux | wc -l
3
$ cat ./test-host1-20161207134651/insights_commands/ps_auxcww | wc -l
287
$ cat ./test-host2-20161207134705/insights_commands/ps_aux | wc -l
1
$ cat ./test-host2-20161207134705/insights_commands/ps_auxcww | wc -l
293

$ grep chrony */insights_commands/ps_*
test-host1-20161207134651/insights_commands/ps_auxcww:chrony    1204  0.0  0.0 115848   888 ?        S    Nov09   0:11 chronyd

$ cat ./test-host1-20161207134651/insights_commands/ps_aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
qemu      5611  2.9 34.8 17453640 11409204 ?   Sl   Nov09 1181:42 /usr/libexec/qemu-kvm -name guest=RHEL7-RHV4-MANAGER2,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-1-RHEL7-RHV4-MANAGER2/master-key.aes -machine pc-i440fx-rhel7.2.0,accel=kvm,usb=off,vmport=off -cpu Nehalem -m 16384 -realtime mlock=off -smp 4,sockets=4,cores=1,threads=1 -uuid ac7471aa-65da-4e01-946b-4fb6b520ce96 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-1-RHEL7-RHV4-MANAGER2/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x6.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x6 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,a!
 ddr=0x6.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive file=/dev/kvm_images/RHEL7-RHV4-MANAGER2,format=raw,if=none,id=drive-virtio-disk0,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=28,id=hostnet0,vhost=on,vhostfd=30 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:e0:80:9b,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0,bus=usb.0,port=1 -vnc 0.0.0.0:0 -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x8 -msg timestamp=on
qemu      5629 14.6 26.5 9252308 8695204 ?     Sl   Nov09 5887:46 /usr/libexec/qemu-kvm -name guest=WIN7,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-2-WIN7/master-key.aes -machine rhel6.2.0,accel=kvm,usb=off -m 8192 -realtime mlock=off -smp 8,sockets=2,cores=2,threads=2 -uuid a9a120c7-119d-b40b-8b93-0975dafb73dd -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-2-WIN7/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime,driftfix=slew -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/dev/kvm_images/WIN7,format=raw,if=none,id=drive-virtio-disk0,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/dev/kvm_images/WIN7-D,format=raw,if=none,id=drive-virtio-disk1,cache=none,aio=native -device virtio-blk-pci,scsi=off,bus!
 =pci.0,addr=0x8,drive=drive-virtio-disk1,id=virtio-disk1 -drive if=none,id=drive-ide0-1-0,readonly=on -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=29,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=52:54:00:07:21:1b,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0,bus=usb.0,port=1 -vnc 0.0.0.0:1 -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on

$ cat ./test-host2-20161207134705/insights_commands/ps_aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

I can confirm this bug in my local system:


[myhost-20161208161424]# cat ./insights_commands/ps_auxcww | wc -l
205
[myhost-20161208161424]# cat ./insights_commands/ps_aux | wc -l
1

[myhost-20161208161424]# cat ./insights_commands/ps_aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

[myhost-20161208161424]# rpm -q redhat-access-insights
redhat-access-insights-1.0.11-0.el7.noarch

Can you please help to look into this issue? Thanks!

Regards,
Flos

@chenlizhong
Copy link

chenlizhong commented Dec 8, 2016

The redhat-access-insights Version: 1.0.11 is installed from rhel-7-server-htb-rpms repo.

When executing collection, the status of '/bin/ps aux' is None.
Executing: ['/bin/ps', 'aux']
Status: None
stderr: None
Writing ps_aux to cmd_dir
Executing: ['/bin/ps', 'auxcww']
Status: 0
stderr: None
Writing ps_auxcww to cmd_dir

@brantleyr
Copy link
Contributor

@chenlizhong Has this issue been resolved via the shared mappers?

@chenlizhong
Copy link

No problem now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants