Displaying Nagios CGI Images/Graphs on Remote Web Server
Posted: Thu Jan 15, 2015 12:04 pm
Hello everyone,
We are working to create a web page that will be a dashboard for NMS and I am trying to display the Nagios CGI images that are generated for specific hosts and services under "Trends" and "Availablity". I have attached an example of the image I am trying to display.
I don't mean for this discussion to become about Apache and HTML but wanted to ask the amazing users in this forum how they did it?
I have the following added to a web page on a remote server which displays this image but also requires a login to view these images.
Thanks again!
Michael
We are working to create a web page that will be a dashboard for NMS and I am trying to display the Nagios CGI images that are generated for specific hosts and services under "Trends" and "Availablity". I have attached an example of the image I am trying to display.
I don't mean for this discussion to become about Apache and HTML but wanted to ask the amazing users in this forum how they did it?
I have the following added to a web page on a remote server which displays this image but also requires a login to view these images.
Code: Select all
<!DOCTYPE html>
<html>
<body>
<img src="http://nagiosserver/cgi-bin/nagios3/trends.cgi?createimage&t1=1420591677&t2=1421196477&assumeinitialstates=yes&assumestatesduringnotrunning=yes&initialassumedhoststate=0&initialassumedservicestate=0&assumestateretention=yes&includesoftstates=no&host=<hostname>&backtrack=8&zoom=4" >
</body>
</html>
Michael