Skip to content

Snmpd

services.snmpd.configFile

Path to the snmpd.conf file. By default, if {option}configText is set, a config file will be automatically generated.

Type: path

Default

The value of {option}configText.

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

services.snmpd.configText

The contents of the snmpd.conf. If the {option}configFile option is set, this value will be ignored.

Note that the contents of this option will be added to the Nix store as world-readable plain text, {option}configFile can be used in addition to a secret management tool to protect sensitive data.

Type: strings concatenated with "\n"

Default

""

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

services.snmpd.enable

Whether to enable snmpd. Type: boolean

Default

false

Example

true

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

services.snmpd.listenAddress

The address to listen on for SNMP and AgentX messages.

Type: string

Default

"0.0.0.0"

Example

"127.0.0.1"

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

services.snmpd.openFirewall

Open port in firewall for snmpd.

Type: boolean

Default

false

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

services.snmpd.package

The net-snmp package to use. Type: package

Default

pkgs.net-snmp

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

services.snmpd.port

The port to listen on for SNMP and AgentX messages.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

161

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