Page 2 of 2
Re: Creating a second webpage
Posted: Wed Oct 14, 2015 10:56 am
by nathanplatt
I modify the map.html to what i want and rename it map1.html, but all it does is spin the loading icon rather than loading the map... any ideas?
Re: Creating a second webpage
Posted: Wed Oct 14, 2015 11:01 am
by rhassing
What did you take out? probably a bit too much

Re: Creating a second webpage
Posted: Wed Oct 14, 2015 11:28 am
by nathanplatt
I removed the section above and including map-links.html, but i have copied the original and called it map1.html (without removing anything) and it still won't show me the map. I think there's a link to somewhere else that requires the file to be called map
Re: Creating a second webpage
Posted: Wed Oct 14, 2015 12:19 pm
by rhassing
Ok sorry, I did not expect that, maybe somebody else could jump in?

Re: Creating a second webpage
Posted: Wed Oct 14, 2015 2:11 pm
by hsmith
Disclaimer: I am not a web designer, and this probably breaks something.
Try renaming infobox.html inside of /usr/local/nagios/share. This should get rid of the frame. Do you still have a need for two URLs, or is just loading the map.html going to work in this case?
Re: Creating a second webpage
Posted: Thu Oct 15, 2015 12:15 am
by nathanplatt
I'll like it to show on one screen as just the map, and any other screen as normal. If this was normal webpage I would just have a indexrpi.htm and a normal index.htm etc but it does seem to work here
Re: Creating a second webpage
Posted: Thu Oct 15, 2015 2:41 pm
by hsmith
After looking at it for quite awhile, I really don't think there is a great way to make this work without spending a lot of time looking at all of the javascript that this uses. The 'easy' way to do this is going to be to rename the file I mentioned in my previous post, beyond that, it is getting close to custom development territory. I really don't want to push the whole custom development sales pitch on you. Have you looked on the
Nagios Exchange to see if there is anything that may fit your needs there?
Re: Creating a second webpage
Posted: Fri Oct 16, 2015 1:35 am
by nathanplatt
Okay, thank you for your help (everyone). The company won't pay for custom development, so i'll leave it there for now.
Thank you
Nathan
Re: Creating a second webpage
Posted: Fri Oct 16, 2015 9:28 am
by hsmith
I'm sorry I couldn't hack it together for you. I'm not much of a coder, but I feel like there is something that is actually piping the data to that url specifically.