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 <pr_id>`, i.e `./scripts/github-apply 5926`
This commit is contained in:
Michael Heumann
2018-07-29 01:09:54 +02:00
committed by Neil Lathwood
parent 07d0772595
commit 58e331c098

View File

@ -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'`.