Skip to content

Commit

Permalink
Status_Monitoring: Encode RRD errors returned in JSON. Fixes #9601
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-p committed Jun 25, 2019
1 parent ccff850 commit c52e392
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sysutils/pfSense-Status_Monitoring/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# $FreeBSD$

PORTNAME= pfSense-Status_Monitoring
PORTVERSION= 1.7.7
PORTVERSION= 1.7.8
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function monitoring_rrd_check($name) {

$rrd_array = rrd_fetch($settings['rrd_file'], $rrd_options);
if (!($rrd_array)) {
die ('{ "error" : "' . rrd_error() . '" }');
die ('{ "error" : ' . json_encode(rrd_error()) . ' }');
}

$ds_list = array_keys ($rrd_array['data']);
Expand Down

0 comments on commit c52e392

Please sign in to comment.