Editing nodes in statistics (collectd)

v7
statistics

(Carlos Almeida) #1

NethServer Version: 7.5
**Module:**statistics

To add new nodes I used:
config setprop collectd PingHosts SITE!, SITE2
signal-event nethserver-collectd-update

How can I list all the nodes and how can I delete nodes from the list?
Thanks


(Mark Verlinde) #2

Welcome Carlos,

to show all properties of a (nethserver) module/service you can use the config show <service> command; is this case

# config show collectd
collectd=service
PingDropRatePercent=30
PingHosts=SITE1,SITE2
status=enabled

an easy way to change PingHosts is simply overwriting them with a new value

# config setprop collectd PingHosts SITE1,SITE3

# config show collectd
collectd=service
    PingDropRatePercent=30
    PingHosts=SITE1,SITE3
    status=enabled

# signal-event nethserver-collectd-update

to remove them overwrite them with a empty value

# config setprop collectd PingHosts ''

# config show collectd
collectd=service
    PingDropRatePercent=30
    PingHosts=
    status=enabled

# signal-event nethserver-collectd-update

Hope this helps


(Carlos Almeida) #3

Thanks for your help.


(Carlos Almeida) #5

As I was colecting ping response from two wrong addresses:

1 - I removed all Sites with the command # config setprop collectd PingHosts ‘’
2 - # config show collectd shows PingHosts empty
3 - # signal-event nethserver-collectd-update

4 - # config setprop collectd PingHosts SITE1,SITE2,SITE3
5 - # signal-event nethserver-collectd-update
6 - # config show collectd shows SITE1,SITE2,SITE3

The graphic panel shows SITE1,SITE2,SITE3 but, in the legend still shows two former sites.

How can the collectd graphic panel be forced to rebuild?
Thanks,


(Filippo Carletti) #6

Graphs are built on-the-fly.
You have to delete data in /var/lib/collectd. I suggest you you to wait a couple of days, there’s a nightly cron job that automatically deletes data which has not been updated.


(Carlos Almeida) #7

I deleteded the rdd files relative to the wrong addresses and it worked perfectly.
Thanks for your help.