Article 4S3KW [SOLVED] lpstat error: add '/version=1.1' to server name.

[SOLVED] lpstat error: add '/version=1.1' to server name.

by
elliot01
from LinuxQuestions.org on (#4S3KW)
Hi all,

We have a Centreon/Nagios system (on CentOS7) which runs a check against our ERP servers (RHEL6 & 7) to obtain the current length of the CUPS queues.

The command is effectively 'lpstat -h servername -o /tmp/randomfile'

This has been working sweet for years, but since a 'yum update' (on the Centreon server) a couple of weeks back, the check now fails, with the following error:

lpstat: Error - add '/version=1.1' to server name.

I have looked around for a solution (I don't want to roll the 'yum update' back), but am struggling to find a suitable fix.

Most suggestions are to update my /etc/cups/client.conf file, by adding '/version=1.1' to the ServerName parameter. My Centreon server (the client?) doesn't have this config file. It doesn't even have a cups folder (as CUPS is not installed, or required, on this server).

I can not change anything on the remote linux servers as they are production ERP systems and I don't want to risking shafting anything.

I don't understand why lpstat (or any of the other family of commands) doesn't just allow a switch ( --version ) to enforce the CUPS version.

Can anyone offer any suggestions on how I can get a lpstat to connect to an older CUPS server successfully (i.e.: working around the version=1.1 requirement thing), considering my above restrictions?

Thanks in advance for reading.

Kind regards,

Elliotlatest?d=yIl2AUoC8zA latest?i=-jZLUUY9134:fNJe_JC5_ro:F7zBnMy latest?i=-jZLUUY9134:fNJe_JC5_ro:V_sGLiP latest?d=qj6IDK7rITs latest?i=-jZLUUY9134:fNJe_JC5_ro:gIN9vFw-jZLUUY9134
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments