Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mon 14867 warp10v2 #121

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion centreon-certified/datadog/datadog-events-apiv2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function EventQueue:send_data(payload)
end

self.sc_logger:info("[EventQueue:send_data]: Going to send the following json " .. tostring(payload))
self.sc_logger:info("[EventQueue:send_data]: Pagerduty address is: " .. tostring(url))
self.sc_logger:info("[EventQueue:send_data]: Datadog address is: " .. tostring(url))

local http_response_body = ""
local http_request = curl.easy()
Expand Down
4 changes: 2 additions & 2 deletions centreon-certified/datadog/datadog-metrics-apiv2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function EventQueue.new(params)

-- set up log configuration
local logfile = params.logfile or "/var/log/centreon-broker/datadog-metrics.log"
local log_level = params.log_level or 3
local log_level = params.log_level or 1

-- initiate mandatory objects
self.sc_logger = sc_logger.new(logfile, log_level)
Expand Down Expand Up @@ -268,7 +268,7 @@ function EventQueue:send_data(payload)
end

self.sc_logger:info("[EventQueue:send_data]: Going to send the following json " .. tostring(payload_json))
self.sc_logger:info("[EventQueue:send_data]: Pagerduty address is: " .. tostring(url))
self.sc_logger:info("[EventQueue:send_data]: Datadog address is: " .. tostring(url))

local http_response_body = ""
local http_request = curl.easy()
Expand Down
Loading