apache / apache/hertzbeat

[BUG] Monitoring server hardware errors through redfish

Open
#3,210 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### 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

![Image](https://github.com/user-attachments/assets/c188cf27-e816-4092-86dc-143ac739130d)

![Image](https://github.com/user-attachments/assets/9c690808-9ae7-4c6e-9752-4fdc8d225050)

### Expected Behavior

可以正常通过redfish 监控服务器硬件信息

### Steps To Reproduce

_No response_

### Environment

```markdown
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_

Contributor guide

Open the contributing guide

Research direction

Start in RedfishCollectImpl, at the session creation path reported at line 68, and inspect how the Redfish request handles the HTTP 405 response. Use the supplied logs and HertzBeat v1.70 environment as the reproduction context; done means Redfish monitoring can collect server hardware information without the session-creation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.