Nagios XI Questions:importing conf files from Nagios core

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
reinal
Posts: 4
Joined: Thu Feb 18, 2016 8:40 pm

Nagios XI Questions:importing conf files from Nagios core

Post by reinal »

Hello,
I have some questions on Nagios XI and wonder if someone can help me.

I am using Nagios core right now and thinking of moving to Nagios XI.

What I am trying to do is migrating all the conf files in Nagios core to Nagios XI.
I followed the instructions in the document and imported commands.cfg, templates.cfg, and test host(windows desktop) configuration file as well.
I put several service checks for this test host, which are disk, service, and memory.
I’ve set ‘check_nrpe’ for the Check command, and ‘alias_disk’,’alias_service’, and ‘alias_mem’ for its command argument.

When I apply this configuration, it says ‘status’ is ok, with green light
but all of the ‘status information’ says “I (0.3.9.328 2011-08-16) seem to be doing fine...“.
Is that normal that different services produce the same status information?
I thought that it’s bit strange because it usually gives me specific message like “DISK OK”. “CPU ok”..etc.


My another question is that whether it is worth importing old conf to the new system.
We have few hundreds of hosts, and I am not really sure which one (between importing old conf files to Nagios XI and creating new conf files using wizard) would need less time and effort.
If I still need lot of manual work after importing old files, I might just want to create new conf files using wizard..
Can you give some advice?

Thanks!
Reina
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI Questions:importing conf files from Nagios cor

Post by hsmith »

reinal wrote:I’ve set ‘check_nrpe’ for the Check command, and ‘alias_disk’,’alias_service’, and ‘alias_mem’ for its command argument.
Can we see a screenshot of the Core Configuration Manage page showing this?
reinal wrote:but all of the ‘status information’ says “I (0.3.9.328 2011-08-16) seem to be doing fine...“.
That's usually a sign just the command ./check_nrpe -H 1.1.1.1(whatever your IP IS) was run, instead of having NRPE run a command.
reinal wrote:Can you give some advice?
The wizards make it easy. Sometimes the import can be messy, but if you post the screenshot I asked for earlier it may help diagnose the issue. With that being said, I usually am a fan of 'fresh starts'.
Former Nagios Employee.
me.
reinal
Posts: 4
Joined: Thu Feb 18, 2016 8:40 pm

Re: Nagios XI Questions:importing conf files from Nagios cor

Post by reinal »

Thank you for the reply. I attached screenshot
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI Questions:importing conf files from Nagios cor

Post by Box293 »

You imported command has square brackets which is causing your issue.

In addition to this, it has overwritten the default one defined by Nagios XI.

Go into CCM
Commands
Search for check_nrpe
Change the command definition to:

Code: Select all

$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
Save and apply configuration.

Specifying the -p 5666 in the command is not necessary as that's the default port that is used.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
reinal
Posts: 4
Joined: Thu Feb 18, 2016 8:40 pm

Re: Nagios XI Questions:importing conf files from Nagios cor

Post by reinal »

Hello, thanks for the reply.
I've changed the command and applied configuration
but now I have this error..

COMMAND: /usr/local/nagios/libexec/check_nrpe -H 10.1.129.147 -t 30 -c alias_disk
OUTPUT: UNKNOWN: No handler for that command
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios XI Questions:importing conf files from Nagios cor

Post by hsmith »

Can we see the NRPE configuration for the host you're trying to run it against?
Former Nagios Employee.
me.
reinal
Posts: 4
Joined: Thu Feb 18, 2016 8:40 pm

Re: Nagios XI Questions:importing conf files from Nagios cor

Post by reinal »

I edited nsclient.ini file and it worked.
Thanks for your help!
Locked