From 58e331c098109fe570a5be783748534ee4fb763d Mon Sep 17 00:00:00 2001 From: Michael Heumann Date: Sun, 29 Jul 2018 01:09:54 +0200 Subject: [PATCH] Adds missing hostname parameter to addhost.php (#8961) Just followed the docs after installation and stumbled about this, which caused some irritation. DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [ ] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply `, i.e `./scripts/github-apply 5926` --- doc/Support/Adding-a-Device.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/Support/Adding-a-Device.md b/doc/Support/Adding-a-Device.md index a77b5967f0..3fa54b0f1d 100644 --- a/doc/Support/Adding-a-Device.md +++ b/doc/Support/Adding-a-Device.md @@ -10,13 +10,13 @@ You have two options for adding a new device into LibreNMS. You can add a device Using the command line via ssh you can add a new device by changing to the directory of your LibreNMS install and typing (be sure to put the correct details). ```bash -./addhost.php [community] [v1|v2c] [port] [udp|udp6|tcp|tcp6] +./addhost.php yourhostname [community] [v1|v2c] [port] [udp|udp6|tcp|tcp6] ``` -As an example, if your device is configured to use the community `my_company` using snmp `v2c` then you would enter: +As an example, if your device with the name `mydevice.example.com` is configured to use the community `my_company` using snmp `v2c` then you would enter: ```bash -./addhost.php my_company v2c +./addhost.php mydevice.example.com my_company v2c ``` > Please note that if the community contains special characters such as `$` then you will need to wrap it in `'`. I.e: `'Pa$$w0rd'`.