mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user