[Pkg-nagios-devel] [Bug]: Re: Bug#800631: check-mk-agent: CUPS printer queues are not detected anymore

Matt Taggart matt at lackof.org
Thu Oct 1 23:42:12 UTC 2015


Ingo Rogalsky writes:
> Package: check-mk-agent
> Version: 1.2.6p12-1~bpo8+1
> Severity: normal
> Tags: patch
> 
> Dear Maintainer,
> 
>    * What led up to the situation?
> 
>      update from 1.2.6p7-1~bpo8+1 -> 1.2.6p12-1~bpo8+1
> 
>    * What was the outcome of this action?
> 
>      The detecting of CUPS printer queues does not work anymore.
> 
> This patch  should fix the issue:
> 
> --- check_mk_agent  2015-10-01 23:08:52.282483902 +0200
> +++ /usr/bin/check_mk_agent 2015-10-01 23:09:42.886927038 +0200
> @@ -420,7 +420,7 @@
>  
>  # Status of CUPS printer queues
>  if type lpstat > /dev/null 2>&1; then
> -    if pgrep -x cups > /dev/null 2>&1; then
> +    if pgrep -x cupsd > /dev/null 2>&1; then
>          # first define a function to check cups
>          function cups_queues () {
>              CPRINTCONF=/etc/cups/printers.conf

Hi,

Thanks for the report. Looks like this regression was introduced in
upstream git commit 53164e7600f28cb43a189dd8e4b1a624a6a5287b as part
of fixing #2504 where the '-x' exact match flag was added to fix
another case.

Upstream maintainers can you fix?

Thanks,

-- 
Matt Taggart
matt at lackof.org



More information about the Pkg-nagios-devel mailing list