Page 1 of 2

NagiosXI_Host-icon-Error/Broken

Posted: Fri Oct 14, 2016 8:03 am
by maartin.pii
Hi All,

I am opening this thread since I have implemented a new NagiosXI that I migrated from a previous Nagios Core installation and I see that with some hosts its 'icon' is kind of broken or something.

I am not sure if the hosts in Nagios Core had an image associated and maybe that is what it is broken - However, does anyone now how to disable or remove it? Maybe from the DB? Or a Mass update?

I am uploading an screenshot of it.

Best Regards,

Re: NagiosXI_Host-icon-Error/Broken

Posted: Fri Oct 14, 2016 11:33 am
by mcapra
From the Core Config Manager, you should be able to remove it from the hosts individually (mgiap014 mgpdb015 mgpdb014) by changing the "Icon image" field under "Misc settings".

Looks like this in 5.3.0:
2016_10_14_11_33_35_CCM_Nagios_XI.png

Re: NagiosXI_Host-icon-Error/Broken

Posted: Tue Oct 18, 2016 10:13 am
by maartin.pii
Thanks for your reply!

May I edit it directly on the DB on nagios.nagios_services and nagiosql.tbl_service ? Is this valid?

Regards,

Re: NagiosXI_Host-icon-Error/Broken

Posted: Tue Oct 18, 2016 10:25 am
by mcapra
Strictly speaking, yes you could do that. However, we don't typically advocate or support direct database manipulation. There's flat files that get loaded into Nagios Core in addition to what is in the MySQL database. Making changes through the Core Config Manager addresses both of those things simultaneously and is a superior option.

Re: NagiosXI_Host-icon-Error/Broken

Posted: Fri Oct 28, 2016 9:01 am
by maartin.pii
Hi Guys,

I was checking the configuration of my hosts that has this icon issue, but navigating from CCM they don't seem to have any configuration on the icon field. However, if I query the host I see the record on the DB.

I attach some examples - any recommendation on how to work around it?

Re: NagiosXI_Host-icon-Error/Broken

Posted: Fri Oct 28, 2016 2:18 pm
by mcapra
There could also be icons being assigned to the host based on the template that host is using (xiwizard_linuxserver_host for example). You may also need to change the templates being assigned to your host.

Re: NagiosXI_Host-icon-Error/Broken

Posted: Thu Nov 03, 2016 8:44 am
by maartin.pii
I've checked on the template and they are not defined there neither... I think that the root cause might be an incorrect migration from nagios core to xi using the php mapping scripts.

They have the definition on the DB but not on the CCM itself. I think that I will clean it from the DB, I've already try that with one host and I fixed it.

Regards,

Re: NagiosXI_Host-icon-Error/Broken

Posted: Thu Nov 03, 2016 11:04 am
by mcapra
maartin.pii wrote:I think that I will clean it from the DB
A good way to solve inconsistencies between the flat-files and database is to use the "Config File Management" component found under the "Config" section of Nagios XI. Be sure to take a configuration snapshot before starting this process just to be safe :)
2016_11_03_11_02_01_CCM_Nagios_XI.png
In order: Delete Files, Write Configs, Verify Files, Restart Nagios Core.

Re: NagiosXI_Host-icon-Error/Broken

Posted: Thu Nov 10, 2016 3:30 pm
by maartin.pii
I am not really sure that this will fix the issue. I will check it and let you know.

Regards,

Re: NagiosXI_Host-icon-Error/Broken

Posted: Thu Nov 10, 2016 5:47 pm
by mcapra
Let us know if you have additional questions regarding this. There are a few more steps we could try if the delete/write/verify doesn't work.