Hi guys,
I already installed nagiosxi and mediawiki.
I access to mediawiki through link: https://192.168.131.128/wiki/index.php/h_test
But now I would like to link nagiosxi and mediawiki, our purpose is to put an icon in all hosts that when we click there automatically mediawiki open in the page of that host.
This would be my code but i don't know where we have to put:
- /wiki/index.php/$HOSTNAME$
Thanks
Integrate mediawiki to nagiosxi
Re: Integrate mediawiki to nagiosxi
I would not recommend altering critical Nagios XI files by hand. I would also not recommend installing MediaWiki on the same machine as Nagios XI.
The actions component is the easiest way to do this and does almost exactly what you want to do out-of-the-box. It would allow you to add a URL for each host and leverage a few macros, such as the host_name field.
Otherwise, the custom includes component is another option if you're reasonably familiar with Javascript. You could also write a custom component, but that's getting pretty "into the weeds".
The actions component is the easiest way to do this and does almost exactly what you want to do out-of-the-box. It would allow you to add a URL for each host and leverage a few macros, such as the host_name field.
Otherwise, the custom includes component is another option if you're reasonably familiar with Javascript. You could also write a custom component, but that's getting pretty "into the weeds".
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Integrate mediawiki to nagiosxi
Thanks for the assist, @mcapra! I would have to suggest the actions component as well, as this is basically what it was designed for.
OP, please let us know if you need further assistance.
OP, please let us know if you need further assistance.
Former Nagios employee