add ability to pass error message to graph, and use this for mac accounting

git-svn-id: http://www.observium.org/svn/observer/trunk@2353 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-20 16:05:29 +00:00
parent 096f551f6f
commit e7eac601b9
2 changed files with 19 additions and 10 deletions
+7 -2
View File
@@ -91,14 +91,19 @@ function graph_error($string)
exit();
}
if (!$auth)
{
if ($error_msg) {
graph_error($graph_error);
} elseif (!$auth) {
if ($width < 200)
{
graph_error("No Auth");
} else {
graph_error("No Authorisation");
}
} else {
#$rrd_options .= " HRULE:0#999999";
if ($no_file)