diff options
author | Lorenz Kästle <lorenz.kaestle@netways.de> | 2021-10-18 10:41:44 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2021-10-20 11:14:44 +0200 |
commit | ead405515fb4bf84ce18d2fe3f621058f09a8aa2 (patch) | |
tree | 53eb525d3aa2e38e9626572c7e975342836715ac /plugins-scripts | |
parent | 2f80d55b8ed0c539a9141895a226c5fec4ff4c4d (diff) | |
download | monitoring-plugins-ead405515fb4bf84ce18d2fe3f621058f09a8aa2.tar.gz |
Restrict the nickname length of the test user for check_ircd
check_ircd was using the string `ircd` plus the PID as a nickname
for connecting to a IRC network by default.
This caused errors, when the PID was too high and the network
restricted the length of the nickname to 9 characters.
This patch "fixes" this by just cutting it of, if it gets too big.
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-x | plugins-scripts/check_ircd.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_ircd.pl b/plugins-scripts/check_ircd.pl index 22d21c2e..e7ab80c2 100755 --- a/plugins-scripts/check_ircd.pl +++ b/plugins-scripts/check_ircd.pl | |||
@@ -69,7 +69,7 @@ $ENV{'ENV'}=''; | |||
69 | # -----------------------------------------------------------------[ Global ]-- | 69 | # -----------------------------------------------------------------[ Global ]-- |
70 | 70 | ||
71 | $PROGNAME = "check_ircd"; | 71 | $PROGNAME = "check_ircd"; |
72 | my $NICK="ircd$$"; | 72 | my $NICK="ircd" . $$ % 10000; |
73 | my $USER_INFO="monitor localhost localhost : "; | 73 | my $USER_INFO="monitor localhost localhost : "; |
74 | 74 | ||
75 | # -------------------------------------------------------------[ connection ]-- | 75 | # -------------------------------------------------------------[ connection ]-- |