Page 2 of 2

Re: ndoutils or other problems

Posted: Tue Aug 28, 2012 9:31 am
by scottwilkerson
Can you attach a copy of your /etc/init.d/nagios and your /usr/local/nagios/etc/nagios.cfg

Re: ndoutils or other problems

Posted: Tue Aug 28, 2012 9:39 am
by mguthrie
Ok, then NRDP is the one dropping those results in with apache ownership. I checked on our XI test boxes and all of the NRDP files were owned by Nagios, I'm betting yours are all currently owned by apache?

Re: ndoutils or other problems

Posted: Tue Aug 28, 2012 10:01 am
by johndoe
Scottwilkerson: check the attached files as requested (had to change extension to .txt because of the forum restrictions)

Mguthrie: I posted an "LS" on one of the previous posts which indeed shows ownership as apache for those files

Re: ndoutils or other problems

Posted: Tue Aug 28, 2012 10:58 am
by scottwilkerson
can you run the following

Code: Select all

ps aux|grep perfdataproc

Re: ndoutils or other problems

Posted: Tue Aug 28, 2012 11:05 am
by johndoe

Code: Select all

# ps aux|grep perfdataproc
nagios   25442  0.0  0.0   8700   980 ?        Ss   16:04   0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios   25445  1.2  0.2 205488 20924 ?        S    16:04   0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php

Re: ndoutils or other problems

Posted: Tue Aug 28, 2012 1:19 pm
by scottwilkerson
One more thing, can you run the following

Code: Select all

cat /etc/group|grep nag

Re: ndoutils or other problems

Posted: Tue Aug 28, 2012 4:24 pm
by johndoe

Code: Select all

# cat /etc/group|grep nag
nagcmd:x:702:apache,nagios
nagiocmd:x:703:
nagios:x:704:nagios,apache

Re: ndoutils or other problems

Posted: Tue Aug 28, 2012 4:36 pm
by mguthrie
Ok, then NRDP is the one dropping those results in with apache ownership. I checked on our XI test boxes and all of the NRDP files were owned by Nagios, I'm betting yours are all currently owned by apache?
Mguthrie: I posted an "LS" on one of the previous posts which indeed shows ownership as apache for those files
Sorry I wasn't more clear, I meant the php files for NRDP. Can check the permissions on the files under:

/usr/local/nrdp/server

and run:

Code: Select all

chown -R nagios.nagios /usr/local/nrdp/server/* 
if apache owns those?

Re: ndoutils or other problems

Posted: Tue Aug 28, 2012 4:53 pm
by johndoe
Those are all owned by nagios:

Code: Select all

# ls -lha /usr/local/nrdp/server/*
-rwxrwxr-x 1 nagios nagios 2.0K Aug 27 14:47 /usr/local/nrdp/server/config.inc.php
-rwxr-xr-x 1 nagios nagios 6.9K Nov  4  2011 /usr/local/nrdp/server/index.php

/usr/local/nrdp/server/includes:
total 20K
drwxr-xr-x 2 nagios nagios 4.0K Oct 24  2011 .
drwxr-xr-x 4 nagios nagios 4.0K Oct 24  2011 ..
-rwxr-xr-x 1 nagios nagios 1.6K Nov  4  2011 constants.inc.php
-rwxr-xr-x 1 nagios nagios 7.3K Nov  4  2011 utils.inc.php

/usr/local/nrdp/server/plugins:
total 16K
drwxr-xr-x 4 nagios nagios 4.0K Oct 24  2011 .
drwxr-xr-x 4 nagios nagios 4.0K Oct 24  2011 ..
drwxr-xr-x 2 nagios nagios 4.0K Oct 24  2011 nagioscorecmd
drwxr-xr-x 2 nagios nagios 4.0K Oct 24  2011 nagioscorepassivecheck

Re: ndoutils or other problems

Posted: Wed Aug 29, 2012 4:53 pm
by scottwilkerson
We are likely going to need to setup a remote session so we can take a look at what is going on. I'm not positive, but I have an idea it could be related to whatever happened that caused you to have a group named...

Code: Select all

nagiocmd
If you send a support request to [email protected] we can schedule a remote session.