summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_ircd.pl
diff options
context:
space:
mode:
authorLorenz Kästle <lorenz.kaestle@netways.de>2021-10-18 13:16:10 +0200
committerSven Nierlein <sven@nierlein.org>2021-10-20 11:14:44 +0200
commit03028d23b6c59bcb4000bc70209593afd798dfe3 (patch)
treefcd50ac344ad8dbb0b04799805327cab31a10236 /plugins-scripts/check_ircd.pl
parentead405515fb4bf84ce18d2fe3f621058f09a8aa2 (diff)
downloadmonitoring-plugins-03028d23b6c59bcb4000bc70209593afd798dfe3.tar.gz
Add comment to make the purpose of the nickname fix more obvious
Diffstat (limited to 'plugins-scripts/check_ircd.pl')
-rwxr-xr-xplugins-scripts/check_ircd.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins-scripts/check_ircd.pl b/plugins-scripts/check_ircd.pl
index e7ab80c2..d869ae7b 100755
--- a/plugins-scripts/check_ircd.pl
+++ b/plugins-scripts/check_ircd.pl
@@ -69,6 +69,8 @@ $ENV{'ENV'}='';
69# -----------------------------------------------------------------[ Global ]-- 69# -----------------------------------------------------------------[ Global ]--
70 70
71$PROGNAME = "check_ircd"; 71$PROGNAME = "check_ircd";
72# nickname shouldn't be longer than 9 chars, this might happen with large PIDs
73# To prevent this, we cut of the part over 10000
72my $NICK="ircd" . $$ % 10000; 74my $NICK="ircd" . $$ % 10000;
73my $USER_INFO="monitor localhost localhost : "; 75my $USER_INFO="monitor localhost localhost : ";
74 76