Netdata: Difference between revisions
imported>Plate1117 Added info on adding the node. |
imported>Hurricanehrndz mNo edit summary |
||
| Line 24: | Line 24: | ||
== samba == | == samba == | ||
To enable <code>samba</code> plugin | To enable <code>samba</code> plugin additional permissions and configurations will need to be set. | ||
<pre> | |||
<pre> | |||
services.netdata.configDir."python.d.conf" = pkgs.writeText "python.d.conf" '' | services.netdata.configDir."python.d.conf" = pkgs.writeText "python.d.conf" '' | ||
samba: yes | samba: yes | ||
| Line 34: | Line 32: | ||
# add samba and sudo to path of python plugin | # add samba and sudo to path of python plugin | ||
systemd.services.netdata.path = [ | systemd.services.netdata.path = [ pkgs.samba "/run/wrappers" ]; | ||
# permit to run sudo smbstatus -P | # permit to run sudo smbstatus -P | ||
| Line 40: | Line 38: | ||
netdata ALL=(root) NOPASSWD: ${pkgs.samba}/bin/smbstatus | netdata ALL=(root) NOPASSWD: ${pkgs.samba}/bin/smbstatus | ||
''; | ''; | ||
# as documented here : https:// | |||
# | # as documented here : https://github.com/netdata/netdata/blob/master/system/netdata.service.in | ||
systemd.services.netdata.serviceConfig.CapabilityBoundingSet = [" | # review capabilityset above if other plugins are non functional | ||
systemd.services.netdata.serviceConfig.CapabilityBoundingSet = ["CAP_SETGID"];</pre> | |||
# enable profiling | |||
services.samba.extraConfig = '' | |||
smbd profiling level = on | |||
''; | |||