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,
NagiosXI_Host-icon-Error/Broken
-
maartin.pii
- Posts: 84
- Joined: Wed May 18, 2016 1:39 pm
NagiosXI_Host-icon-Error/Broken
You do not have the required permissions to view the files attached to this post.
Last edited by dwhitfield on Thu Dec 01, 2016 3:07 pm, edited 1 time in total.
Reason: marking with green check mark
Reason: marking with green check mark
Re: NagiosXI_Host-icon-Error/Broken
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:
Looks like this in 5.3.0:
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
maartin.pii
- Posts: 84
- Joined: Wed May 18, 2016 1:39 pm
Re: NagiosXI_Host-icon-Error/Broken
Thanks for your reply!
May I edit it directly on the DB on nagios.nagios_services and nagiosql.tbl_service ? Is this valid?
Regards,
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
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.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
maartin.pii
- Posts: 84
- Joined: Wed May 18, 2016 1:39 pm
Re: NagiosXI_Host-icon-Error/Broken
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?
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?
You do not have the required permissions to view the files attached to this post.
Re: NagiosXI_Host-icon-Error/Broken
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.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
maartin.pii
- Posts: 84
- Joined: Wed May 18, 2016 1:39 pm
Re: NagiosXI_Host-icon-Error/Broken
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,
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
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 safemaartin.pii wrote:I think that I will clean it from the DB
In order: Delete Files, Write Configs, Verify Files, Restart Nagios Core.
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
maartin.pii
- Posts: 84
- Joined: Wed May 18, 2016 1:39 pm
Re: NagiosXI_Host-icon-Error/Broken
I am not really sure that this will fix the issue. I will check it and let you know.
Regards,
Regards,
Re: NagiosXI_Host-icon-Error/Broken
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.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/