Page 3 of 4

Re: Need help in setting up distributed monitoirng

Posted: Wed Jan 09, 2013 10:38 am
by scottwilkerson
Are there any further items showing up in the Admin -> Unconfigured Objects.

It could be possible that some of them were added and additional items send their data after the initial run of the wizard.

Re: Need help in setting up distributed monitoirng

Posted: Wed Jan 09, 2013 6:57 pm
by ravish78
Run the following to change ownership of the passiveobject wizard to nagios
Code: Select all
chown -R nagios:nagios /usr/local/nagiosxi/html/includes/configwizards/passiveobject/


completed the above command

then try removing the hosts from Nagios and re-add from unconfigured objects


In master i have remove these from unconfigured objects and not getting new data under it from slave.Moreover I could see the same hosts in home screen in host details and servcie details.

Re: Need help in setting up distributed monitoirng

Posted: Thu Jan 10, 2013 10:35 am
by scottwilkerson
ravish78 wrote:Moreover I could see the same hosts in home screen in host details and servcie details.
If you add a new service to the slave, it will appear in unconfigured objects because that particular service doesn't exist on the master yet.

Re: Need help in setting up distributed monitoirng

Posted: Thu Jan 10, 2013 3:09 pm
by ravish78
I am not getting all the servers and services in unconfigured objects in master.It is missing about 60% of servers and services .
Can you help me in getting all of them.

These are existing services which are working fine in master but could not get the data into slave.

Re: Need help in setting up distributed monitoirng

Posted: Thu Jan 10, 2013 3:33 pm
by scottwilkerson
Depending on the amount of data we are sending you could be hitting a per_source_limit in xinetd

I would run the following for a bit to see if you are seeing any errors

Code: Select all

tail -f /var/log/messages|grep nsca

What you will need to do is edit the /etc/xinetd.d/nsca file on the XI server to include the following lines

Code: Select all

per_source = UNLIMITED
instances = UNLIMITED
add them between { and }

Then restart xinetd

Code: Select all

service xinetd restart

Re: Need help in setting up distributed monitoirng

Posted: Tue Jan 15, 2013 11:18 am
by ravish78
Still it doent show all the data.

Re: Need help in setting up distributed monitoirng

Posted: Tue Jan 15, 2013 1:39 pm
by scottwilkerson
do you have an only_from directive in the /etc/xinetd.d/nsca ?

And if so, are all the sending servers in the list?

Also, are there currently any items in Admin -> Unconfigured Objects?

Re: Need help in setting up distributed monitoirng

Posted: Wed Jan 16, 2013 10:30 am
by ravish78
Post we have around 200+ servers in slave and that might be the cause of getting all the data to master.It is taking lot of time to add all services .

So we to change setting to make this slave as master now and other servers which contains few servers as slave.Later we figured out that nsca version is different in these two.

Can you please let me know how to uninstall nsca or updagrade nsca so that we will match both of them and try.

Slave is 2.7.2 and master is 2.9.1.

Re: Need help in setting up distributed monitoirng

Posted: Wed Jan 16, 2013 12:18 pm
by scottwilkerson
I would recommend running the following on the master

Code: Select all

wget http://assets.nagios.com/downloads/nagiosxi/agents/nsca-downgrade.tar.gz
tar xvf nsca-downgrade.tar.gz
cd nsca
./upgrade
There is some known backwards compatibility issues with 2.9.1 that we are trying to work out...

Re: Need help in setting up distributed monitoirng

Posted: Wed Jan 16, 2013 5:13 pm
by ravish78
Downgraded and verified all the settings.now bith are having same version.

We still cannot see any servers in unconfigured objects.
in messages file on slave server we see that connections are happening but it prompts an error
automount[19795]: key "nagios" not found in map source(s)