AutoScroll admin interface

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
dapaulio
Posts: 6
Joined: Thu Sep 17, 2015 2:22 am

AutoScroll admin interface

Post by dapaulio »

Hi all
I have a web interface displayed on a monitoring system in the office and the defined services now scroll off the page. does anyone know a good piece of software that will scroll up and down the page automatically.
the only solutions i have found is editting the html code. if that solution is viable for nagios can someone point me in the right direction to adding this code to the web interface

Code: Select all

$('html, body').animate({ scrollTop: $(document).height() - $(window).height() }, 1000, function() {
    $(this).animate({ scrollTop: 0 }, 1000);
});
courtesy of http://stackoverflow.com/questions/8107 ... and-repeat

Thanks
Paul
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: AutoScroll admin interface

Post by tmcdonald »

This is a little out of scope for the forum, but basically the answer in that post is right. What version are you running? Depending on the version you might have an HTML/PHP-based page you can edit, or you might need to change the C source and recompile.
Former Nagios employee
dapaulio
Posts: 6
Joined: Thu Sep 17, 2015 2:22 am

Re: AutoScroll admin interface

Post by dapaulio »

we use Nagios3

i am a linux and nagios newb so any help would be greatly appreciated
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: AutoScroll admin interface

Post by tmcdonald »

Depending on what specific version of Nagios 3 you have, you might need to edit different files. But for 3.5 the following directory structure holds the web interface:

https://github.com/NagiosEnterprises/na ... 3.5.0/html

So you would need to save that snippet in whatever page you want to edit. Keep in mind though, not all the pages use the same logic, so that script may not apply everywhere.
Former Nagios employee
Locked