salt icon indicating copy to clipboard operation
salt copied to clipboard

Improve Zabbix returner

Open Flowdalic opened this issue 4 years ago • 4 comments

Cleanup the Zabbix returner code and consider file Zabbix agent 2 configuration file also (see #61313).

Previously Zabbix returner would only consider zabbix_agentd.conf (Zabbix agent 1), now it also considers zabbix_agent2.conf (Zabbix agent 2) configuration files.

Flowdalic avatar Dec 02 '21 12:12 Flowdalic

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

welcome[bot] avatar Dec 02 '21 12:12 welcome[bot]

Hi! I'm your friendly PR bot!

You might be wondering what I'm doing commenting here on your PR.

Yes, as a matter of fact, I am...

I'm just here to help us improve the documentation. I can't respond to questions or anything, but what I can do, I do well!

Okay... so what do you do?

I detect modules that are missing docstrings or "CLI Example" on existing docstrings! When I was created we had a lot of these. The documentation for these modules need some love and attention to make Salt better for our users.

So what does that have to do with my PR?

I noticed that in this PR there are some files changed that have some of these issues. So I'm leaving this comment to let you know your options.

Okay, what are they?

Well, my favorite, is that since you were making changes here I'm hoping that you would be the most familiar with this module and be able to add some other examples or fix any of the reported issues.

If I can, then what?

Well, you can either add them to this PR or add them to another PR. Either way is fine!

Well... what if I can't, or don't want to?

That's also fine! We appreciate all contributions to the Salt Project. If you can't add those other examples, either because you're too busy, or unfamiliar, or you just aren't interested, we still appreciate the contributions that you've made already.

Whatever approach you decide to take, just drop a comment here letting us know!

Detected Issues (click me)
Check Known Missing Docstrings...........................................Failed
- hook id: invoke
- exit code: 1

/home/runner/.cache/pre-commit/repo80cx_edx/py_env-python3/lib/python3.9/site-packages/_distutils_hack/init.py:33: UserWarning: Setuptools is replacing distutils. warnings.warn("Setuptools is replacing distutils.") The function 'zbx' on 'salt/returners/zabbix_return.py' does not have a docstring The function 'zabbix_send' on 'salt/returners/zabbix_return.py' does not have a docstring The function 'returner' on 'salt/returners/zabbix_return.py' does not have a docstring Found 3 errors


Thanks again!

github-actions[bot] avatar Sep 21 '22 16:09 github-actions[bot]

Hi! I'm your friendly PR bot!

You might be wondering what I'm doing commenting here on your PR.

Yes, as a matter of fact, I am...

I'm just here to help us improve the documentation. I can't respond to questions or anything, but what I can do, I do well!

Okay... so what do you do?

I detect modules that are missing docstrings or "CLI Example" on existing docstrings! When I was created we had a lot of these. The documentation for these modules need some love and attention to make Salt better for our users.

So what does that have to do with my PR?

I noticed that in this PR there are some files changed that have some of these issues. So I'm leaving this comment to let you know your options.

Okay, what are they?

Well, my favorite, is that since you were making changes here I'm hoping that you would be the most familiar with this module and be able to add some other examples or fix any of the reported issues.

If I can, then what?

Well, you can either add them to this PR or add them to another PR. Either way is fine!

Well... what if I can't, or don't want to?

That's also fine! We appreciate all contributions to the Salt Project. If you can't add those other examples, either because you're too busy, or unfamiliar, or you just aren't interested, we still appreciate the contributions that you've made already.

Whatever approach you decide to take, just drop a comment here letting us know!

Detected Issues (click me)
Check Known Missing Docstrings...........................................Failed
- hook id: invoke
- exit code: 1

/home/runner/.cache/pre-commit/repo80cx_edx/py_env-python3/lib/python3.9/site-packages/_distutils_hack/init.py:33: UserWarning: Setuptools is replacing distutils. warnings.warn("Setuptools is replacing distutils.") The function 'zbx' on 'salt/returners/zabbix_return.py' does not have a docstring The function 'zabbix_send' on 'salt/returners/zabbix_return.py' does not have a docstring The function 'returner' on 'salt/returners/zabbix_return.py' does not have a docstring Found 3 errors


Thanks again!

github-actions[bot] avatar Sep 21 '22 16:09 github-actions[bot]

This is going to need tests. and pre-commit to be fixed.

whytewolf avatar Sep 21 '22 16:09 whytewolf

Mentioning @waynew here since he is working on a returners test overhaul at the moment.

MKLeb avatar Oct 07 '22 05:10 MKLeb

Going ahead and closing this PR - @Flowdalic if you want to resume work on it, just reach out to a core team member in IRC or Slack (you can also try pinging on here, but GitHub notifications often just get lost in the noise :sweat:)

As mentioned in a previous comment, if you don't get this updated then I should end out getting to it with my work on #61757 :+1: Thanks again!

waynew avatar Oct 19 '22 15:10 waynew