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

error #11

Open
leyifoxit opened this issue Mar 16, 2023 · 0 comments
Open

error #11

leyifoxit opened this issue Mar 16, 2023 · 0 comments

Comments

@leyifoxit
Copy link

image

(venv) root@pc7:/ops/tools/idc_ping_monitor-master# python collection_to_prometheus.py
Traceback (most recent call last):
File "/root/ops/tools/idc_ping_monitor-master/collection_to_prometheus.py", line 73, in
(lost_package_num , rrt) = getMonitorData(os.path.join(paras['data_dir'] , ISP , filename))
File "/root/ops/tools/idc_ping_monitor-master/collection_to_prometheus.py", line 61, in getMonitorData
lost_package_num = int(results[2][0][1])
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
(venv) root@pc7:
/ops/tools/idc_ping_monitor-master# python3 collection_to_prometheus.py
Traceback (most recent call last):
File "/root/ops/tools/idc_ping_monitor-master/collection_to_prometheus.py", line 73, in
(lost_package_num , rrt) = getMonitorData(os.path.join(paras['data_dir'] , ISP , filename))
File "/root/ops/tools/idc_ping_monitor-master/collection_to_prometheus.py", line 61, in getMonitorData
lost_package_num = int(results[2][0][1])
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
(venv) root@pc7:~/ops/tools/idc_ping_monitor-master# vim collection_to_prometheus.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant