So I decided to set up Nagios Graph and everything installed/works fine.
I added an action_url to a service template so I can check a service's graph in one simple click. However, this wasn't the case...
The graphs themselves are great, but clicking the action_url displayed all the graphs for the service (day, week, month, year) and the data on the graph was quite a lot.
I changed the action_url to below:
Code: Select all
action_url /nagios/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&expand_period=day,week' onMouseOver='showGraphPopup(this)' onMouseOut='hideGraphPopup()' rel='/nagiosgraph/cgi-bin/showgraph.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&period=week&rrdopts=-w+450+-jCode: Select all
&expand_period=day,weekhttp://nagios_ip/nagios/cgi-bin/show.cgi?host=<HOST>&service=<SERVICE>&expand_period=day,week
But the graphs are still a bit cluttered... it shows crit, data, min and warn all at once. I tried to customise the URL to only show data by changing it to below:
Code: Select all
action_url /nagios/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&expand_period=day,week&db=*%2CdataSo my question is:
Is there any symbol I can add to a config file line, such as action_url, which means "anything"? Or is the only option here to create multiple templates each with their own action_url, changing based on the "db=......%2Cdata" in question?
Hope that made sense.... I can post some examples if you need.
Thank you.
Kind Regards,
Gary Shergill