ndoutils or other problems

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ndoutils or other problems

Post by scottwilkerson »

Can you attach a copy of your /etc/init.d/nagios and your /usr/local/nagios/etc/nagios.cfg
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: ndoutils or other problems

Post 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?
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: ndoutils or other problems

Post 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
You do not have the required permissions to view the files attached to this post.
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ndoutils or other problems

Post by scottwilkerson »

can you run the following

Code: Select all

ps aux|grep perfdataproc
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: ndoutils or other problems

Post 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
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ndoutils or other problems

Post by scottwilkerson »

One more thing, can you run the following

Code: Select all

cat /etc/group|grep nag
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: ndoutils or other problems

Post by johndoe »

Code: Select all

# cat /etc/group|grep nag
nagcmd:x:702:apache,nagios
nagiocmd:x:703:
nagios:x:704:nagios,apache
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: ndoutils or other problems

Post 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?
johndoe
Posts: 114
Joined: Fri Oct 28, 2011 10:14 am

Re: ndoutils or other problems

Post 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
Nagios XI 2012R2.8c Running on Ubuntu 12.04 Using 99% passive checks for monitoring
Monitoring nearly 800 Passive services spread through roughly 40 machines
Running on an 8 core, KVM virtualized VM, with 15 GB of RAM and using RAMDisk
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ndoutils or other problems

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked