Nagios Core 4.1.1 "Unable to get process data"

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Nagios Core 4.1.1 "Unable to get process data"

Post by rhassing »

There must be some other executable on your system.

Maybe search for it?

Code: Select all

find / -name nagios
Or check what is in /etc/init.d/nagios
Rob Hassing
Image
druid
Posts: 33
Joined: Tue Oct 06, 2015 1:46 pm

Re: Nagios Core 4.1.1 "Unable to get process data"

Post by druid »

find / -name nagios

Code: Select all

/home/nagios
/run/lock/subsys/nagios
/etc/rc.d/init.d/nagios
/etc/logrotate.d/nagios
/etc/nagios
/var/log/nagios
/var/spool/mail/nagios
/var/spool/nagios
/usr/sbin/nagios
/usr/lib64/nagios
/usr/share/nagios
/usr/local/nagios
/usr/local/nagios/bin/nagios
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Nagios Core 4.1.1 "Unable to get process data"

Post by rhassing »

Is /usr/local/nagios/bin/nagios your version 4.1.1?

You could test it with:

Code: Select all

 /usr/local/nagios/bin/nagios -v /etc/nagios/nagios.conf
Rob Hassing
Image
druid
Posts: 33
Joined: Tue Oct 06, 2015 1:46 pm

Re: Nagios Core 4.1.1 "Unable to get process data"

Post by druid »

When I run
/usr/local/nagios/bin/nagios -v /etc/nagios/nagios.conf
It displays information about version 4.1.1, however I saw that when I enter the command
nagios
It displays information about version 3.5.1
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Nagios Core 4.1.1 "Unable to get process data"

Post by rhassing »

maybe you should erase the Nagios rpm packages.

Code: Select all

rpm -qa | grep nagios
and than

Code: Select all

yum erase <packages> 
For proper installation you could check:
http://sites.box293.com/nagios/guides/installing-nagios
Rob Hassing
Image
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios Core 4.1.1 "Unable to get process data"

Post by eloyd »

Rob is 100% correct - you seem to have multiple nagios installations on your machine and they are not compatible. You should uninstall everything and then install from rpm or from source, but not both. I recommend installing from source.

If this is a VM and you can start over easily, then I would take that route.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios Core 4.1.1 "Unable to get process data"

Post by hsmith »

I agree with Eric on this one. A clean CentOS virtual machine would be the easiest way to get this accomplished. I would make a tarball of your /usr/local/nagios/etc folder to make sure that you don't lose anything too important before you get rid of anything though.
Former Nagios Employee.
me.
druid
Posts: 33
Joined: Tue Oct 06, 2015 1:46 pm

Re: Nagios Core 4.1.1 "Unable to get process data"

Post by druid »

I've erased the 3.5.1 instance and it is now working. Thank you all! You can close this post
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Core 4.1.1 "Unable to get process data"

Post by rkennedy »

Glad to see this worked! I will now close this thread, but feel free to open another if you need more assistance.
Former Nagios Employee
Locked