[From nobody Wed Nov  4 15:59:04 2026
Received: (at submit) by bugs.debian.org; 11 Feb 2024 17:25:36 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-15.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FOURLA,
 HAS_PACKAGE,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,
 T_SCC_BODY_TEXT_LINE,XMAILER_REPORTBUG autolearn=ham
 autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 54; hammy, 150; neutral, 93; spammy,
 0. spammytokens: hammytokens:0.000-+--sk:taint_o, 0.000-+--sk:TAINT_O,
 0.000-+--sk:taint_u, 0.000-+--sk:TAINT_U, 0.000-+--H*M:reportbug
Return-path: &lt;christian.ospelkaus@iqo.uni-hannover.de&gt;
Received: from mailgate1.uni-hannover.de ([130.75.2.115]:45622)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2)
 (envelope-from &lt;christian.ospelkaus@iqo.uni-hannover.de&gt;)
 id 1rZDaB-002ple-7m
 for submit@bugs.debian.org; Sun, 11 Feb 2024 17:25:36 +0000
Received: from web.iqo.uni-hannover.de (web.iqo.uni-hannover.de
 [130.75.103.217])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mailgate1.uni-hannover.de (Postfix) with ESMTPS id D24F7C027F;
 Sun, 11 Feb 2024 18:20:07 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=uni-hannover.de;
 s=2024all; t=1707672007;
 bh=1jvEuOHUkOplPQ/qDqlvbpAeBdOVOqXa4gc2WsWTkzc=;
 h=From:To:Subject:Date:From;
 b=Fu/J42DhjwNQHg51d+WkRP8aSZzr4WINs4GOpSWI7r19DQEew/zibwhteERMshEzS
 Ivlf6vD1oQKf6Bs3YNP6fWYyao88A7kVT2PVJ6b59Si+WRnpUyyETzyfO/f++5BOD3
 gXxKh4V197bjEi76qD2rikLzQaypo/llErIxRPkY0p+6LdS4yQ3X1NjMc/3YejSgQX
 WEVoKGZjTry5ys6Q0Mt4I4aqm6X32VnHlkvzsYNntORvuCbp8XKq86ypyI+5L8lHBI
 TQJB+P3Ohr6dtCY//smOhJBiTDxcSohddFMKafBAgBKDRZhDpS05I8ONj4YPj0YeDW
 shLlwtI1iEXWQ==
Received: from root by web.iqo.uni-hannover.de with local (Exim 4.96)
 (envelope-from &lt;christian.ospelkaus@iqo.uni-hannover.de&gt;)
 id 1rZDUN-00G0KO-1S; Sun, 11 Feb 2024 18:19:35 +0100
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Christian Ospelkaus &lt;christian.ospelkaus@iqo.uni-hannover.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: monitoring-plugins-common: check_flexlm (monitoring-plugins-standard)
 fails because utils.pm has empty PATH_TO_LMSTAT
Message-ID: &lt;170767197542.3804861.5308654491518456294.reportbug@web.iqo.uni-hannover.de&gt;
X-Mailer: reportbug 12.0.0
Date: Sun, 11 Feb 2024 18:19:35 +0100
X-Virus-Scanned: clamav-milter 0.103.9 at mailgate1
X-Virus-Status: Clean
X-Greylist: delayed 318 seconds by postgrey-1.36 at buxtehude;
 Sun, 11 Feb 2024 17:25:34 UTC
Delivered-To: submit@bugs.debian.org

Package: monitoring-plugins-common
Version: 2.3.3-5+deb12u2
Severity: normal
Tags: patch

Dear Maintainer,

The command check_flexlm from montoring-plugins-standard is useless
because it relies on the setting PATH_TO_LMSTAT from
monitoring-plugins-common, which is unfortunately empty. AFAIK, no Debian 
package provides lmstat. So I suggest setting PATH_TO_LMSTAT to 
/usr/local/bin/lmstat so that somebody who wants to use the plugin can 
provide a symbolic link under /usr/local/bin/lmstat or place the exectutable 
right there. Even if there were a debian package that provided lmstat, the 
mechanism would still allow to make things work... Thanks for considering my 
suggesion. Here is my patch:

--- /usr/lib/nagios/plugins/utils.pm    2024-02-11 17:57:02.238612539 +0100
+++ /usr/lib/nagios/plugins/utils.pm.orig       2024-02-11 17:58:59.337727843 +0100
@@ -19,7 +19,7 @@
 ## updated by autoconf
 $PATH_TO_SUDO    = &quot;/usr/bin/sudo&quot;;
 $PATH_TO_RPCINFO = &quot;/usr/sbin/rpcinfo&quot; ;
-$PATH_TO_LMSTAT  = &quot;/usr/local/bin/lmstat&quot; ;
+$PATH_TO_LMSTAT  = &quot;&quot; ;
 $PATH_TO_SMBCLIENT = &quot;/usr/bin/smbclient&quot; ;
 $PATH_TO_MAILQ   = &quot;/usr/bin/mailq&quot;;
 $PATH_TO_QMAIL_QSTAT = &quot;&quot;;

Best wishes,

Christian

-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-17-amd64 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages monitoring-plugins-common depends on:
ii  libc6  2.36-9+deb12u4
ii  ucf    3.0043+nmu1

monitoring-plugins-common recommends no packages.

Versions of packages monitoring-plugins-common suggests:
ii  icinga2  2.13.6-2

-- no debconf information
]