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

IMPORTANT: Looking for contributors #28

Closed
domibarton opened this issue May 4, 2016 · 17 comments
Closed

IMPORTANT: Looking for contributors #28

domibarton opened this issue May 4, 2016 · 17 comments
Assignees

Comments

@domibarton
Copy link
Member

domibarton commented May 4, 2016

Hi there

TL;DR: Shifted from PHP to Python, no longer using PHP, looking for contributors.

A long time ago I've had a customer who was looking for a shiny & management-compliant monitoring dashboard. Because all the data was already available in Zabbix, I started to create a PHP-based WebUI which was accessing the Zabbix API. Unfortunately, I couldn't find a nice PHP API at that time and I started to develop my own API. This was when PhpZabbixApi was born!

A while ago I started to develop one of my projects in Python and after about one year my shift from PHP to Python (and Django) was complete. I've never looked back and I'm quite happy and impressed by Python and Django (lovely lovely Python & Django)!

Unfortunately, this means I'm no longer the "optimal" candidate to maintain my own code (don't know if I ever was ^^). This is one of my last PHP projects and it's kinda hard to support it today (my PHP knowledge is getting worse every day). I'm also relatively busy lately and therefore some of you already noticed that my response time is quite bad (sorry guys).

Long story short: I'm looking for contributors which help me to support the API, so that the community finally gets the support they deserve. Just send me a mail or comment this issue if you're interested in contributing - that would be awesome!

Cheers
Domi

@chadmandoo
Copy link

Hey I have a client implementing the Zabbix API and I will be using your library. I will be more than willing to help support the API.

@domibarton
Copy link
Member Author

Hi @chadmandoo

Unfortunately, I didn't see your message… Sorry for that.
Anyway, thanks for reaching out - this is great to hear :)

I'll add you as a contributor, just give me a second.

Cheers & Thanks
Domi

@domibarton domibarton self-assigned this May 3, 2017
@domibarton
Copy link
Member Author

@chadmandoo created a new team and added you to it…

@phansys
Copy link
Member

phansys commented Oct 27, 2017

Hi @domibarton, I'm interested in the development of this library, so I'm offering myself as contributor.
Many thanks for your work.

@ojgarciab
Copy link

Hi @domibarton I am using zabbix 2.2 and I'm migrating to 4.0, all my scripts based on PhpZabbixApi stopped working and composer still in 2.4 version. I'd like to help fixing/updating code.

@phansys
Copy link
Member

phansys commented Jun 26, 2019

@ojgarciab, if you have a chance, I'd like to check with you if the changes proposed at #39 fits with your needs. Please let me know and I'll try to provide any support that you could require.
Thank you in advance.

@ojgarciab
Copy link

ojgarciab commented Jun 27, 2019

@ojgarciab, if you have a chance, I'd like to check with you if the changes proposed at #39 fits with your needs. Please let me know and I'll try to provide any support that you could require.

Great work (and a huge merge): I'll wait for the code to be mixed to start helping with improvements.

The changes I made to my code were (valid with zabbix 2.2):

{
    "alias": "ALIAS",
    "name": "NAME",
    "surname": "SURNAME",
    "passwd": "LDAP",
    "usrgrps": [
        1,
        2
    ],
    "user_medias": [
        {
            "mediatypeid": "1",
            "sendto": "e@mail",
            "active": 0,
            "severity": 63,
            "period": "1-7,00:00-24:00"
        }
    ]
}

To (valid with zabbix 4.0):

{
    "alias": "ALIAS",
    "name": "NAME",
    "surname": "SURNAME",
    "passwd": "LDAP",
    "usrgrps": [
        {
            "usrgrpid": 1
        },
        {
            "usrgrpid": 2
        }
    ],
    "user_medias": [
        {
            "mediatypeid": "1",
            "sendto": [
                "e@mail"
            ],
            "active": 0,
            "severity": 63,
            "period": "1-7,00:00-24:00"
        }
    ]
}

The API error messages are very confusing:

