-
Notifications
You must be signed in to change notification settings - Fork 275
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
[cloud::microsoft::office365::exchange::mode::emailactivity] Month '-1' out of range 0..11 at #3059
Comments
Could you provide the output with --debug ? you can sent it by email if you prefer |
Hello ! |
Maybe. but i need the debug output. |
I had tried --debug to try to get more information but the output is exactly the same, unfortunately. PS:In the initial post, I would have liked to add that the other "mode", mailbox-usage, runs smoothly as usual. |
Here is an output with --debug on centreon_plugins.pl --plugin=cloud::microsoft::office365::onedrive::plugin --mode=site-usage --custommode='graphapi'
On centreon_plugins.pl --plugin=cloud::microsoft::office365::sharepoint::plugin --mode=users-activity --custommode='graphapi'
|
The --debug should display informations. Could you test with --http-backend=curl ? |
Same problem : #3062 |
The debug show no more information |
Could you add following line in file: centreon/plugins/backend/http/curl.pm
|
At the end of file ? |
Over the following line:
|
I have send the debug to you're email. |
My debug: ##################################################### == Info: About to connect() to graph.microsoft.com port 443 (#0) == Info: Trying 40.126.32.99... == Info: Connected to graph.microsoft.com (40.126.32.99) port 443 (#0) == Info: Initializing NSS with certpath: sql:/etc/pki/nssdb == Info: CAfile: /etc/pki/tls/certs/ca-bundle.crt == Info: SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 == Info: Server certificate: == Info: subject: CN=graph.microsoft.com,O=Microsoft Corporation,L=Redmond,ST=WA,C=US == Info: start date: ago 24 03:41:31 2021 GMT == Info: expire date: ago 19 03:41:31 2022 GMT == Info: common name: graph.microsoft.com == Info: issuer: CN=Microsoft Azure TLS Issuing CA 01,O=Microsoft Corporation,C=US => Send header: GET /v1.0/reports/getEmailActivityUserDetail(period='D7') HTTP/1.1 => Recv header: HTTP/1.1 302 Found => Recv header: Date: Wed, 01 Sep 2021 03:56:52 GMT => Recv header: Cache-Control: no-store, no-cache, max-age=0, s-maxage=0, private => Recv header: Transfer-Encoding: chunked => Recv header: Strict-Transport-Security: max-age=31536000 => Recv header: request-id: b69b1e3d-828f-450b-bfa2-f67dcd4fe6db => Recv header: client-request-id: b69b1e3d-828f-450b-bfa2-f67dcd4fe6db => Recv header: x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West Europe","Slice":"E","Ring":"5","ScaleUnit":"000","RoleInstance":"AM1PEPF0000436A"}} => Recv header: == Info: Ignoring the response-body => Recv data: 0 == Info: Connection #0 to host graph.microsoft.com left intact == Info: About to connect() to reportsweu.office.com port 443 (#1) == Info: Trying 13.69.251.46... == Info: Connected to reportsweu.office.com (13.69.251.46) port 443 (#1) == Info: CAfile: /etc/pki/tls/certs/ca-bundle.crt == Info: SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 == Info: Server certificate: == Info: subject: CN=reports.office.com,O=Microsoft Corporation,L=Redmond,ST=Washington,C=US == Info: start date: dic 04 00:00:00 2020 GMT == Info: expire date: dic 03 23:59:59 2021 GMT == Info: common name: reports.office.com == Info: issuer: CN=DigiCert Cloud Services CA-1,O=DigiCert Inc,C=US => Send header: GET /data/v1.0/download?token=eyJhbGciOiJSUzI1NiIsImtpZCI6IjRDNThDODAwNTlBQ0VDQjJFQzFDMjA1RkUzMUVBNjRFQzcwMzQzQkEiLCJ0eXAiOiJKV1QifQ.eyJ0aWQiOiI0ZGJlNTEzYS0wZDRiLTQ5Y2MtODg5NC0yMTdiNDNjNDVkYjgiLCJlbnQiOiJnZXRFbWFpbEFjdGl2aXR5VXNlckRldGFpbCIsImFwcCI6IjA3NTVmODY5LWJmOGUtNDA3My05MWM0LTQxYzQ3ZTNiZTM3MyIsImNpZCI6IjM5Nzk4ODBEMEIwODQxMDg5QTgzMTZCN0RBQTNCMzY0IiwiZ3ZlciI6IlYxIiwiYWdnIjoiTTciLCJkYXRlIjoiIiwidHZlciI6IlYxLjAiLCJyZXEiOiJyZXBvcnRzd2V1Lm9mZmljZS5jb20iLCJwb3IiOiI0NDMiLCJuYmYiOjE2MzA0NTIsImV4cCI6MTYzMDQ2ODczMiwiaWF0IjoxNjMwNDY4NjEyLCJpc3MiOiI1MDdiYzlkYS1jNGUyLTQwY2ItOTZhNy1hYzkwZGY5MjY4NWMiLCJhdWQiOiJyZXBvcnRzd2V1Lm9mZmljZS5jb20ifQ.bRu_q8R6xdRMxTbhQaOwy1ucubgPidU_Q085iwy29_XWKS5_zvMLXjBhXtR7_6WYl3D0NNumCYaWpQ7Jl1jkH0xr3iJoChEEpa1IlqcTQk_fLCg-o7cncrbcB6GG-UWwh1iMkawQ9BGaCjr6guFE7z5Inx2OJh_LCbwHTjn4K37UG-U1ehaJ1XdbN61snouLekgGGzzyFbkIy6sHYh42RsPRee6Wl11JBJdSrR44vFkwrdS00tV3cNx6xBhO7n9v2zY0S_ee_VocC7VFNjbLXebDlssnZphF_d-c1ZofUm67ULjwSCVHWFQ_m3dXno1LBJBA-ddYMWKrVmcAt238mA HTTP/1.1 => Recv header: HTTP/1.1 200 OK => Recv header: Cache-Control: no-store, no-cache, max-age=0, s-maxage=0, private => Recv header: Pragma: no-cache => Recv header: Transfer-Encoding: chunked => Recv header: Content-Type: application/octet-stream => Recv header: ETag: "OC8yOS8yMDIxIDEyOjAwOjAwIEFNICswMDowMA==" => Recv header: Server: Microsoft-IIS/10.0 => Recv header: X-XSS-Protection: 1; mode=block => Recv header: X-Content-Type-Options: nosniff => Recv header: Strict-Transport-Security: max-age=31536000; includeSubDomains => Recv header: X-Frame-Options: Deny => Recv header: Content-Security-Policy: frame-options => Recv header: requestId: CA5064979B434E39D60B7771BE9CAA => Recv header: Content-Disposition: attachment; filename="EmailActivityUserDetail9/1/2021 3:56:52 AM.csv" => Recv header: X-Powered-By: ASP.NET => Recv header: Date: Wed, 01 Sep 2021 03:56:52 GMT => Recv header: => Recv data: 3 => Recv data: a5 => Recv data: 0 == Info: Connection #1 to host reportsweu.office.com left intact Use of uninitialized value $2 in subtraction (-) at /usr/lib/centreon/plugins/centreon-pack/cloud/microsoft/office365/exchange/mode/emailactivity.pm line 39. ############################################################################ |
Hi guys, For the record, the problem occurs from 30 august 10PM to 01 September 6PM |
Hello, |
I have checked why. In fact, microsoft graphapi results was empty (no datas) (I don't know why). Maybe it can take more than 7 days (the default period we check). And the plugin doesn't manage well with no data from the API. I should manage that case. |
Hi.
I don't know if this is the right place to present a problem like this. If not, I apologize in advance
i've a problem with "emailactivity" mode (cloud::microsoft::office365::exchange) .
I've been using it for a few months and have never had any problems, it has always worked from the start.
Since yesterday, however, this error has appeared and the check basically fails:
#/usr/lib/centreon/plugins/centreon_plugins.pl --plugin cloud::microsoft::office365::exchange::plugin --mode=email-activity --tenant='xxxx' --client-id='xxxx' --client-secret='xxxxx'
Use of uninitialized value $2 in subtraction (-) at /usr/lib/centreon/plugins/cloud/microsoft/office365/exchange/mode/emailactivity.pm line 39.
Use of uninitialized value $1 in subtraction (-) at /usr/lib/centreon/plugins/cloud/microsoft/office365/exchange/mode/emailactivity.pm line 39.
UNKNOWN: Month '-1' out of range 0..11 at /usr/lib/centreon/plugins/cloud/microsoft/office365/exchange/mode/emailactivity.pm line 39.
I have not touched anything.
I tried to update, but nothing.
Any help is appreciated
The text was updated successfully, but these errors were encountered: