new check connections_state #13
Loading…
Reference in New Issue
No description provided.
Delete Branch "check_connections_state"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Script to check if connections are UP, and if so, check whether main connection is correctly used. Also add configuration to use with nrpe and sudo.
Besides the sudo fixes this looks okay.
@ -36,3 +36,4 @@ command[check_smb]=/usr/local/libexec/nagios/check_tcp -H IPLOCALE -p 445
#command[check_ospf6d]=doas /usr/local/libexec/nagios/plugins/check_ospf6d
command[check_ospfd_simple]=sudo /usr/local/libexec/nagios/plugins/check_ospfd_simple
Uses sudo, should probably be doas
I will open a new Pull Request to replace all sudo occurrences with doas
@ -36,3 +36,4 @@ command[check_smb]=/usr/local/libexec/nagios/check_tcp -H IPLOCALE -p 445
#command[check_ospf6d]=doas /usr/local/libexec/nagios/plugins/check_ospf6d
command[check_ospfd_simple]=sudo /usr/local/libexec/nagios/plugins/check_ospfd_simple
command[check_mysql]=/usr/local/libexec/nagios/check_mysql -H 127.0.0.1 -f /etc/nrpe.d/.my.cnf
command[check_connections_state]=sudo /usr/local/libexec/nagios/check_connections_state.sh
Uses sudo, should probably be doas
Besides the sudo fixes this looks okay.
I replaced sudo with doas and improved the script.
WIP: new check connections_stateto new check connections_state