Page 1 of 1

Integrate mediawiki to nagiosxi

Posted: Tue Jul 17, 2018 7:26 am
by morabanc
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

Re: Integrate mediawiki to nagiosxi

Posted: Tue Jul 17, 2018 8:06 am
by mcapra
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".

Re: Integrate mediawiki to nagiosxi

Posted: Tue Jul 17, 2018 4:21 pm
by tmcdonald
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.