mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
[isp/internode_usage] Add support for host_name
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
parent
c49207419e
commit
e5af569b4f
1 changed files with 16 additions and 0 deletions
|
@ -15,6 +15,19 @@ The ideal usage is also used as an updated warning limit.
|
||||||
env.internode_api_login LOGIN
|
env.internode_api_login LOGIN
|
||||||
env.internode_api_password PASSWORD
|
env.internode_api_password PASSWORD
|
||||||
|
|
||||||
|
You can display the graph on another host (e.g., the actual router) than the
|
||||||
|
one running munin. To do so, first configure the plugin to use a different
|
||||||
|
hostname.
|
||||||
|
|
||||||
|
env.host_name router
|
||||||
|
|
||||||
|
Then configure munin (in /etc/munin/munin-conf or /etc/munin/munin-conf.d), to
|
||||||
|
support a new host.
|
||||||
|
|
||||||
|
[example.net;router]
|
||||||
|
address 127.0.0.1
|
||||||
|
use_node_name no
|
||||||
|
|
||||||
An optional 'env.internode_api_url' can be used, but should not be needed. It
|
An optional 'env.internode_api_url' can be used, but should not be needed. It
|
||||||
will default to https://customer-webtools-api.internode.on.net/api/v1.5.
|
will default to https://customer-webtools-api.internode.on.net/api/v1.5.
|
||||||
|
|
||||||
|
@ -222,6 +235,9 @@ graph_data() {
|
||||||
main() {
|
main() {
|
||||||
case ${1:-} in
|
case ${1:-} in
|
||||||
config)
|
config)
|
||||||
|
if [ ! -z "${host_name:-}" ]; then
|
||||||
|
echo "host_name ${host_name}"
|
||||||
|
fi
|
||||||
graph_config
|
graph_config
|
||||||
graph_config usage
|
graph_config usage
|
||||||
graph_config current
|
graph_config current
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue