diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-08-11 20:56:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 20:56:57 +0100 |
commit | 142ace2a16fc9d2a0291db1ff27676a4691c1562 (patch) | |
tree | 9aea67faccfd7d741204b878d1cbaf05ef30c860 /interface-definitions | |
parent | f8b60fff531e4e8cfe1bba99652343b0680f98ad (diff) | |
parent | 71148df948b95d9b5bcc1212d4ae29ad1215d182 (diff) | |
download | vyos-1x-142ace2a16fc9d2a0291db1ff27676a4691c1562.tar.gz vyos-1x-142ace2a16fc9d2a0291db1ff27676a4691c1562.zip |
Merge pull request #2148 from sever-sever/T5448
T5448: Move zabbix-agent to node monitoring
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/service-monitoring-zabbix-agent.xml.in | 184 | ||||
-rw-r--r-- | interface-definitions/service-zabbix-agent.xml.in | 181 |
2 files changed, 184 insertions, 181 deletions
diff --git a/interface-definitions/service-monitoring-zabbix-agent.xml.in b/interface-definitions/service-monitoring-zabbix-agent.xml.in new file mode 100644 index 000000000..cfeb02ce0 --- /dev/null +++ b/interface-definitions/service-monitoring-zabbix-agent.xml.in @@ -0,0 +1,184 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="service"> + <children> + <node name="monitoring"> + <children> + <node name="zabbix-agent" owner="${vyos_conf_scripts_dir}/service_monitoring_zabbix-agent.py"> + <properties> + <help>Zabbix-agent settings</help> + </properties> + <children> + <leafNode name="directory"> + <properties> + <help>Folder containing individual Zabbix-agent configuration files</help> + <constraint> + <validator name="file-path" argument="--directory"/> + </constraint> + </properties> + </leafNode> + <node name="limits"> + <properties> + <help>Limit settings</help> + </properties> + <children> + <leafNode name="buffer-flush-interval"> + <properties> + <help>Do not keep data longer than N seconds in buffer</help> + <valueHelp> + <format>u32:1-3600</format> + <description>Seconds</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-3600"/> + </constraint> + <constraintErrorMessage>buffer-flush-interval must be between 1 and 3600 seconds</constraintErrorMessage> + </properties> + <defaultValue>5</defaultValue> + </leafNode> + <leafNode name="buffer-size"> + <properties> + <help>Maximum number of values in a memory buffer</help> + <valueHelp> + <format>u32:2-65535</format> + <description>Maximum number of values in a memory buffer</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 2-65535"/> + </constraint> + <constraintErrorMessage>Buffer-size must be between 2 and 65535</constraintErrorMessage> + </properties> + <defaultValue>100</defaultValue> + </leafNode> + </children> + </node> + <node name="log"> + <properties> + <help>Log settings</help> + </properties> + <children> + <leafNode name="debug-level"> + <properties> + <help>Debug level</help> + <completionHelp> + <list>basic critical error warning debug extended-debug</list> + </completionHelp> + <valueHelp> + <format>basic</format> + <description>Basic information</description> + </valueHelp> + <valueHelp> + <format>critical</format> + <description>Critical information</description> + </valueHelp> + <valueHelp> + <format>error</format> + <description>Error information</description> + </valueHelp> + <valueHelp> + <format>warning</format> + <description>Warnings</description> + </valueHelp> + <valueHelp> + <format>debug</format> + <description>Debug information</description> + </valueHelp> + <valueHelp> + <format>extended-debug</format> + <description>Extended debug information</description> + </valueHelp> + <constraint> + <regex>(basic|critical|error|warning|debug|extended-debug)</regex> + </constraint> + </properties> + <defaultValue>warning</defaultValue> + </leafNode> + <leafNode name="remote-commands"> + <properties> + <help>Enable logging of executed shell commands as warnings</help> + <valueless/> + </properties> + </leafNode> + <leafNode name="size"> + <properties> + <help>Log file size in megabytes</help> + <valueHelp> + <format>u32:0-1024</format> + <description>Megabytes</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 0-1024"/> + </constraint> + <constraintErrorMessage>Size must be between 0 and 1024 Megabytes</constraintErrorMessage> + </properties> + <defaultValue>0</defaultValue> + </leafNode> + </children> + </node> + #include <include/listen-address.xml.i> + <leafNode name="listen-address"> + <defaultValue>0.0.0.0</defaultValue> + </leafNode> + #include <include/port-number.xml.i> + <leafNode name="port"> + <defaultValue>10050</defaultValue> + </leafNode> + <leafNode name="server"> + <properties> + <help>Remote server to connect to</help> + <valueHelp> + <format>ipv4</format> + <description>Server IPv4 address</description> + </valueHelp> + <valueHelp> + <format>ipv6</format> + <description>Server IPv6 address</description> + </valueHelp> + <valueHelp> + <format>hostname</format> + <description>Server hostname/FQDN</description> + </valueHelp> + <multi/> + </properties> + </leafNode> + <tagNode name="server-active"> + <properties> + <help>Remote server address to get active checks from</help> + <valueHelp> + <format>ipv4</format> + <description>Server IPv4 address</description> + </valueHelp> + <valueHelp> + <format>ipv6</format> + <description>Server IPv6 address</description> + </valueHelp> + <valueHelp> + <format>hostname</format> + <description>Server hostname/FQDN</description> + </valueHelp> + </properties> + <children> + #include <include/port-number.xml.i> + </children> + </tagNode> + <leafNode name="timeout"> + <properties> + <help>Item processing timeout in seconds</help> + <valueHelp> + <format>u32:1-30</format> + <description>Item processing timeout</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-30"/> + </constraint> + <constraintErrorMessage>Timeout must be between 1 and 30 seconds</constraintErrorMessage> + </properties> + <defaultValue>3</defaultValue> + </leafNode> + </children> + </node> + </children> + </node> + </children> + </node> +</interfaceDefinition> diff --git a/interface-definitions/service-zabbix-agent.xml.in b/interface-definitions/service-zabbix-agent.xml.in deleted file mode 100644 index 1f93790f5..000000000 --- a/interface-definitions/service-zabbix-agent.xml.in +++ /dev/null @@ -1,181 +0,0 @@ -<?xml version="1.0"?> -<interfaceDefinition> - <node name="service"> - <children> - <node name="zabbix-agent" owner="${vyos_conf_scripts_dir}/service_zabbix_agent.py"> - <properties> - <help>Zabbix-agent settings</help> - <priority>380</priority> - </properties> - <children> - <leafNode name="directory"> - <properties> - <help>Folder containing individual Zabbix-agent configuration files</help> - <constraint> - <validator name="file-path" argument="--directory"/> - </constraint> - </properties> - </leafNode> - <node name="limits"> - <properties> - <help>Limit settings</help> - </properties> - <children> - <leafNode name="buffer-flush-interval"> - <properties> - <help>Do not keep data longer than N seconds in buffer</help> - <valueHelp> - <format>u32:1-3600</format> - <description>Seconds</description> - </valueHelp> - <constraint> - <validator name="numeric" argument="--range 1-3600"/> - </constraint> - <constraintErrorMessage>buffer-flush-interval must be between 1 and 3600 seconds</constraintErrorMessage> - </properties> - <defaultValue>5</defaultValue> - </leafNode> - <leafNode name="buffer-size"> - <properties> - <help>Maximum number of values in a memory buffer</help> - <valueHelp> - <format>u32:2-65535</format> - <description>Maximum number of values in a memory buffer</description> - </valueHelp> - <constraint> - <validator name="numeric" argument="--range 2-65535"/> - </constraint> - <constraintErrorMessage>Buffer-size must be between 2 and 65535</constraintErrorMessage> - </properties> - <defaultValue>100</defaultValue> - </leafNode> - </children> - </node> - <node name="log"> - <properties> - <help>Log settings</help> - </properties> - <children> - <leafNode name="debug-level"> - <properties> - <help>Debug level</help> - <completionHelp> - <list>basic critical error warning debug extended-debug</list> - </completionHelp> - <valueHelp> - <format>basic</format> - <description>Basic information</description> - </valueHelp> - <valueHelp> - <format>critical</format> - <description>Critical information</description> - </valueHelp> - <valueHelp> - <format>error</format> - <description>Error information</description> - </valueHelp> - <valueHelp> - <format>warning</format> - <description>Warnings</description> - </valueHelp> - <valueHelp> - <format>debug</format> - <description>Debug information</description> - </valueHelp> - <valueHelp> - <format>extended-debug</format> - <description>Extended debug information</description> - </valueHelp> - <constraint> - <regex>(basic|critical|error|warning|debug|extended-debug)</regex> - </constraint> - </properties> - <defaultValue>warning</defaultValue> - </leafNode> - <leafNode name="remote-commands"> - <properties> - <help>Enable logging of executed shell commands as warnings</help> - <valueless/> - </properties> - </leafNode> - <leafNode name="size"> - <properties> - <help>Log file size in megabytes</help> - <valueHelp> - <format>u32:0-1024</format> - <description>Megabytes</description> - </valueHelp> - <constraint> - <validator name="numeric" argument="--range 0-1024"/> - </constraint> - <constraintErrorMessage>Size must be between 0 and 1024 Megabytes</constraintErrorMessage> - </properties> - <defaultValue>0</defaultValue> - </leafNode> - </children> - </node> - #include <include/listen-address.xml.i> - <leafNode name="listen-address"> - <defaultValue>0.0.0.0</defaultValue> - </leafNode> - #include <include/port-number.xml.i> - <leafNode name="port"> - <defaultValue>10050</defaultValue> - </leafNode> - <leafNode name="server"> - <properties> - <help>Remote server to connect to</help> - <valueHelp> - <format>ipv4</format> - <description>Server IPv4 address</description> - </valueHelp> - <valueHelp> - <format>ipv6</format> - <description>Server IPv6 address</description> - </valueHelp> - <valueHelp> - <format>hostname</format> - <description>Server hostname/FQDN</description> - </valueHelp> - <multi/> - </properties> - </leafNode> - <tagNode name="server-active"> - <properties> - <help>Remote server address to get active checks from</help> - <valueHelp> - <format>ipv4</format> - <description>Server IPv4 address</description> - </valueHelp> - <valueHelp> - <format>ipv6</format> - <description>Server IPv6 address</description> - </valueHelp> - <valueHelp> - <format>hostname</format> - <description>Server hostname/FQDN</description> - </valueHelp> - </properties> - <children> - #include <include/port-number.xml.i> - </children> - </tagNode> - <leafNode name="timeout"> - <properties> - <help>Item processing timeout in seconds</help> - <valueHelp> - <format>u32:1-30</format> - <description>Item processing timeout</description> - </valueHelp> - <constraint> - <validator name="numeric" argument="--range 1-30"/> - </constraint> - <constraintErrorMessage>Timeout must be between 1 and 30 seconds</constraintErrorMessage> - </properties> - <defaultValue>3</defaultValue> - </leafNode> - </children> - </node> - </children> - </node> -</interfaceDefinition> |