about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/collectd.nix
AgeCommit message (Collapse)AuthorFilesLines
2022-08-31nixos/*: automatically convert option descriptionspennae1-1/+1
conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
2022-08-19nixos/*: mark pre-existing markdown descriptions as mdDocpennae1-1/+1
2022-07-30treewide: automatically md-convert option descriptionspennae1-8/+8
the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
2022-04-03nixos/collectd: put extraconfig before pluginsGuillaume Girol1-26/+30
this is necessary to override the global option Interval. If set after the plugins, it has no effect.
2021-12-23nixos/collectd: validate config file syntax at build timeGuillaume Girol1-1/+20
2021-12-05nixos/collectd: add missing groupBjørn Forsman1-0/+5
While upgrading my NixOS system I was greeted by this error: error: Failed assertions: - users.users.collectd.group is unset. This used to default to nogroup, but this is unsafe. For example you can create a group for this user with: users.users.collectd.group = "collectd"; users.groups.collectd = {}; Let's fix it.
2021-11-08nixos/collectd: give plugins option a mergeable typeAstro1-2/+2
2021-10-04nixos/doc: clean up defaults and examplesNaïm Favier1-1/+1
2020-01-06treewide: use attrs instead of list for types.loaOf optionsrnhmjoj1-3/+4
2019-11-01treewide: Switch to system users (#71055)Silvan Mosberger1-0/+1
treewide: Switch to system users
2019-10-20nixos/collectd: add option buildMinimalPackageAstro1-2/+19
2019-10-20nixos/collectd: add plugin configAstro1-1/+17
2019-10-12treewide: Switch to system usersJanne Heß1-0/+1
2019-04-13nixos/collectd: replace deprecated usage of PermissionsStartOnlyAaron Andersen1-7/+4
see https://github.com/NixOS/nixpkgs/issues/53852
2019-01-26nixos/collectd: restart on failurevolth1-0/+2
`collectd' might fail because of a failure in any of numerous plugins. For example `virt' plugin sometimes fails if `collectd' is started before `libvirtd'
2018-06-30nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink1-1/+1
2017-06-30collectd service: removed insecure AmbientCapabilitiesVolth1-1/+0
2017-06-30collectd service: minor refactoringVolth1-29/+8
* removed pid-file support, it is needless to run collectd as systemd service * removed static user id, as all the files reowned on the service start * added ambient capabilities for ping and smart (hdd health) functions
2017-04-11treewide: use boolToString functionFranz Pletz1-1/+1
2016-12-16collectd service: change /var/lib/collectd perms: 700 -> 755Bjørn Forsman1-1/+2
The collectd service runs as an unprivileged user by default, so it does not leak more information to its data directory than any user can obtain elsewhere by other means. If people are running it as root and are worried about information leak, we can add collectd group and set perms to 750. CC @offlinehacker. Fixes #21198.
2016-11-24nixos/collectd: Fix syntax error on some hostnames. (#20694)Corbin Simpson1-1/+1
Without this, hostnames that e.g. end in digits will cause syntax errors for collectd.
2016-02-28nixos/collectd: Fix package optionFranz Pletz1-1/+1
Commit ed979124cad7596de539188e86664b3784c363ca was missing some code.
2016-02-18nixos/collectd: add defaultText to package optionBjørn Forsman1-0/+1
CC @fpletz
2016-02-18collectd service: Add option packageFranz Pletz1-0/+8
2014-09-17collectd: add pidFile option, change default pid to /var/run/collectd.pidJaka Hudoklin1-4/+16
2014-09-17nixos: add collectd moduleJaka Hudoklin1-0/+104