Creating a second webpage

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.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Creating a second webpage

Post 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?
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Creating a second webpage

Post by rhassing »

What did you take out? probably a bit too much :-)
Rob Hassing
Image
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Creating a second webpage

Post 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
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Creating a second webpage

Post by rhassing »

Ok sorry, I did not expect that, maybe somebody else could jump in? :-(
Rob Hassing
Image
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Creating a second webpage

Post 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?
Former Nagios Employee.
me.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Creating a second webpage

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Creating a second webpage

Post 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?
Former Nagios Employee.
me.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Creating a second webpage

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Creating a second webpage

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