Projet

Général

Profil

Révision e5af569b

IDe5af569b4f2c006fbdd58939a9578ed2be1502bd
Parent c4920741
Enfant f6c627bd

Ajouté par Olivier Mehani il y a environ 6 ans

[isp/internode_usage] Add support for host_name

Signed-off-by: Olivier Mehani <>

Voir les différences:

plugins/isp/internode_usage
15 15
    env.internode_api_login LOGIN
16 16
    env.internode_api_password PASSWORD
17 17

  
18
You can display the graph on another host (e.g., the actual router) than the
19
one running munin. To do so, first configure the plugin to use a different
20
hostname.
21

  
22
    env.host_name router
23

  
24
Then configure munin (in /etc/munin/munin-conf or /etc/munin/munin-conf.d), to
25
support a new host.
26

  
27
  [example.net;router]
28
    address 127.0.0.1
29
    use_node_name no
30

  
18 31
An optional 'env.internode_api_url' can be used, but should not be needed.  It
19 32
will default to  https://customer-webtools-api.internode.on.net/api/v1.5.
20 33

  
......
222 235
main() {
223 236
	case ${1:-} in
224 237
		config)
238
			if [ ! -z "${host_name:-}" ]; then
239
				echo "host_name ${host_name}"
240
			fi
225 241
			graph_config
226 242
			graph_config usage
227 243
			graph_config current

Formats disponibles : Unified diff