need help in new setup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

need help in new setup

Post by ravish78 »

we have done installs on new vm with help of nagios support person.
when we try to configure clients thorugh import and export the clients are not showing up in gui even though there are zero errors.
If we do manually then checks are in ok state but no data is displayed for disk memory etc

Appreciate any help on this
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: need help in new setup

Post by slansing »

Could you go into a bit more detail on how you are configuring "clients?" Are you talking about importing Hosts/Services from a Nagios Core installation into XI? Could you possibly attach a screen shot of what you are talking about?
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: need help in new setup

Post by ravish78 »

Yes we are configuring a clint via import and export process as suggested by nagios.

1)We have taken one of the server carbon from old configuration and did copy of that file into xi system along with commands,contacts,contactgroups,timeperiods etc in /usr/local/nagios/etc/cfgprep/orig

2)Then we did execute pnp commands from /usr/local/nagios/etc/cfgprep for all files in orig

php /usr/local/nagiosxi/tools/xiprepimport.php orig/commands.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/contacts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/hostgroups.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/hosts.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/services_carboon.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/templates.cfg
php /usr/local/nagiosxi/tools/xiprepimport.php orig/timeperiods.cfg

3)did import in gui for all the above files
4)completed write config file in gui and cliked four buttons and it was successful and showed 0 errors
5)apply config and restart nagios went fine

but the carbon host is not visible in nagios xi gui and also we do not see those files in /usr/local/nagios/etc/host or services directory which should be automatically generated when we do import.


When we do manual configuration the host and service are visible but status information is null as shown in attached screenshot
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: need help in new setup

Post by lmiltchev »

Can you see the carbon host and its services in the Nagios Core Config Manager?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: need help in new setup

Post by ravish78 »

No. Only manual configred 2 other servers and locahost are present in CCM.

Also we are using old nagios agent in client systems which is configured for core.Do we need to install XI nagios agent again in client systems or does it work well with old ones
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: need help in new setup

Post by scottwilkerson »

It appears the items aren't being imported from cfgprep

Are you specifically selecting the files in cfgprep when doing the import?

Also, can you post the output of the following commands

Code: Select all

ls -l /usr/local/nagios/etc/cfgprep
ls -ld /usr/local/nagios/etc/cfgprep
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 new setup

Post by ravish78 »

Yes I am selecting the files from /usr/local/nagios/etc/cfgprep.

Below is the output

tmproot@usa0300lv725>ls -l /usr/local/nagios/etc/cfgprep
total 180
-rw-rw---- 1 apache nagios 7924 Oct 3 15:26 carbon.cfg
-rw-rw---- 1 apache nagios 13415 Oct 3 14:52 commands.cfg
-rw-rw---- 1 apache nagios 15817 Oct 3 15:10 contactgroups.cfg
-rw-rw---- 1 apache nagios 58860 Oct 3 14:52 contacts.cfg
-rw-rw---- 1 apache nagios 579 Oct 3 15:04 contacttemplate.cfg
-rw-rw---- 1 apache nagios 0 Oct 3 14:52 dependencies.cfg
-rw-rw---- 1 apache nagios 2276 Oct 3 14:52 hostgroups.cfg
-rw-rw---- 1 apache nagios 41041 Oct 3 14:53 hosts.cfg
-rw-rw---- 1 apache nagios 5757 Oct 3 15:40 hosttemplate.cfg
drwxrw---- 2 apache nagios 4096 Oct 3 15:10 orig
-rw-rw---- 1 apache nagios 0 Oct 3 15:01 services_carbon.cfg
-rw-rw---- 1 apache nagios 0 Oct 3 15:04 servicetemplate.cfg
-rw-rw---- 1 apache nagios 9126 Oct 3 15:02 timeperiods.cfg

tmproot@usa0300lv725>ls -ld /usr/local/nagios/etc/cfgprep
drw-rw-r-- 3 apache nagios 4096 Oct 3 15:40 /usr/local/nagios/etc/cfgprep
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: need help in new setup

Post by scottwilkerson »

You need different permissions on the directory, I cannot see how it would be possible for them to even show up on the import screen with these permissions...
Run

Code: Select all

chmod ug+x /usr/local/nagios/etc/cfgprep
Then try the import from the CCM again
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 new setup

Post by ravish78 »

I will try and let you knoe the results.

Can you clarify my other question if we can still use the old nagios agent in client or they need to be reinstalled again
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: need help in new setup

Post by scottwilkerson »

The old agent should work just fine, we just need to make sure that the commands specified in the nrpe.cfg match the format in XI
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked