Search found 9 matches

by dcrites
Mon Jul 31, 2017 2:10 pm
Forum: Nagios XI
Topic: C-cronjobs has apache error???
Replies: 16
Views: 3338

Re: C-cronjobs has apache error???

Yes, the install is trying to create / verify that a crontab can be created by the apache user account as that account is used for certain processes Nagios XI uses. I did find this link below you can look at to see if you can fix the pam permission issue. Take a look at it and see if the solution w...
by dcrites
Mon Jul 31, 2017 12:57 pm
Forum: Nagios XI
Topic: C-cronjobs has apache error???
Replies: 16
Views: 3338

Re: C-cronjobs has apache error???

Backtick is the same as $(...) so I don't see much of a difference. Yes, your script is good enough. Which is how most security issues start. :-) I don't mean to insult you, your intelligence, or your script. I offered an alternative. I leave it to the universe to figure which one's "best"...
by dcrites
Mon Jul 31, 2017 12:37 pm
Forum: Nagios XI
Topic: C-cronjobs has apache error???
Replies: 16
Views: 3338

Re: C-cronjobs has apache error???

Is there no way to install the services required first via yum and then try to install XI? I added code in my wrapper script to make sure all of the ancillary apps were installed -- so MySQL (mariadb) and Apache are already installed and running before the XI install script is run. The problem isn'...
by dcrites
Mon Jul 31, 2017 12:31 pm
Forum: Nagios XI
Topic: C-cronjobs has apache error???
Replies: 16
Views: 3338

Re: C-cronjobs has apache error???

I do not like your script. It makes assumptions. It's also not temp file safe. Will work in all cases where "useradd" exists. Liking my script is immaterial -- anything that actually does the job is good enough. Style is a personal thing. For instance, I haven't used the backtic version o...
by dcrites
Fri Jul 28, 2017 4:40 pm
Forum: Nagios XI
Topic: C-cronjobs has apache error???
Replies: 16
Views: 3338

Re: C-cronjobs has apache error???

If you have any suggestions, or if you get it working, I'd love some feedback in regards to how. First suggestion: change how you look for a user/group. Right now you grep /etc/passwd and /etc/group. Try this on for size: #!/usr/bin/env bash readonly bzero=$(basename $0 .sh) readonly now=$(date '+%...
by dcrites
Fri Jul 28, 2017 1:07 pm
Forum: Nagios XI
Topic: C-cronjobs has apache error???
Replies: 16
Views: 3338

Re: C-cronjobs has apache error???

Most probably, but I would like to point out that you are NOT installing Nagios XI on a "clean" system. Installing XI on heavily customized systems is out of scope for Nagios support. We can try to help but we cannot guarantee that your Nagios XI will install (or function after it's been ...
by dcrites
Fri Jul 28, 2017 12:56 pm
Forum: Nagios XI
Topic: C-cronjobs has apache error???
Replies: 16
Views: 3338

Re: C-cronjobs has apache error???

So, since I asked: What can I do to get past this? More attempts that have not worked: I tried disabling PAM. 1) I used the suggestion on this web site: http://www.ehow.com/how_7623588_disable-pam-authentication.html There was no /etc/pam.conf, so I created one with 'skip-authentication' as the only...
by dcrites
Fri Jul 28, 2017 11:33 am
Forum: Nagios XI
Topic: C-cronjobs has apache error???
Replies: 16
Views: 3338

Re: C-cronjobs has apache error???

What is the output of the following commands? getenforce umask grep apache /etc/shadow Here's the output: [svcazenoss@monprodrkn02 ~]$ getenforce; umask ; sudo grep apache /etc/shadow Disabled 0022 [svcazenoss@monprodrkn02 ~]$ As you can see, there is no output for the grep, because apache is an AD...
by dcrites
Thu Jul 27, 2017 7:11 pm
Forum: Nagios XI
Topic: C-cronjobs has apache error???
Replies: 16
Views: 3338

C-cronjobs has apache error???

I am using the offline install process. In the middle of the install, I get this error: Running './C-cronjobs'... You (apache) are not allowed to access to (crontab) because of pam configuration. RESULT=1 It errors out, and that's that. I have no idea what command it is doing as user apache that is ...