Hi folks --
I am working on migrating our last (and largest) Nagios Core implementation into XI. We have almost 1800 Hosts and more than 7700 Services in this Core right now.
We make extensive use of notes_url and action_url and notes in Core, to provide info to everyone from support teams to business partners to C-level executives. That info in notes ranges from helpful to drop-dead must-have critical information. We have close to 6300 notes entries right now.
Some are in Templates, but most are specific to individual Host or Service objects.
The documentation I can find for the Core --> XI migration process does not address the notes data in a way that would make it visible in XI directly.
There have been previous support discussions such as https://support.nagios.com/forum/viewtopic.php?f=16&t=48226 where the suggestions involve either the Notes Component or the Action Component.
1. Is there a feature-enhancement on the XI roadmap which will get Notes as defined in CCM to show up in XI directly?
2. Is there a process that I can follow as part of the Core-to-XI migration process that will take notes data and populate the Notes Component?
3. Since we use the XI API extensively on our other implementations - and will be on this XI also - where can I find docs on getting the API to also populate / manipulate the Notes Component?
Thanks!
Core to XI migration - Notes missing from XI
Re: Core to XI migration - Notes missing from XI
By the way, we can't enable CCM access for everyone, so it's not a solution to have people View in Nagios Core from the Advanced tab.
Re: Core to XI migration - Notes missing from XI
I would like to clarify something. Notes Component stores the data into the db. It has nothing to do with Nagios Core. You can however use the Actions component to view notes on hosts/services (defined directly or via a template). You can also install the "Nagios XI Custom Column Component", which will allow you to see host notes in a custom column, but not service notes. Here's a few examples:
In the GUI:
The two icons next to the hostname are links to the notes_url and action_url. My "test note" is all the way to the right.
Unfortunately, you are not going to be able to display service notes this way, unless you create your own "custom" component.
Having said that, you can define some actions in the Actions component (using the %notes%, %notesurl%, and %actionurl% macros) in order to view notes, notes_url, and action_url under the "Quick Actions". See an example below:
In the GUI: In the REST API, you could add a host/service and add a note at the same time.
Example:
Hope this helps.
Code: Select all
define host {
host_name Dummy
notes TEST NOTE
notes_url https://www.nagios.com/
action_url https://support.nagios.com/kb/
register 1
}Unfortunately, you are not going to be able to display service notes this way, unless you create your own "custom" component.
Having said that, you can define some actions in the Actions component (using the %notes%, %notesurl%, and %actionurl% macros) in order to view notes, notes_url, and action_url under the "Quick Actions". See an example below:
In the GUI: In the REST API, you could add a host/service and add a note at the same time.
Example:
Here's the config that was created:curl -XPOST "http://x.x.x.x/nagiosxi/api/v1/config/h ... x&pretty=1" -d "host_name=testapihost&address=127.0.0.1&check_command=check_ping\!3000,80%\!5000,100%&max_check_attempts=2&check_period=24x7&contacts=nagiosadmin¬ification_interval=5¬ification_period=24x7¬es=my test note&applyconfig=1"
{
"success": "Successfully added testapihost to the system. Config applied, Nagios Core was restarted."
}
Code: Select all
define host {
host_name testapihost
address 127.0.0.1
check_command check_ping!3000,80%!5000,100%
max_check_attempts 2
check_period 24x7
contacts nagiosadmin
notification_interval 5
notification_period 24x7
notes my test note
register 1
}You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Core to XI migration - Notes missing from XI
One more thing - I spoke to our developers about adding notes directly in XI on the "Host Status Detail" and "Service Status Detail" page. I was told that this will be in the next major release of Nagios XI - just wanted to give you heads up. This would be much better solution than using the "Custom Column" component, which is quite old, not very efficient, and it may slow down very large systems.
Be sure to check out our Knowledgebase for helpful articles and solutions!