Skip to content

Ocsinventory agent

services.ocsinventory-agent.enable

Whether to enable OCS Inventory Agent. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/ocsinventory-agent.nix

services.ocsinventory-agent.interval

How often we run the ocsinventory-agent service. Runs by default every daily.

The format is described in {manpage}systemd.time(7).

Type: string

Default

"daily"

Example

"06:00"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/ocsinventory-agent.nix

services.ocsinventory-agent.package

The ocsinventory-agent package to use. Type: package

Default

pkgs.ocsinventory-agent

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/ocsinventory-agent.nix

services.ocsinventory-agent.settings

Configuration for /etc/ocsinventory-agent/ocsinventory-agent.cfg.

Refer to {manpage}ocsinventory-agent(1) for available options.

Type: atom (null, bool, int, float or string)

Default

{ }

Example

{ca = "/etc/ssl/certs/ca-certificates.crt";debug = true;server = "https://ocsinventory.localhost:8080/ocsinventory";tag = "01234567890123";}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/ocsinventory-agent.nix

services.ocsinventory-agent.settings.ca

Path to CA certificates file in PEM format, for server SSL certificate validation.

Type: path

Default

"/etc/ssl/certs/ca-certificates.crt"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/ocsinventory-agent.nix

services.ocsinventory-agent.settings.debug

Whether to enable debug mode. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/ocsinventory-agent.nix

services.ocsinventory-agent.settings.local

If specified, the OCS Inventory Agent will run in offline mode and the resulting inventory file will be stored in the specified path.

Type: null or path

Default

null

Example

"/var/lib/ocsinventory-agent/reports"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/ocsinventory-agent.nix

services.ocsinventory-agent.settings.server

The URI of the OCS Inventory server where to send the inventory file.

This option is ignored if {option}services.ocsinventory-agent.settings.local is set.

Type: null or string

Default

null

Example

"https://ocsinventory.localhost:8080/ocsinventory"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/ocsinventory-agent.nix

services.ocsinventory-agent.settings.tag

Tag for the generated inventory. Type: null or string

Default

null

Example

"01234567890123"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/ocsinventory-agent.nix