Page 1 of 1

Nagios XI Questions:importing conf files from Nagios core

Posted: Fri Feb 19, 2016 1:47 pm
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

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

Posted: Fri Feb 19, 2016 2:35 pm
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'.

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

Posted: Fri Feb 19, 2016 3:40 pm
by reinal
Thank you for the reply. I attached screenshot

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

Posted: Sun Feb 21, 2016 10:02 pm
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.

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

Posted: Tue Feb 23, 2016 4:31 pm
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

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

Posted: Tue Feb 23, 2016 4:42 pm
by hsmith
Can we see the NRPE configuration for the host you're trying to run it against?

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

Posted: Wed Feb 24, 2016 2:07 pm
by reinal
I edited nsclient.ini file and it worked.
Thanks for your help!