Page 2 of 2

Re: nagios xi auto discovery

Posted: Thu Jul 31, 2014 3:02 pm
by anil406
Thanks,
I cannot get to CCM->Tools->Write Config Files->Write->Verify because nagios is not running
Nagios status show its not running, but acutally it is..
nagios 4666 1 1 10:41 ? 00:06:02 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

Here is requested info..

[root@nagios01 var]# /usr/local/nagios/bin/nagios | head -2
Nagios Core 4.0.7
[root@nagios01 var]# /usr/local/nagios/bin/ndo2db | head -2
NDO2DB 2.0.0
[root@nagios01 var]# service npcd status
NPCD running (pid 25116).
[root@nagios01 var]# service ndo2db status
ndo2db is not running but subsystem locked
[root@nagios01 var]# ls /usr/local/nagios/var/spool/xidpe | wc -l
2525
[root@nagios01 var]# ls /usr/local/nagios/var/spool/perfdata | wc -l
0
[root@nagios01 var]# ls /usr/local/nagios/var/spool/checkresults | wc -l
0

Re: nagios xi auto discovery

Posted: Fri Aug 01, 2014 11:49 am
by sreinhardt
Getting to CCM write config, should have no regard for whether core is running or not. Is the whole XI web interface down at the moment? You can correct the ndo locked issue and get the service started again by:

Code: Select all

rm -f /usr/local/nagiosxi/var/subsys/ndo2db.lock
service ndo2db start

Re: nagios xi auto discovery

Posted: Fri Aug 01, 2014 12:06 pm
by anil406
do you mean this..

[root@nagios01 etc]# grep lock ndo2db.cfg
lock_file=/usr/local/nagios/var/ndo2db.lock

[root@nagios01 etc]rm -f /usr/local/nagios/var/ndo2db.lock
[root@nagios01 etc]# service ndo2db start
Starting ndo2db: done.
[root@nagios01 etc]# service ndo2db status
ndo2db is not running but subsystem locked

Re: nagios xi auto discovery

Posted: Fri Aug 01, 2014 2:22 pm
by sreinhardt
What do you see with: ps -ef | grep 'ndo\|bin/nag'

Re: nagios xi auto discovery

Posted: Tue Aug 05, 2014 10:37 am
by anil406
upgrade is successful after some filesystems fixes. But now autodiscovery job never completes.
grep "COMPONENT_VERSION" /usr/local/nagiosxi/html/includes/components/autodiscovery/autodiscovery.inc.php
COMPONENT_VERSION => '2.05',

Re: nagios xi auto discovery

Posted: Tue Aug 05, 2014 5:03 pm
by scottwilkerson
anil406 wrote:upgrade is successful after some filesystems fixes. But now autodiscovery job never completes.
grep "COMPONENT_VERSION" /usr/local/nagiosxi/html/includes/components/autodiscovery/autodiscovery.inc.php
COMPONENT_VERSION => '2.05',
Unfortunately, you will have to delete the current job and re-create a new one.

Re: nagios xi auto discovery

Posted: Wed Aug 06, 2014 2:47 pm
by anil406
I tried that few times, no luck.

Re: nagios xi auto discovery

Posted: Thu Aug 07, 2014 3:06 pm
by abrist
How big of a subnet are you scanning? If you scan 1 specific ip, does it finish?

Re: nagios xi auto discovery

Posted: Fri Aug 08, 2014 8:51 am
by anil406
thanks abrist, it was file ownership issue. autodiscovery file has to be set to apache.nagios. But it was set nagios.nagios, I am not sure these were set in build? anyways that made the scan hung. It working after chaning ownership to apache.nagios, however it still can not detect the os type and services, how does autodiscovery detect os type and services, fyi we are using check_by_ssh, no nrpe.

Re: nagios xi auto discovery

Posted: Fri Aug 08, 2014 1:53 pm
by tmcdonald
The OS and services are mostly a guess on the part of nmap, the tool that is run in the background. It uses a technique called fingerprinting that, while normally pretty good at guessing, is not 100% and can be foiled by the remote system intentionally not responding with identifying information. This applies to both the OS and services running on it.

Can you post a screenshot of the page that shows all the hosts and services you can check/uncheck? I want to see what nmap is reporting beside the port.