Page 1 of 2
need help in new setup
Posted: Wed Oct 03, 2012 3:49 pm
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
Re: need help in new setup
Posted: Wed Oct 03, 2012 4:08 pm
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?
Re: need help in new setup
Posted: Thu Oct 04, 2012 8:57 am
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
Re: need help in new setup
Posted: Thu Oct 04, 2012 9:30 am
by lmiltchev
Can you see the carbon host and its services in the Nagios Core Config Manager?
Re: need help in new setup
Posted: Thu Oct 04, 2012 10:00 am
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
Re: need help in new setup
Posted: Thu Oct 04, 2012 10:28 am
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
Re: need help in new setup
Posted: Thu Oct 04, 2012 10:43 am
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
Re: need help in new setup
Posted: Thu Oct 04, 2012 12:03 pm
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
Re: need help in new setup
Posted: Thu Oct 04, 2012 12:21 pm
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
Re: need help in new setup
Posted: Thu Oct 04, 2012 1:11 pm
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