You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(venv) [root@test-liuxun prophet]# prophet-cli collect --host-file /tmp/scan_hosts.csv --output-path /tmp/
2022-01-14 09:23:19,713 20084 INFO [-] Collecting hosts information from /tmp/scan_hosts.csv...
2022-01-14 09:23:19,721 20084 INFO [-] Found 4 host(s) in csv...
2022-01-14 09:23:19,722 20084 INFO [-] Collecting host [LINUX]192.168.10.129...
2022-01-14 09:23:20,589 20084 INFO [-] Precheck for Linux 192.168.10.129 connection
2022-01-14 09:23:20,589 20084 INFO [-] Checking 192.168.10.129 SSH info...
2022-01-14 09:23:20,590 20084 INFO [-] Collecting host 192.168.10.129 info...
2022-01-14 09:23:20,590 20084 INFO [-] Prepare config file for Linux collection...
2022-01-14 09:23:20,591 20084 INFO [-] Write ansible hosts to /tmp/tmp2eeb6j5w/hosts...
2022-01-14 09:23:20,592 20084 INFO [-] Running ansible command...
2022-01-14 09:23:21,531 20084 INFO [-] Collected host 192.168.10.129 info
2022-01-14 09:23:21,531 20084 ERROR [-] Host 192.168.10.129 check failed due to:
2022-01-14 09:23:21,531 20084 ERROR [-] Collect Linux 192.168.10.129 failed, please check yaml file for detailed
Traceback (most recent call last):
File "/root/prophet/venv/lib/python3.6/site-packages/prophet/collector/collector.py", line 149, in collect_hosts
c.collect()
File "/root/prophet/venv/lib/python3.6/site-packages/prophet/collector/hosts/linux.py", line 49, in collect
"check yaml file for detailed" % self.ip)
Exception: Collect Linux 192.168.10.129 failed, please check yaml file for detailed
2022-01-14 09:23:21,540 20084 INFO [-] Saving collection report to /tmp/hosts_collection/collection_report.csv
2022-01-14 09:23:21,541 20084 INFO [-] Saved collection report to /tmp/hosts_collection/collection_report.csv
2022-01-14 09:23:21,541 20084 WARNING [-] Skip to collect 192.168.10.132 information due to password or key is not given.
2022-01-14 09:23:21,542 20084 WARNING [-] Skip to collect 192.168.10.133 information due to password or key is not given.
2022-01-14 09:23:21,543 20084 WARNING [-] Skip to collect 192.168.10.135 information due to password or key is not given.
2022-01-14 09:23:21,543 20084 INFO [-] ===========Summary==========
2022-01-14 09:23:21,543 20084 INFO [-] Need to check 1 host(s), success 0 hosts, failed 1 hosts.
2022-01-14 09:23:21,543 20084 INFO [-] Failed hosts: ['[LINUX]192.168.10.129']
2022-01-14 09:23:21,543 20084 INFO [-] ============================
2022-01-14 09:23:21,543 20084 INFO [-] Copying log file into collection info path...
2022-01-14 09:23:21,544 20084 INFO [-] Copying /tmp/prophet.log to /tmp/hosts_collection...
2022-01-14 09:23:21,544 20084 INFO [-] Compressed pacakge in /tmp/, filename is hosts_collection_20220114092321.zip...
Traceback (most recent call last):
File "/root/prophet/venv/bin/prophet-cli", line 8, in
sys.exit(main())
File "/root/prophet/venv/lib/python3.6/site-packages/prophet/cmd/cli.py", line 147, in main
args.func(args)
File "/root/prophet/venv/lib/python3.6/site-packages/prophet/cmd/cli.py", line 62, in collect_hosts
host_collector.package()
File "/root/prophet/venv/lib/python3.6/site-packages/prophet/collector/collector.py", line 196, in package
self.collection_path)
File "/usr/lib64/python3.6/shutil.py", line 785, in make_archive
os.chdir(root_dir)
NotADirectoryError: [Errno 20] Not a directory: '/tmp/hosts_collection'
The text was updated successfully, but these errors were encountered:
qingyunliu
changed the title
执行 prophet-cli collect --host-file /tmp/scan_hosts.csv --output-path /tmp/ 这个命令的时候,报错
ansible==3.7.8,执行 prophet-cli collect --host-file /tmp/scan_hosts.csv --output-path /tmp/ 这个命令的时候,报错
Jan 14, 2022
qingyunliu
changed the title
ansible==3.7.8,执行 prophet-cli collect --host-file /tmp/scan_hosts.csv --output-path /tmp/ 这个命令的时候,报错
ansible==3.7.8,执行 prophet-cli collect --host-file /tmp/scan_hosts.csv --output-path /tmp/ 这个命令的时候,报错,原因是没有安装sshpass这个包
Jan 14, 2022
qingyunliu
changed the title
ansible==3.7.8,执行 prophet-cli collect --host-file /tmp/scan_hosts.csv --output-path /tmp/ 这个命令的时候,报错,原因是没有安装sshpass这个包
ansible==2.7.8,执行 prophet-cli collect --host-file /tmp/scan_hosts.csv --output-path /tmp/ 这个命令的时候,报错,原因是没有安装sshpass这个包
Jan 28, 2022
(venv) [root@test-liuxun prophet]# prophet-cli collect --host-file /tmp/scan_hosts.csv --output-path /tmp/
2022-01-14 09:23:19,713 20084 INFO [-] Collecting hosts information from /tmp/scan_hosts.csv...
2022-01-14 09:23:19,721 20084 INFO [-] Found 4 host(s) in csv...
2022-01-14 09:23:19,722 20084 INFO [-] Collecting host [LINUX]192.168.10.129...
2022-01-14 09:23:20,589 20084 INFO [-] Precheck for Linux 192.168.10.129 connection
2022-01-14 09:23:20,589 20084 INFO [-] Checking 192.168.10.129 SSH info...
2022-01-14 09:23:20,590 20084 INFO [-] Collecting host 192.168.10.129 info...
2022-01-14 09:23:20,590 20084 INFO [-] Prepare config file for Linux collection...
2022-01-14 09:23:20,591 20084 INFO [-] Write ansible hosts to /tmp/tmp2eeb6j5w/hosts...
2022-01-14 09:23:20,592 20084 INFO [-] Running ansible command...
2022-01-14 09:23:21,531 20084 INFO [-] Collected host 192.168.10.129 info
2022-01-14 09:23:21,531 20084 ERROR [-] Host 192.168.10.129 check failed due to:
2022-01-14 09:23:21,531 20084 ERROR [-] Collect Linux 192.168.10.129 failed, please check yaml file for detailed
Traceback (most recent call last):
File "/root/prophet/venv/lib/python3.6/site-packages/prophet/collector/collector.py", line 149, in collect_hosts
c.collect()
File "/root/prophet/venv/lib/python3.6/site-packages/prophet/collector/hosts/linux.py", line 49, in collect
"check yaml file for detailed" % self.ip)
Exception: Collect Linux 192.168.10.129 failed, please check yaml file for detailed
2022-01-14 09:23:21,540 20084 INFO [-] Saving collection report to /tmp/hosts_collection/collection_report.csv
2022-01-14 09:23:21,541 20084 INFO [-] Saved collection report to /tmp/hosts_collection/collection_report.csv
2022-01-14 09:23:21,541 20084 WARNING [-] Skip to collect 192.168.10.132 information due to password or key is not given.
2022-01-14 09:23:21,542 20084 WARNING [-] Skip to collect 192.168.10.133 information due to password or key is not given.
2022-01-14 09:23:21,543 20084 WARNING [-] Skip to collect 192.168.10.135 information due to password or key is not given.
2022-01-14 09:23:21,543 20084 INFO [-] ===========Summary==========
2022-01-14 09:23:21,543 20084 INFO [-] Need to check 1 host(s), success 0 hosts, failed 1 hosts.
2022-01-14 09:23:21,543 20084 INFO [-] Failed hosts: ['[LINUX]192.168.10.129']
2022-01-14 09:23:21,543 20084 INFO [-] ============================
2022-01-14 09:23:21,543 20084 INFO [-] Copying log file into collection info path...
2022-01-14 09:23:21,544 20084 INFO [-] Copying /tmp/prophet.log to /tmp/hosts_collection...
2022-01-14 09:23:21,544 20084 INFO [-] Compressed pacakge in /tmp/, filename is hosts_collection_20220114092321.zip...
Traceback (most recent call last):
File "/root/prophet/venv/bin/prophet-cli", line 8, in
sys.exit(main())
File "/root/prophet/venv/lib/python3.6/site-packages/prophet/cmd/cli.py", line 147, in main
args.func(args)
File "/root/prophet/venv/lib/python3.6/site-packages/prophet/cmd/cli.py", line 62, in collect_hosts
host_collector.package()
File "/root/prophet/venv/lib/python3.6/site-packages/prophet/collector/collector.py", line 196, in package
self.collection_path)
File "/usr/lib64/python3.6/shutil.py", line 785, in make_archive
os.chdir(root_dir)
NotADirectoryError: [Errno 20] Not a directory: '/tmp/hosts_collection'
The text was updated successfully, but these errors were encountered: