LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2014, 10:55 AM   #1
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Rep: Reputation: 16
Question lpstat job time inconsistent with CUPS


Hi all,

CUPS v1.4.2 / RHEL6 (2.6.32-358.18.1.el6.x86_64)

I am troubleshooting an incident where a Nagios plugin is complaining about our RHEL6 CUPS having jobs over 3 days old.

I viewed the CUPS job list via the web GUI and see an entry:
Code:
norwich_1-2320765 	file0OWG5O 	root 	91k 	2 	 processing since
Sun 20 Apr 2014 04:41:37 PM BST
Huh? Today is the 21st April, that's not 3 days old - so the plugin is dodgy?

I check lpstat on the server's command line with interesting results:
Code:
[root@db2 cups]# lpstat
norwich_1-2320765       root             93184   Fri 18 Apr 2014 12:41:21 AM BST
The job in the spool directory has two files, one timestamped in accordance with what lpstat reports and one **closer** to the CUPS GUI time (at least the same day!):
Code:
[root@db2 cups]# pwd
/var/spool/cups
[root@db2 cups]# ls -lha *2320765*
-rw------- 1 root lp 753 Apr 20 16:42 c2320765
-rw-r----- 1 root lp 91K Apr 18 00:41 d2320765-001
The server's clock is fine:
Code:
[root@db2 cups]# date
Mon Apr 21 16:44:26 BST 2014
I have Googled for any known bugs but have thus far come up with nothing.
We generally have to jump into the CUPS GUI on quite a regular basis to reprint jobs for users and the time-stamping on these is usually very accurate.

Please can someone more familiar with CUPS explain to me what's going on here? Is it behaving incorrectly, or am I just misunderstanding something?

It actually seems like lpstat and the Nagios plugin are correct, but what's the deal with CUPS GUI reporting it otherwise?

Thank you!

Elliot
 
Old 05-01-2014, 04:07 AM   #2
elliot01
Member
 
Registered: Jun 2009
Location: UK
Distribution: CentOS / RedHat
Posts: 89

Original Poster
Rep: Reputation: 16
I still have yet to be able to fix. No-one has any ideas?

Thanks.
 
  


Reply



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
Inconsistent job run times koullislp Linux - Enterprise 11 01-23-2013 05:14 AM
CUPS ERROR: [Job ???] Request file type is text/plain. (CUPS on ARM architectu abhinit Linux - Software 3 04-22-2011 03:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:37 AM.

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
Open Source Consulting | Domain Registration