LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-08-2019, 09:35 AM   #1
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 85

Rep: Reputation: 16
Question lpstat error: add '/version=1.1' to server name.


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,

Elliot
 
Old 10-08-2019, 10:27 AM   #2
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 85

Original Poster
Rep: Reputation: 16
Turns out that error was a red herring!
In fact, we'd changed the hostname (in Centreon) of one of the ERP servers (to an alias), and CUPS was denying access due to that (despite the error being misleading).

I updated the the ERP server's cupsd.conf file to include 'ServerAlias *', and the issue is now resolved!
 
  


Reply

Tags
centos, cups


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LPSTAT -- truncates file name... :( DennisC31 AIX 0 01-12-2009 09:48 AM
lpstat hang sstong Linux - Networking 0 10-28-2004 07:50 PM
lpstat hang sstong Linux - Software 2 10-28-2004 07:47 PM
lpstat hang on redhat es 3.0 sstong Linux - Enterprise 1 10-28-2004 11:19 AM
lpstat hang sstong Linux - General 0 10-28-2004 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration