Skip to content

Commit

Permalink
conf files must be valid json files (packages-*.conf were not)
Browse files Browse the repository at this point in the history
  • Loading branch information
carsso committed Mar 21, 2016
1 parent a28a8b4 commit c7ec206
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.73.8
0.73.9
9 changes: 3 additions & 6 deletions etc/conf.d/packages-apt.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"enabled" : true,
# lines_to_ignore: array of strings, these will be used as regexes by the perl probe
# to tell which warnings/errors of apt should be ignored (they'll still be logged in details)
# this is useful for broken remote repositories you can't fix yourself anyway
"lines_to_ignore" : [
# "^Ignoring Provides line with DepCompareOp for package [\\w-]+$",
# "^Unknown Multi-Arch type 'no' for package '[\\w-]+'$",
# "^You may want to run apt-get update to correct these problems$"
"^Ignoring Provides line with DepCompareOp for package [\\w-]+$",
"^Unknown Multi-Arch type 'no' for package '[\\w-]+'$",
"^You may want to run apt-get update to correct these problems$"
]
}
4 changes: 2 additions & 2 deletions etc/conf.d/packages-yum.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"enabled" : true,
}
"enabled" : true
}
3 changes: 3 additions & 0 deletions probes/examples/packages-apt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ if ( !$delta_update or $delta_update > 30 * 60 or $update_tries )
$level = 'Errors' if $1 eq 'E';
$level = 'Warnings' if $1 eq 'W';
my $ignored = 0;
# lines_to_ignore: array of strings, these will be used as regexes by the perl probe
# to tell which warnings/errors of apt should be ignored (they'll still be logged in details)
# this is useful for broken remote repositories you can't fix yourself anyway
foreach my $regex (@{ config->{'lines_to_ignore'} || [] })
{
$ignored = 1 if ($msg =~ /$regex/);
Expand Down

0 comments on commit c7ec206

Please sign in to comment.