Bug in the Nagios XI Import config tool

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Bug in the Nagios XI Import config tool

Post by eloyd »

There appears to be a bug in the Nagios XI Import config tool. So far, I've only investigated timeperiods, but I suspect it applies across the board.

Given the following timeperiod import file:

Code: Select all

define timeperiod {
        timeperiod_name Dev Dispatcher
        alias Dev Dispatcher on dev-webprod off during the summer
        september 1 - june 30 00:00-24:00
}
Note that there is a space in the timeperiod_name: "Dev Dispatcher." If I import this file, I get an import that has no name and messed up time periods:
broken.png
If I replace the space with an underscore, it works fine, except now the name is not correct with all the things that are expecting to use it.
correct.png
I'm pretty sure the space in the name causes the parser to fail to parse the name properly, which is an "off by one" type error for the rest of the import. We need this to work for a large number of imports of all types. This is on XI 5.6.6 fully freshened with all updates.
You do not have the required permissions to view the files attached to this post.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bug in the Nagios XI Import config tool

Post by scottwilkerson »

Found bug, unzip and place the attached in

Code: Select all

/usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php
import.class.zip
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Bug in the Nagios XI Import config tool

Post by eloyd »

Thanks, Scott. Testing now.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Bug in the Nagios XI Import config tool

Post by eloyd »

Thanks. Look like that solved the import bug. Now I just need to figure out why one timeperiod that gets imported, but excludes another imported time period doesn't pass muster on the verify stage.

While possibly related, it's not the same problem. You can go ahead and lock this. I'll open another issue if there is one.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bug in the Nagios XI Import config tool

Post by scottwilkerson »

eloyd wrote:Thanks. Look like that solved the import bug. Now I just need to figure out why one timeperiod that gets imported, but excludes another imported time period doesn't pass muster on the verify stage.

While possibly related, it's not the same problem. You can go ahead and lock this. I'll open another issue if there is one.
Great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked