You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An additional arg, eg --monitor-conns, to monitor not all possible connection but only specified connection. Also the output and perfdata should only present the relevant data.
For example I ve configured a VPN-GW with two Site-to-Site-Peers and a couple of different Remote-Access-Connections.
I like to monitor each site with a specific Icinga service and not the remote access connections.
eg.
vars.by_ssh["strongswan vpn conns Site XY"] = { by_ssh_command = [ "/usr/local/lib/monitoring/plugins/check_strongswan_conn" ],
by_ssh_arguments = { "--socket=/var/run/charon.vici" = "", "--monitor-conns" = "S2S_SITE-XY_IKE2-AUTHN-PUBKEY" } }
Additional context
parser.add_argument(
'--monitor-conns', dest='MONITOR_CONNECTION_KEYS', action='extend', nargs='+', type=str, default=DEFAULT_MONITOR_CONNECTION_KEYS,
help='Connections to be monitored.'
)
... for key in monitor_connection_keys: ...
The text was updated successfully, but these errors were encountered:
markuslf
changed the title
[strongswan-connection: ] Monitor only certain connections
strongswan-connection: Monitor only certain connections
Mar 29, 2024
Describe the solution you'd like
An additional arg, eg --monitor-conns, to monitor not all possible connection but only specified connection. Also the output and perfdata should only present the relevant data.
For example I ve configured a VPN-GW with two Site-to-Site-Peers and a couple of different Remote-Access-Connections.
I like to monitor each site with a specific Icinga service and not the remote access connections.
eg.
vars.by_ssh["strongswan vpn conns Site XY"] = { by_ssh_command = [ "/usr/local/lib/monitoring/plugins/check_strongswan_conn" ],
by_ssh_arguments = { "--socket=/var/run/charon.vici" = "", "--monitor-conns" = "S2S_SITE-XY_IKE2-AUTHN-PUBKEY" } }
Additional context
... for key in monitor_connection_keys: ...
The text was updated successfully, but these errors were encountered: