This project was developed to facilitate nessus agent installations and to facilitate problem solving related to agent management. It is an open source project that you cannot officially get support from Tenable. The project has been successfully tested in my test environment. All responsibility for the use of the tools included in the project belongs to the user.
[root@tenable-5cfxx56r nessus-agent-opmanager]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
Listed in requirements.txt
[root@tenable-5cfxx56r nessus-agent-opmanager]# yum install sshpass jq -y
The setup.json file in the project folder must be edited for configuration definitions.
{
"genericCredentialFile": "config/.env",
"logsDir": "logs/",
"setupFile": {
"rhel7": "NessusAgent-10.4.2-es7.x86_64.rpm",
"rhel8": "NessusAgent-10.4.2-es8.x86_64.rpm",
"ubuntu": "NessusAgent-10.4.2-ubuntu1404_amd64.deb"
},
"targetList": [
{
"ip": "10.10.10.123",
"user": "root",
"os": "rhel8",
"authMethod": "genericuser"
},
{
"ip": "10.10.10.122",
"user": "root",
"os": "ubuntu",
"authMethod": "genericuser"
},
{
"ip": "10.10.10.124",
"user": "root",
"os": "ubuntu",
"authMethod": "genericuser"
}
]
}
Before starting modify setup.json and config/.env files.
[root@tenable-5cfxx56r nessus-agent-opmanager]# cat config/.env
export username="installeruser"
export password="MySecretPassword^^"
Step 1: Setup and test configuration file
opctl -showconfig
opctl -testconfig
__1: Agent is not working properly on RHEL systems: Error: [info] [agent] Failed to open global database Solution: Disable Selinux