Page 2 of 2

Re: NNA integreted with nagios XI and nagios core

Posted: Fri Sep 19, 2014 6:30 am
by rashid2014
hello
the result of grep 'nag' /etc/group is :
sudo:x:27:nagios
nagios:x:1000:www-data,nagios
nagcmd:x:1001:nagios,www-data


the result of grep 'command_file' /etc/nagios3/nagios.cfg is
command_file=/var/lib/nagios3/rw/nagios.cmd

the result of ls -lart /var/lib/nagios3/rw/nagios.cmd
prw-rw---- 1 nagios nagios 0 Sep 19 04:19 /var/lib/nagios3/rw/nagios.cmd


thanks for your help

Re: NNA integreted with nagios XI and nagios core

Posted: Fri Sep 19, 2014 1:37 pm
by sreinhardt
Well all of that looks good. Let's have you visit the /nrdp/ page through a web browser and submit a passive check for an existing host or service. The xml that is inside the nrdp page will need to be modified, if I wanted to submit one with a host check for localhost and a service check for Current Load on localhost, it might look like:

Code: Select all

<?xml version='1.0'?> 
<checkresults>
	<checkresult type='host'>
		<hostname>localhost</hostname>
		<state>0</state>
		<output>Everything looks okay! testing nrdp</output>
	</checkresult>
	<checkresult type='service'>
		<hostname>localhost</hostname>
		<servicename>Current Load</servicename>
		<state>1</state>
		<output>WARNING: testing passive nrdp</output>
	</checkresult>
</checkresults>
Once that is submitted, check the nagios interface to see if your host and\or service are displaying the state you provided and output message. You could also grep the nagios.log for the output message if a check ran in between your passive checks and checking the webui.

Re: NNA integreted with nagios XI and nagios core

Posted: Mon Sep 22, 2014 3:51 am
by rashid2014
hello!!!
in the nagios interface the host (localhost) display the output message (Everything looks okay! testing nrdp).
now how can i verify if nagios network analyzer is integrated with nagios core???
thanks for your help!

Re: NNA integreted with nagios XI and nagios core

Posted: Mon Sep 22, 2014 11:53 am
by tmcdonald
Can you confirm that the NRDP token you have defined in your config.inc.php (in the NRDP directory on the Nagios Core server) matches what you have configured in the NNA interface?

Also, have you followed this doc?

http://assets.nagios.com/downloads/nagi ... ios_XI.pdf

Re: NNA integreted with nagios XI and nagios core

Posted: Tue Sep 23, 2014 12:32 pm
by rashid2014
hello tcmdonald!
yes i have followed this doc and i confirm that the token i defined in config.inc.php matches what i have configured in NNA interface.
i want to know if when a creat a nagios server and service/hostname in nagios network analyzer what must i do like configuration in nagios core server??
thanks

Re: NNA integreted with nagios XI and nagios core

Posted: Tue Sep 23, 2014 4:48 pm
by lmiltchev
In Nagios XI, the service defined in Nagios Network Analyzer will show up in Nagios XI under the "Unconfigured Objects", so it's pretty much straight forward process. For example, here's what I have in my Nagios NA and Nagios XI + configs.
example01.PNG
example02.PNG

Code: Select all

define service {
	host_name			test-host
	service_description		test-service
	use				xiwizard_passive_service
	max_check_attempts		1
	check_interval			1
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	notifications_enabled		0
	contacts			nagiosadmin
	stalking_options		n
	_xiwizard			passiveobject
	register			1
	}

Code: Select all

define service {
       name                          		xiwizard_passive_service
       service_description           		Passive Service
       use                           		xiwizard_generic_service
       check_command                 		check_dummy!0!"No data received yet."!!!!!!
       is_volatile                   		0
       initial_state                 		o
       max_check_attempts            		1
       active_checks_enabled         		0
       passive_checks_enabled        		1
       flap_detection_enabled        		0
       stalking_options              		o,w,c,u,
       register                    		0

}

Code: Select all

define service {
       name                          		xiwizard_generic_service
       service_description           		xiwizard_generic_service
       check_command                 		check_xi_service_none
       is_volatile                   		0
       max_check_attempts            		5
       check_interval                		5
       retry_interval                		1
       active_checks_enabled         		1
       passive_checks_enabled        		1
       check_period                  		xi_timeperiod_24x7
       parallelize_check             		1
       obsess_over_service           		1
       check_freshness               		0
       event_handler_enabled         		1
       flap_detection_enabled        		1
       process_perf_data             		1
       retain_status_information     		1
       retain_nonstatus_information  		1
       notification_interval         		60
       first_notification_delay      		0
       notification_period           		xi_timeperiod_24x7
       notification_options          		w,c,u,r,f,s,
       notifications_enabled         		1
       register                    		0

}

In Nagios Core, you will need to create the config manually. Hopefully, you can use this as an example.

Re: NNA integreted with nagios XI and nagios core

Posted: Thu Sep 25, 2014 5:31 am
by rashid2014
hello!
when i want to create a unconfigured passive object in nagios xi i don't found the unconfigured passive object wizards i try to install it , it sait wizard install success....but i don't found it...can you help me please???

Re: NNA integreted with nagios XI and nagios core

Posted: Thu Sep 25, 2014 10:22 am
by slansing
You don't need to install anything, XI already knows where to put unconfigured passive check returns and that is in Admin > Unconfigured Objects. Check there for the objects sent from the Nagios Network Analyzer server.

Re: NNA integreted with nagios XI and nagios core

Posted: Thu Sep 25, 2014 10:50 am
by rashid2014
ok! please
in NNA i create a nagios server ant servicename/hostname.
in Nagios i i install nrdp and in inbound tranfert i put the rigth token.
but how can i send the agent or install the nrdp agent on the NNa??i think that is my problem now because i try but i dont see an unconfigured object.
please help me.

Re: NNA integreted with nagios XI and nagios core

Posted: Thu Sep 25, 2014 1:32 pm
by rashid2014
i success to integrate NNA with nagios xi!!!
thank your for your help and attention!