From c14389baf235be63aad15a8dcd378bcf0f367693 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 3 Jun 2024 17:12:12 +0200 Subject: [PATCH] net-mgmt/net-snmp - add xmlrpxc section (#4022) some people seem to like xmlrpc syncs which can also be used for partial restores --- .../net-snmp/src/etc/inc/plugins.inc.d/netsnmp.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/net-mgmt/net-snmp/src/etc/inc/plugins.inc.d/netsnmp.inc b/net-mgmt/net-snmp/src/etc/inc/plugins.inc.d/netsnmp.inc index 00a5205f4..4b16e2697 100644 --- a/net-mgmt/net-snmp/src/etc/inc/plugins.inc.d/netsnmp.inc +++ b/net-mgmt/net-snmp/src/etc/inc/plugins.inc.d/netsnmp.inc @@ -32,6 +32,18 @@ function netsnmp_enabled() return (string)$model->enabled == '1'; } +function netsnmp_xmlrpc_sync() +{ + return [ + [ + 'description' => gettext('Netsnmp'), + 'section' => 'OPNsense.netsnmp', + 'services' => ['snmpd'], + 'id' => 'netsnmp' + ] + ]; +} + function netsnmp_services() { $services = array();