Need help in setting up distributed monitoirng

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: Need help in setting up distributed monitoirng

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need help in setting up distributed monitoirng

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need help in setting up distributed monitoirng

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need help in setting up distributed monitoirng

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need help in setting up distributed monitoirng

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need help in setting up distributed monitoirng

Post by ravish78 »

Still it doent show all the data.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need help in setting up distributed monitoirng

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need help in setting up distributed monitoirng

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need help in setting up distributed monitoirng

Post 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...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need help in setting up distributed monitoirng

Post 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)
Locked