Integrate mediawiki to nagiosxi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Integrate mediawiki to nagiosxi

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Integrate mediawiki to nagiosxi

Post 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".
Former Nagios employee
https://www.mcapra.com/
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Integrate mediawiki to nagiosxi

Post 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.
Former Nagios employee
Locked