NNA integreted with nagios xi and nagios core

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
rashid2014
Posts: 63
Joined: Wed Aug 13, 2014 5:39 am

Re: NNA integreted with nagios xi and nagios core

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: NNA integreted with nagios xi and nagios core

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rashid2014
Posts: 63
Joined: Wed Aug 13, 2014 5:39 am

Re: NNA integreted with nagios xi and nagios core

Post 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!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NNA integreted with nagios xi and nagios core

Post 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
Former Nagios employee
rashid2014
Posts: 63
Joined: Wed Aug 13, 2014 5:39 am

Re: NNA integreted with nagios xi and nagios core

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NNA integreted with nagios xi and nagios core

Post 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.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rashid2014
Posts: 63
Joined: Wed Aug 13, 2014 5:39 am

Re: NNA integreted with nagios xi and nagios core

Post 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???
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NNA integreted with nagios xi and nagios core

Post 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.
rashid2014
Posts: 63
Joined: Wed Aug 13, 2014 5:39 am

Re: NNA integreted with nagios xi and nagios core

Post 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.
rashid2014
Posts: 63
Joined: Wed Aug 13, 2014 5:39 am

Re: NNA integreted with nagios xi and nagios core

Post by rashid2014 »

i success to integrate NNA with nagios xi!!!
thank your for your help and attention!