Fixed display minimum values in uptime graphs. (#10078)

Fixes an issue with several uptime graphs using the average value when it should be using the minimum value.

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
This commit is contained in:
Slushnas
2019-04-11 15:05:18 -07:00
committed by Neil Lathwood
parent 4718cd594c
commit b81af32ed2
3 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ $check_graph['mysqluptime'] .= " CDEF:cuptime=DS0,86400,/";
$check_graph['mysqluptime'] .= " 'COMMENT:Days Current Minimum Maximum Average\\n'";
$check_graph['mysqluptime'] .= " AREA:cuptime#EEEEEE:Uptime";
$check_graph['mysqluptime'] .= " LINE1.25:cuptime#36393D:";
$check_graph['mysqluptime'] .= " GPRINT:cuptime:LAST:%6.2lf GPRINT:cuptime:AVERAGE:%6.2lf";
$check_graph['mysqluptime'] .= " GPRINT:cuptime:LAST:%6.2lf GPRINT:cuptime:MIN:%6.2lf";
$check_graph['mysqluptime'] .= " GPRINT:cuptime:MAX:%6.2lf GPRINT:cuptime:AVERAGE:%6.2lf\\l";
$check_graph['mysqlQcache'] = " DEF:DS0=" . $rrd_filename . ":Qcache_free_memory:AVERAGE ";