Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
centreon
centreon-plugins
Commits
901496ae
Commit
901496ae
authored
Jan 27, 2016
by
qgarnier
Browse files
Merge pull request #305 from Tpo76/patch-1
Fix sql request for sql matching meta_service
parents
d0142cdf
eba3608b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/check_meta_service
View file @
901496ae
...
...
@@ -183,7 +183,7 @@ sub getDataSourceType() {
##################################################
sub
retrieve_by_regexp
()
{
my
$row2
;
my
$query2
=
"
SELECT s.perfdata FROM services s WHERE s.description LIKE '
"
.
$regexp
.
"
' AND s.enable = 1
";
my
$query2
=
"
SELECT s.perfdata FROM services s WHERE s.description LIKE '
"
.
$regexp
.
"
' AND s.enable
d
= 1
";
my
$DBRES2
=
$db_centstorage
->
prepare
(
$query2
);
if
(
!
$DBRES2
->
execute
)
{
die
"
Error:
"
.
$DBRES2
->
errstr
.
"
\n
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment