Documentation typos (#14099)

* Update Templates.md

withing > within

* Update index.md

Small typos correction

* Update Performance.md

Typos/Rewording

* Update Performance.md
This commit is contained in:
wrongecho
2022-07-09 15:32:59 +01:00
committed by GitHub
parent a598b52fee
commit 060c87c535
3 changed files with 12 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ Output:
## Input
Input to the API is done in three different ways, sometimes a
combination two or three of these.
combination of two or three of these.
- Passing parameters via the api route. For example when obtaining a
devices details you will pass the hostname of the device in the route: `/api/v0/devices/:hostname`.
@@ -62,9 +62,9 @@ curl -X POST -d '{"hostname":"localhost.localdomain","version":"v1","community":
Output from the API currently is via two output types:
- JSON Most API responses will output json. As show in the example for
- JSON: Most API responses will output json. As shown in the example for
calling the API endpoint.
- PNG This is for when the request is for an image such as a graph for a switch port.
- PNG: This is for when the request is for an image such as a graph for a switch port.
## Endpoint Categories

View File

@@ -294,7 +294,7 @@ $config['allow_unauth_graphs'] = true;
## Using models for optional data
If some value does not exist withing the `$faults[]`-array, you may
If some value does not exist within the `$faults[]`-array, you may
query fields from the database using Laravel models. You may use
models to query additional values and use them on the template by
placing the model and the value to search for within the braces. For

View File

@@ -108,13 +108,13 @@ quick the icmp packet is returned.
## Optimise poller-wrapper
The default 16 threads that `poller-wrapper.py` runs as isn't
necessarily the optimal number. A general rule of thumb is 2 threads
per core but we suggest that you play around with lowering /
increasing the number until you get the optimal value. **Note** KEEP
in MIND that this doesn't always help, it depends on your system and
CPU. So be careful. This can be changed by going to the cron job for
librenms. Usually in `/etc/cron.d/librenms` and changing the "16"
`poller-wrapper.py` defaults to using 16 threads, this isn't necessarily
optimal. A general rule of thumb is 2 threads per core but we suggest
that you play around with lowering / increasing the number until you
get the optimal value. **Note** KEEP in MIND that this doesn't
always help, it depends on your system and CPU. So be careful.
This can be changed by going to the cron job for librenms.
Usually in `/etc/cron.d/librenms` and changing the "16"
```
*/5 * * * * librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16
@@ -170,7 +170,7 @@ whatever web server you use:
For Nginx (1.9.5 and above) change `listen 443 ssl;` to `listen 443
ssl http2;` in the Virtualhost config.
For Apache (2.4.17 an above) set `Protocols h2 http/1.1` in the Virtualhost config.
For Apache (2.4.17 and above) set `Protocols h2 http/1.1` in the Virtualhost config.
## PHP-opcache