Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails
Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails
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
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
Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails
First, lets make sure a date problem did not cause the account to expire:
Does: /etc/cron.allow exist ?
Code: Select all
chage -l apacheCode: Select all
cat /etc/cron.allowFormer 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.
"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.
Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails
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
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
Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails
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.
"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.
Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails
Yes, it has. I restarted it again and attempted the install with the same results.
Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails
Was the CentOS install a minimal one?
Could you post your install.log file from the Nagios XI install in code wraps?
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.
"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.
Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails
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
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.
Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails
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
crontab -u apache nagiosxi/crontab.apache
Re: Clean install of XI 2012r2.2 on CentOS 6.4 32bit fails
Does the apache user have an /etc/shadow entry?
Code: Select all
grep apache /etc/shadowFormer 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.
"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.