Project

General

Profile

Bug #21367

'ZabbixSender' object has no attribute 'hostname'

Added by jiantao zhu over 6 years ago. Updated over 6 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
zabbix module
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
upgrade/luminous-x
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

there is a bug in ceph-zabbix and the log in ceph-mgr.lum001.log is:

2017-09-10 23:14:01.259667 7f21c2ada700 20 mgr[zabbix] Waking up for new iteration
2017-09-10 23:14:01.260494 7f21c2ada700 20 mgr[zabbix] Sending data to Zabbix server 192.168.217.220
2017-09-10 23:14:01.260606 7f21c2ada700 20 mgr[zabbix] {'rd_bytes': 10464643072L, 'total_bytes': 267905822720L, 'overall_status_int': 1, 'osd_latency_apply_min': 0L, 'osd_latency_apply_max': 0L, 'num_osd_up': 5, 'osd_max_fill': 6.713372384891179, 'osd_backfillfull_ratio': 0.8999999761581421, 'osd_latency_commit_max': 0L, 'wr_bytes': 27648L, 'osd_latency_commit_min': 0L, 'num_mon': 3, 'osd_min_fill': 2.5804927156157333, 'total_used_bytes': 11772850176L, 'wr_ops': 139L, 'osd_nearfull_ratio': 0.8500000238418579, 'osd_latency_apply_avg': 0.0, 'overall_status': u'HEALTH_WARN', 'num_pg': 136L, 'osd_latency_commit_avg': 0.0, 'osd_avg_fill': 4.394398769116831, 'num_osd': 5, 'osd_full_ratio': 0.949999988079071, 'total_objects': 25L, 'num_pools': 2, 'num_osd_in': 5, 'num_pg_temp': 0, 'rd_ops': 12179016L, 'total_avail_bytes': 256132972544L}
2017-09-10 23:14:01.260815 7f21c2ada700 0 mgr[zabbix] Exception when sending: 'ZabbixSender' object has no attribute 'hostname'
2017-09-10 23:14:01.260883 7f21c2ada700 20 mgr[zabbix] Sleeping for 30 seconds
2017-09-10 23:14:01.895316 7f21dc569700 4 mgr.server handle_report from 0x7f21f5c6d000 mon,lum001
2017-09-10 23:14:01.895322 7f21dc569700 20 mgr.server handle_report updating existing DaemonState for mon,lum001
2017-09-10 23:14:01.895325 7f21dc569700 20 mgr update loading 0 new types, 0 old types, had 586 types, got 1734 bytes of data
2017-09-10 23:14:01.900121 7f21dc569700 4 mgr.server handle_report from 0x7f21f5d4b800 mon,lum002
2017-09-10 23:14:01.900124 7f21dc569700 20 mgr.server handle_report updating existing DaemonState for mon,lum002
2017-09-10 23:14:01.900126 7f21dc569700 20 mgr update loading 0 new types, 0 old types, had 586 types, got 1734 bytes of data
2017-09-10 23:14:01.904279 7f21dc569700 4 mgr.server handle_report from 0x7f21f5d67000 mon,lum003

module.py View - ceph-master\src\pybind\mgr\zabbix\module.py (9.05 KB) jiantao zhu, 09/12/2017 07:38 AM

History

#1 Updated by jiantao zhu over 6 years ago

The bug is solved by myself.See module.py

#2 Updated by John Spray over 6 years ago

Jiantao: thank you, would it be possible to open a github pull request with your fix?

#3 Updated by jiantao zhu over 6 years ago

You are welcome, I will do it as soon as I can.

#5 Updated by John Spray over 6 years ago

  • Subject changed from ceph-zabbix bug to 'ZabbixSender' object has no attribute 'hostname'
  • Category changed from ceph-mgr to zabbix module
  • Status changed from New to Fix Under Review

#6 Updated by John Spray over 6 years ago

  • Status changed from Fix Under Review to Can't reproduce

Also available in: Atom PDF