API error -32602: Invalid parameter "/1/usrgrps/1": an array is expected.

So I'd try to improve type restrictions at library side.

@phansys
Copy link
Member

phansys commented Jun 28, 2019

I understand your concerns, but my PR is 20 months old, so I'm suspecting this will not be merged.
BTW, please take into account that what I have proposed should be compatible between major versions. Thus, IMO, the effort from that point of view should be focused on the build tool instead on the final implementation.
Therefore, if there is no feedback here, I'm seriously thinking about the possibility of publishing a fork based on the work from this repo, but including the changes I've proposed.
Anyway, thank you so much for your response.

@domibarton
Copy link
Member Author

@phansys I understand your concerns, I really do. Unfortunately, I'm no longer able to support this API, as I've abandoned PHP a long time ago. Sorry about that.

I had a quick look at your PR's and they look very well engineered. You mentioned you're thinking about a fork. I'm not a big fan of forks, because I think in OSS we should focus more on collaboration than just forking - IMHO forking should always be the last resort. However, I understand why you're thinking about forking, especially after you didn't get a response within 20 months ;)

As you already implied before correctly, focusing on the build tool instead of the final implementation is much more important now. Unfortunately, I can't do that. But... you can ;) Apparently you've the knowhow (much more than I do at this state ^^) and you seem to be a nice guy.

If you're OK with that, I'll add you as contributor and we can discuss how we should carry on with the project. I'd be really happy to give my project into the hands of somebody else who's capable of maintaining it and keeping it alive, or even improve it further :)

Let me know if you're interested.

Cheers
Domi

@ojgarciab
Copy link

If you're OK with that, I'll add you as contributor and we can discuss how we should carry on with the project. I'd be really happy to give my project into the hands of somebody else who's capable of maintaining it and keeping it alive, or even improve it further :)

Say yes! say yes! @phansys

From an improvement as your pull request we can have a very good base to continue sending contributions.

In addition, if the master branch is protected by forcing the CI to finish correctly (with unit tests) you could have one or two people reviewing each PR avoiding centralizing all the work in a single person.

@phansys
Copy link
Member

phansys commented Jun 28, 2019

Sure @domibarton! Thank you so much for sharing your opinion and your concerns.
I'll feel more comfortable working to improve this project too, if there is no need for a fork 👍
When we have discussed about your ideas, I think I'll be able to organize my time in order to give this project some effort.
Thank you too @ojgarciab for offering your support!

@phansys
Copy link
Member

phansys commented Nov 26, 2019

Hey @domibarton, how are you?
I'm in the middle of the migration from version 3.x to 4.x. For me, it would be a good opportunity to bring some time for this project.
Please, let me know if you're able to add my account as contributor in order to ease the process.
In that case, we could create a project board in order to manage the next steps.

Thank you in advance.

@nesies
Copy link

nesies commented Jan 16, 2020

@phansys fork ! fork !

@domibarton
Copy link
Member Author

thanks @Seisen for nagging me :)

@phansys you should've an invitation!

@phansys
Copy link
Member

phansys commented Jan 16, 2020

Thank you so much! 🎉

@domibarton
Copy link
Member Author

Thank you ;) And sry for the delay!

@gustavobborges
Copy link

gustavobborges commented Mar 8, 2021

Hi Guys, i'm trying use hostGet (or other functions api) in my ZabixController.. but i need use parameters like 'hostid = 10084'...
i'm trying do it:

"
/**
* Create a new Zabbix API instance.
*
* @return void
*/
public function __construct()
{
$this->zabbix = app('zabbix');
}

/**
 * Get all the Zabbix host groups.
 *
 * @return array
 */
public function index()
{
    return $this->zabbix->hostGet([
        'output' => 'extend',
        'search' => array('hostid' => '10084')
    ]);
}

"

but it comming all data....

anybody know why parameters not working???

thanks!!! *sorry for my english.

congrats for repository and so thanks!

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

No branches or pull requests

6 participants