Page 1 of 1

Existing Custom Operations Screen

Posted: Tue Oct 04, 2016 2:33 pm
by blariv
Hi,

I had posted earlier about the XI5 upgrade. I installed a fresh copy then tried to import my custom OPS screen that was designed through Nagios. Unfortunately it did not work. How do I go about getting this re-engineered so it will work with the latest XI version?

Thanks

Re: Existing Custom Operations Screen

Posted: Tue Oct 04, 2016 3:55 pm
by rkennedy
Just to make sure, are you referring to this thread? https://support.nagios.com/forum/viewto ... 35#p197135

With the process you did, it will only be moving over your configuration files, and not all of the other data.

To help get things on track, how was the custom OPS screen built? Is it a dashboard, or an external page? Could you show us a screenshot from the old system?

Re: Existing Custom Operations Screen

Posted: Tue Oct 04, 2016 4:00 pm
by blariv
yes I am referring to that thread, sorry!

I think i need help with getting everything from my existing system over to a new system.

the screen config is attached.

are there paid services I can get to do the move?

Re: Existing Custom Operations Screen

Posted: Wed Oct 05, 2016 11:07 am
by lmiltchev
Try the following "workaround".

1. Backup the original file "/usr/local/nagiosxi/html/includes/components/opscreen/opscreen.php".

Code: Select all

cp -p /usr/local/nagiosxi/html/includes/components/opscreen/opscreen.php /usr/local/nagiosxi/html/includes/components/opscreen/opscreen.php.orig
2. Open the "/usr/local/nagiosxi/html/includes/components/opscreen/opscreen.php" in a text editor, and change this line (around line 9):

Code: Select all

<script type="text/javascript" src="../../js/jquery/jquery-1.8.2.min.js">
to this:

Code: Select all

<script type="text/javascript" src="../../js/jquery/jquery-1.11.2.min.js">
Save, exit, and restart httpd:

Code: Select all

service httpd restart
Try accessing the "Operations Screen" again. Did it work this time?

Re: Existing Custom Operations Screen

Posted: Wed Oct 05, 2016 12:28 pm
by blariv
awesome! worked like a charm.

any idea how I can migrate all perf data over too?

Re: Existing Custom Operations Screen

Posted: Wed Oct 05, 2016 1:50 pm
by lmiltchev
You should be able to just copy over the RRDs and XMLs to "/usr/local/nagios/share/perfdata/" directory. If you are however changing the architecture, you will need to follow the steps, outlined in our "Nagios XI - Migrate Performance Data" KB article here:
https://support.nagios.com/kb/article.php?id=166

Re: Existing Custom Operations Screen

Posted: Wed Oct 05, 2016 4:54 pm
by Box293
You can also use this tool I created called the Performance Data Tool for migrating performance data.

http://exchange.nagios.org/directory/Ad ... ol/details

Upload it into Nagios XI via Admin > System Extensions > Manage Components.

Access it via the Tools menu.