[monitoring-plugins] Add comment to make the purpose of the nickname ...

Sven Nierlein git at monitoring-plugins.org
Wed Oct 20 11:20:12 CEST 2021


    Module: monitoring-plugins
    Branch: master
    Commit: 03028d23b6c59bcb4000bc70209593afd798dfe3
    Author: Lorenz Kästle <lorenz.kaestle at netways.de>
 Committer: Sven Nierlein <sven at 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 : ";
 	



More information about the Commits mailing list