apache cron error after 2012 r1.4

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
david_sloboda
Posts: 33
Joined: Mon Apr 30, 2012 1:26 pm
Location: Burnaby, Canada

apache cron error after 2012 r1.4

Post by david_sloboda »

Red Hat Enterprise Linux Server release 5.8 running Nagios XI 2012 r1.4

I have received ten pairs of messages (20 messages in total) like this:

Code: Select all

From: Apache [mailto:[email protected]] 
Sent: Thursday, January 24, 2013 5:12 PM
To: [email protected]
Subject: Output from your job 18

This account is currently not available.
I am getting these messages in pairs. I got

Code: Select all

Subject: Output from your job 18
Subject: Output from your job 17
both at 17:12 today.

What do these messages mean?
How may I resolve the issue that is causing them?

I found four other posts for 2011 r1.4
including
http://support.nagios.com/forum/viewtop ... 63&p=11146
http://support.nagios.com/forum/viewtop ... 74&p=11118

There's a post by mguthrie » Thu Jun 23, 2011 7:24 am
See our global announcement:
http://support.nagios.com/forum/viewtop ... =16&t=2585
but that topic no longer exists.

Thank you,
David
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: apache cron error after 2012 r1.4

Post by scottwilkerson »

Are you running 2011R1.4 or 2012R1.4?

You mention both in your post...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: apache cron error after 2012 r1.4

Post by mguthrie »

I'm suspicious I know what that is. When changes and logins happen to the CCM, the log information is also sent to XI's audit log by piping a message through /bin/at, which is the system scheduler. I'm wondering if the apache user on your system doesn't have permission to schedule jobs with at. Let me verify is that's just on your system or if that's a bug.
david_sloboda
Posts: 33
Joined: Mon Apr 30, 2012 1:26 pm
Location: Burnaby, Canada

Re: apache cron error after 2012 r1.4

Post by david_sloboda »

I am running 2012R1.4


When searching for a fix in this forum, I found only references to 2011R1.4 in previous forum posts.
Thank you,
David Sloboda
david_sloboda
Posts: 33
Joined: Mon Apr 30, 2012 1:26 pm
Location: Burnaby, Canada

Re: apache cron error after 2012 r1.4

Post by david_sloboda »

mguthrie:

Your analysis would explain what I see. I notice a correlation: I make an edit through the new CCM, then shortly later the messages show up.

The apache user on my system looks like this:

Code: Select all

root@bby1nms01 ~# grep apache /etc/passwd
apache:x:48:48:Apache:/var/www:/sbin/nologin
root@bby1nms01 ~#
Thank you,
David Sloboda
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: apache cron error after 2012 r1.4

Post by mguthrie »

Fixed in SVN for the 1.5 release :)
david_sloboda
Posts: 33
Joined: Mon Apr 30, 2012 1:26 pm
Location: Burnaby, Canada

Re: apache cron error after 2012 r1.4

Post by david_sloboda »

Great to hear, thank you.
Locked