Merge branch 'master' into merge-jitter

This commit is contained in:
datamuc 2023-10-04 14:02:25 +02:00 committed by GitHub
commit 9280b0eee2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 334 additions and 342 deletions

View file

@ -21,7 +21,7 @@ jobs:
uses: codespell-project/actions-codespell@v2
with:
skip: "./.git,./.gitignore,./ABOUT-NLS,*.po,./gl,./po,./tools/squid.conf,./build-aux/ltmain.sh"
ignore_words_list: allright,gord,didi,hda,nd,alis,clen,scrit,ser,fot,te,parm,isnt,consol,oneliners
ignore_words_list: allright,gord,didi,hda,nd,alis,clen,scrit,ser,fot,te,parm,isnt,consol,oneliners,esponse
check_filenames: true
check_hidden: true
# super-linter:

View file

@ -13,7 +13,7 @@ dnl np_mysql_libs = flags for libs, from mysql_config --libs
dnl np_mysql_cflags = flags for cflags, from mysql_config --cflags
dnl Also sets in config.h:
dnl HAVE_MYSQLCLIENT
dnl Copile your code with:
dnl Compile your code with:
dnl $(CC) $(np_mysql_include) code.c $(np_mysql_libs)
AC_DEFUN([np_mysqlclient],

File diff suppressed because it is too large Load diff

View file

@ -226,7 +226,8 @@ if (/\s*(\d*) blocks of size (\d*)\. (\d*) blocks available/) {
my ($total_bytes) = $1 * $2;
my ($occupied_bytes) = $1 * $2 - $avail_bytes;
my ($avail) = $avail_bytes/1024;
my ($capper) = int(($3/$1)*100);
my ($capper);
if ($1!=0) { $capper = int(($3/$1)*100) } else { $capper=100 };
my ($mountpt) = "\\\\$host\\$share";
# TODO : why is the kB the standard unit for args ?

View file

@ -486,7 +486,7 @@ double offset_request(const char *host, int *status){
}
/* cleanup */
/* FIXME: Not closing the socket to avoid re-use of the local port
/* FIXME: Not closing the socket to avoid reuse of the local port
* which can cause old NTP packets to be read instead of NTP control
* packets in jitter_request(). THERE MUST BE ANOTHER WAY...
* for(j=0; j<num_hosts; j++){ close(socklist[j]); } */

View file

@ -25,7 +25,7 @@ $t = NPTest->testCmd( "./check_imap $host_tcp_imap -p 143 -wt 9 -ct 9 -to 10 -e
cmp_ok( $t->return_code, '==', 0, "Check old parameter options" );
$t = NPTest->testCmd( "./check_imap $host_nonresponsive" );
cmp_ok( $t->return_code, '==', 2, "Get error with non reponsive host" );
cmp_ok( $t->return_code, '==', 2, "Get error with non responsive host" );
$t = NPTest->testCmd( "./check_imap $hostname_invalid" );
cmp_ok( $t->return_code, '==', 2, "Invalid hostname" );

View file

@ -2,7 +2,7 @@
#
# Logged in Users Tests via check_users
#
# Trick: This ckeck requires at least 1 user logged in. These commands should
# Trick: This check requires at least 1 user logged in. These commands should
# leave a session open forever in the background:
#
# $ ssh -tt localhost </dev/null >/dev/null 2>/dev/null &

View file

@ -9,7 +9,7 @@
# Country Name (2 letter code) [AU]:DE
# State or Province Name (full name) [Some-State]:Bavaria
# Locality Name (eg, city) []:Munich
# Organization Name (eg, company) [Internet Widgits Pty Ltd]:Monitoring Plugins
# Organization Name (eg, company) [Internet Widgets Pty Ltd]:Monitoring Plugins
# Organizational Unit Name (eg, section) []:
# Common Name (e.g. server FQDN or YOUR name) []:Monitoring Plugins
# Email Address []:devel@monitoring-plugins.org