Module: monitoring-plugins Branch: master Commit: 03028d23b6c59bcb4000bc70209593afd798dfe3 Author: Lorenz Kästle <lorenz.kaes...@netways.de> Committer: Sven Nierlein <s...@nierlein.org> Date: Mon Oct 18 13:16:10 2021 +0200 URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=03028d2
Add comment to make the purpose of the nickname fix more obvious --- plugins-scripts/check_ircd.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins-scripts/check_ircd.pl b/plugins-scripts/check_ircd.pl index e7ab80c..d869ae7 100755 --- a/plugins-scripts/check_ircd.pl +++ b/plugins-scripts/check_ircd.pl @@ -69,6 +69,8 @@ $ENV{'ENV'}=''; # -----------------------------------------------------------------[ Global ]-- $PROGNAME = "check_ircd"; +# nickname shouldn't be longer than 9 chars, this might happen with large PIDs +# To prevent this, we cut of the part over 10000 my $NICK="ircd" . $$ % 10000; my $USER_INFO="monitor localhost localhost : ";