Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
kinnema
Posts: 28
Joined: Thu Aug 25, 2011 2:27 pm

Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails

Post by kinnema »

Hi,

I'm trying to do a clean install of XI 2012r2.2 on a CentOS 6.4 32bit machine, but failing on the C-cronjobs script with the following message:

Permission denied
You (apache) are not allowed to access to (crontab) because of pam configuration

Any idea, what I need to change in regard to apache, cron, or pam to fix this?

Thanks,
Tony
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails

Post by abrist »

First, lets make sure a date problem did not cause the account to expire:

Code: Select all

chage -l apache
Does: /etc/cron.allow exist ?

Code: Select all

cat /etc/cron.allow
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
kinnema
Posts: 28
Joined: Thu Aug 25, 2011 2:27 pm

Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails

Post by kinnema »

These look good I believe:

chage -l apache
Last password change : Jul 31, 2013
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7

cat /etc/cron.allow
cat: /etc/cron.allow: No such file or directory
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails

Post by abrist »

Has apache been restarted since the password change 12 days ago?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
kinnema
Posts: 28
Joined: Thu Aug 25, 2011 2:27 pm

Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails

Post by kinnema »

Yes, it has. I restarted it again and attempted the install with the same results.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails

Post by abrist »

Was the CentOS install a minimal one?
Could you post your install.log file from the Nagios XI install in code wraps?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
kinnema
Posts: 28
Joined: Thu Aug 25, 2011 2:27 pm

Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails

Post by kinnema »

I can't post the whole log, because it's too many characters. Here's the entry from the latest attempt:

Code: Select all

Nagios XI Installation Log
==========================
DATE: Mon Aug 12 09:02:12 EDT 2013

DISTRO INFO:
CentOS
6.4
i686

THIS IS AN UPGRADE!

OLD VERSION:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

INSTALLING:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

Yum already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run 'yum update'
Users/groups already configured - skipping.
Database servers already initialized - skipping.
/etc/services already updated - skipping.
sudoers already configured - skipping.
Firewall rules already configured - skipping.
Step completed OK
SELinux already configured - skipping.
Database backups already configured - skipping.
PHP limits already configured - skipping.
Sourceguardian already configured - skipping.
MRTG already configured - skipping.
Step completed OK
PHP timezone already configured - skipping.
Subcomponents already configured - skipping.
Nagios XI base files already installed - skipping.

Permission denied
You (apache) are not allowed to access to (crontab) because of pam configuration.
Nagios XI Installation Log
==========================
DATE: Mon Aug 12 10:49:29 EDT 2013

DISTRO INFO:
CentOS
6.4
i686

THIS IS AN UPGRADE!

OLD VERSION:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

INSTALLING:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

Yum already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run 'yum update'
Users/groups already configured - skipping.
Database servers already initialized - skipping.
/etc/services already updated - skipping.
sudoers already configured - skipping.
Firewall rules already configured - skipping.
Step completed OK
SELinux already configured - skipping.
Database backups already configured - skipping.
PHP limits already configured - skipping.
Sourceguardian already configured - skipping.
MRTG already configured - skipping.
Step completed OK
PHP timezone already configured - skipping.
Subcomponents already configured - skipping.
Nagios XI base files already installed - skipping.

Permission denied
You (apache) are not allowed to access to (crontab) because of pam configuration.
Nagios XI Installation Log
==========================
DATE: Mon Aug 12 11:00:13 EDT 2013

DISTRO INFO:
CentOS
6.4
i686

THIS IS AN UPGRADE!

OLD VERSION:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

INSTALLING:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

Yum already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run 'yum update'
Users/groups already configured - skipping.
Database servers already initialized - skipping.
/etc/services already updated - skipping.
sudoers already configured - skipping.
Firewall rules already configured - skipping.
Step completed OK
SELinux already configured - skipping.
Database backups already configured - skipping.
PHP limits already configured - skipping.
Sourceguardian already configured - skipping.
MRTG already configured - skipping.
Step completed OK
PHP timezone already configured - skipping.
Subcomponents already configured - skipping.
Nagios XI base files already installed - skipping.

Permission denied
You (apache) are not allowed to access to (crontab) because of pam configuration.
Nagios XI Installation Log
==========================
DATE: Mon Aug 12 11:07:21 EDT 2013

DISTRO INFO:
CentOS
6.4
i686

THIS IS AN UPGRADE!

OLD VERSION:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

INSTALLING:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

Yum already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run 'yum update'
Users/groups already configured - skipping.
Database servers already initialized - skipping.
/etc/services already updated - skipping.
sudoers already configured - skipping.
Firewall rules already configured - skipping.
Step completed OK
SELinux already configured - skipping.
Database backups already configured - skipping.
PHP limits already configured - skipping.
Sourceguardian already configured - skipping.
MRTG already configured - skipping.
Step completed OK
PHP timezone already configured - skipping.
Subcomponents already configured - skipping.
Nagios XI base files already installed - skipping.

Permission denied
You (apache) are not allowed to access to (crontab) because of pam configuration.
Nagios XI Installation Log
==========================
DATE: Mon Aug 12 11:10:44 EDT 2013

DISTRO INFO:
CentOS
6.4
i686

THIS IS AN UPGRADE!

OLD VERSION:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

INSTALLING:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

Yum already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run 'yum update'
Users/groups already configured - skipping.
Database servers already initialized - skipping.
/etc/services already updated - skipping.
sudoers already configured - skipping.
Firewall rules already configured - skipping.
Step completed OK
SELinux already configured - skipping.
Database backups already configured - skipping.
PHP limits already configured - skipping.
Sourceguardian already configured - skipping.
MRTG already configured - skipping.
Step completed OK
PHP timezone already configured - skipping.
Subcomponents already configured - skipping.
Nagios XI base files already installed - skipping.

Permission denied
You (apache) are not allowed to access to (crontab) because of pam configuration.
Nagios XI Installation Log
==========================
DATE: Mon Aug 12 12:02:30 EDT 2013

DISTRO INFO:
CentOS
6.4
i686

THIS IS AN UPGRADE!

OLD VERSION:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

INSTALLING:
full=2012R2.2
major=2012
minor=R2.2
releasedate=2013-06-05
release=311

Yum already configured - exiting.
Prereqs already installed - skipping...
Note: If you want to update the RPMs installed on this system, run 'yum update'
Users/groups already configured - skipping.
Database servers already initialized - skipping.
/etc/services already updated - skipping.
sudoers already configured - skipping.
Firewall rules already configured - skipping.
Step completed OK
SELinux already configured - skipping.
Database backups already configured - skipping.
PHP limits already configured - skipping.
Sourceguardian already configured - skipping.
MRTG already configured - skipping.
Step completed OK
PHP timezone already configured - skipping.
Subcomponents already configured - skipping.
Nagios XI base files already installed - skipping.

Permission denied
You (apache) are not allowed to access to (crontab) because of pam configuration.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails

Post by sreinhardt »

Are you installing as root? This seems very strange to have it tell you that you are the apache user and are attempting to change cron settings.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
kinnema
Posts: 28
Joined: Thu Aug 25, 2011 2:27 pm

Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails

Post by kinnema »

Yes, I am installing as root. It seems to be getting hung up on this line in C-cronjobs:

crontab -u apache nagiosxi/crontab.apache
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails

Post by abrist »

Does the apache user have an /etc/shadow entry?

Code: Select all

grep apache /etc/shadow
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked