Page 1 of 1

Refresh custom dashlet?

Posted: Thu Dec 14, 2017 12:30 pm
by brandondash
Google searches are letting me down here...

If I have a custom dashlet and I edit the backing files in the file system (/usr/local/nagiosxi/html/includes/dashlets/) how do refresh the dashlet in the dashboard view? Is it automatic? Hopefully I don't have to bounce the service!

Re: Refresh custom dashlet?

Posted: Thu Dec 14, 2017 3:21 pm
by npolovenko
Hello, @brandondash. Do you mean you want to refresh the dashlet after you edit it? If you wrote your dashlet in php then just reloading the webpage will do it. Or are you actually looking into having the dashlet refresh the data by itself? That would depend on how you fetch the data. But most easy way would be to either include a timeout function or a page refresh meta tag in the $output field:

Code: Select all

<meta http-equiv="refresh" content="3600" />