[BUG] Monitoring server hardware errors through redfish
Is there an existing issue for this?
- [x] I have searched the existing issues
Current Behavior
1、通过redfish 协议监控服务器信息报错如下: Redfish session create error: Redfish session create error: StatusCode 405
Expected Behavior
可以正常通过redfish 监控服务器硬件信息
Steps To Reproduce
No response
Environment
HertzBeat version(s): v1.70
Debug logs
2025-04-03 15:18:34.443 [496385436534528-redfish-Chassis-1325] ERROR org.apache.hertzbeat.collector.collect.redfish.RedfishCollectImpl Line:68 - Redfish session create error: Redfish session create error: StatusCode 405 2025-04-03 15:18:34.444 [496385436534528-redfish-Chassis-1325] INFO org.apache.hertzbeat.collector.dispatch.MetricsCollect Line:443 - [Collect Failed, Run 3119ms, All 3120ms] Reason: Redfish session create error: StatusCode 405 2025-04-03 15:19:32.325 [496385436534528-redfish-Chassis-2325] INFO org.apache.hertzbeat.collector.collect.common.cache.GlobalConnectionCache Line:167 - [GlobalConnectionCache] Cache miss for key CacheIdentifier {ip='192.168.7.134', port='443', username+password=>hash='578609968', customArg='null'}. 2025-04-03 15:19:35.420 [496385436534528-redfish-Chassis-2325] ERROR org.apache.hertzbeat.collector.collect.redfish.RedfishCollectImpl Line:68 - Redfish session create error: Redfish session create error: StatusCode 405 2025-04-03 15:19:35.421 [496385436534528-redfish-Chassis-2325] INFO org.apache.hertzbeat.collector.dispatch.MetricsCollect Line:443 - [Collect Failed, Run 3096ms, All 3097ms] Reason: Redfish session create error: StatusCode 405 2025-04-03 15:20:33.325 [496385436534528-redfish-Chassis-3324] INFO org.apache.hertzbeat.collector.collect.common.cache.GlobalConnectionCache Line:167 - [GlobalConnectionCache] Cache miss for key CacheIdentifier {ip='192.168.7.134', port='443', username+password=>hash='578609968', customArg='null'}. 2025-04-03 15:20:36.463 [496385436534528-redfish-Chassis-3324] ERROR org.apache.hertzbeat.collector.collect.redfish.RedfishCollectImpl Line:68 - Redfish session create error: Redfish session create error: StatusCode 405 2025-04-03 15:20:36.463 [496385436534528-redfish-Chassis-3324] INFO org.apache.hertzbeat.collector.dispatch.MetricsCollect Line:443 - [Collect Failed, Run 3139ms, All 3140ms] Reason: Redfish session create error: StatusCode 405 2025-04-03 15:21:34.325 [496385436534528-redfish-Chassis-4325] INFO org.apache.hertzbeat.collector.collect.common.cache.GlobalConnectionCache Line:167 - [GlobalConnectionCache] Cache miss for key CacheIdentifier {ip='192.168.7.134', port='443', username+password=>hash='578609968', customArg='null'}. 2025-04-03 15:21:37.646 [496385436534528-redfish-Chassis-4325] ERROR org.apache.hertzbeat.collector.collect.redfish.RedfishCollectImpl Line:68 - Redfish session create error: Redfish session create error: StatusCode 405 2025-04-03 15:21:37.647 [496385436534528-redfish-Chassis-4325] INFO org.apache.hertzbeat.collector.dispatch.MetricsCollect Line:443 - [Collect Failed, Run 3321ms, All 3322ms] Reason: Redfish session create error: StatusCode 405
Anything else?
No response
You can test it by
curl -X POST https://ip/redfish/v1/SessionService/Sessions \
-H "Content-Type: application/json" \
-d '{"UserName": "username", "Password": "password"}'
@zqr10159
执行curl -X POST https://ip/redfish/v1/SessionService/Sessions
-H "Content-Type: application/json"
-d '{"UserName": "username", "Password": "password"}' 报错信息如下:
{"error":{"@Message.ExtendedInfo":[{"Message":"Unable to run the method because the requested HTTP method is not allowed.","MessageArgs":[],"[email protected]":0,"MessageId":"IDRAC.1.6.SYS402","RelatedProperties":[],"[email protected]":0,"Resolution":"Enter a valid HTTP method and retry the operation. For information about valid methods, see the Redfish Users Guide available on the support site.","Severity":"Informational"}],"code":"Base.1.0.GeneralError","message":"A general error has occurred. See ExtendedInfo for more information"}}
@zqr10159
一样 iDRAC开启了IPMI和redfish都报错
seems like #3197
没还测试,目前我还是回Zabbix了
From: @.*** @.> on behalf of lswadmin @.> Sent: Tuesday, April 22, 2025 4:32 PM To: apache/hertzbeat @.> Cc: Yanze Xie @.>; Comment @.***> Subject: Re: [apache/hertzbeat] [BUG] Monitoring server hardware errors through redfish (Issue #3210)
请问这个问题有修复吗
― Reply to this email directly, view it on GitHubhttps://github.com/apache/hertzbeat/issues/3210#issuecomment-2820574146, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APPC6S3YCTSJMNYWSL37ODL22X5BFAVCNFSM6AAAAAB2LNNPUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRQGU3TIMJUGY. You are receiving this because you commented.Message ID: @.***>
[https://avatars.githubusercontent.com/u/39455319?s=20&v=4]lswadmin left a comment (apache/hertzbeat#3210)https://github.com/apache/hertzbeat/issues/3210#issuecomment-2820574146
请问这个问题有修复吗
― Reply to this email directly, view it on GitHubhttps://github.com/apache/hertzbeat/issues/3210#issuecomment-2820574146, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APPC6S3YCTSJMNYWSL37ODL22X5BFAVCNFSM6AAAAAB2LNNPUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRQGU3TIMJUGY. You are receiving this because you commented.Message ID: @.***>
I have one machine,when test using curl -X POST https://ip/redfish/v1/SessionService/Sessions
-H "Content-Type: application/json"
-d '{"UserName": "username", "Password": "password"}' ; it is normal ,but the log of collector throw erros as follow
2025-04-24 11:58:13.554 [503488057071104-redfish-Fan-3381] ERROR org.apache.hertzbeat.collector.collect.redfish.RedfishCollectImpl Line:166 - Get redfish /redfish/v1/Chassis/System.Embedded.1/ThermalSubsystem/Fans collection resource error: Redfish session get resource error:StatusCode 404 2025-04-24 11:58:13.628 [503488057071104-redfish-Fan-3381] ERROR org.apache.hertzbeat.collector.collect.redfish.RedfishCollectImpl Line:166 - Get redfish /redfish/v1/Chassis/Enclosure.Internal.0-2:RAID.Integrated.1-1/ThermalSubsystem/Fans collection resource error: Redfish session get resource error:StatusCode 404 2025-04-24 11:59:14.457 [503488057071104-redfish-Battery-4182] ERROR org.apache.hertzbeat.collector.collect.redfish.RedfishCollectImpl Line:166 - Get redfish /redfish/v1/Chassis/System.Embedded.1/PowerSubsystem/Batteries collection resource error: Redfish session get resource error:StatusCode 404