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

How to install agent ? #76

Open
tabtab-ops opened this issue Feb 14, 2022 · 3 comments
Open

How to install agent ? #76

tabtab-ops opened this issue Feb 14, 2022 · 3 comments

Comments

@tabtab-ops
Copy link

Hello everyone,
I need to scan a remote network (not the local network where the "main" phpipam server is installed) and to collect the results in the "main" phpipam server.
To do this, if I understood, I need to use "phpipam-agent".
Is this functionnality needs to be installed in addition of a phpipam installation ?
How the collect works ? Where must I declare the remote secondary phpipam ?

Sorry, I don't found any reliable documentation...
Thanks
Nicolas

@fulax
Copy link

fulax commented Apr 22, 2022

I just did it, and it requires several steps:

  1. Follow the README to clone this repository on a host on the remote network
  2. Create a dedicated SQL user on your current phpipam mysql server with the GRANTS in the README.
  3. Copy the config.dist.php in config.php (same directory), adjust the mysql configuration for your server.
  4. Go to your current phpipam installation, in the Administration Menu > scan agents, create a new mysql agent. Copy the agent key and put in the config.php on the new agent.
  5. Test if the configuration works by running ./index.php update it should report nothing when the configuration is OK
  6. Edit the remote networks to set this new agent as scan agent.

@k4lli
Copy link

k4lli commented Feb 13, 2023

I just did it, and it requires several steps:

  1. Follow the README to clone this repository on a host on the remote network
  2. Create a dedicated SQL user on your current phpipam mysql server with the GRANTS in the README.
  3. Copy the config.dist.php in config.php (same directory), adjust the mysql configuration for your server.
  4. Go to your current phpipam installation, in the Administration Menu > scan agents, create a new mysql agent. Copy the agent key and put in the config.php on the new agent.
  5. Test if the configuration works by running ./index.php update it should report nothing when the configuration is OK
  6. Edit the remote networks to set this new agent as scan agent.

could we add this to the repo-readme please?

@rimvydukas
Copy link

I just did it, and it requires several steps:
3. Copy the config.dist.php in config.php (same directory), adjust the mysql configuration for your server.
5. Test if the configuration works by running ./index.php update it should report nothing when the configuration is OK
6. Edit the remote networks to set this new agent as scan agent.

Do I understand this right that remote scan agent needs to have php installed? What minimal packages need to be installed?

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

4 participants