qk4l / zabbix-cachet

Python script which sync Zabbix IT Services with Cachet
MIT License
80 stars 32 forks source link

Component doesn't update #48

Closed plagoutte closed 5 years ago

plagoutte commented 5 years ago

Hello,

I use Zabbix 3.0.25 and Cachet 2.2.0 with the latest version of zabbix-cachet. I have an incident on a service, but zabbix-cachet doesn't display it on Cachet : Zabbix services image My logs (DEBUG) : http://i.plagoutte.eu:8001/#IEV9392f_nzrnqgM4KHWKw https://hastebin.com/ipazisumin.php

Thank you in advance, Best regards

qk4l commented 5 years ago

Hi,

I look through your debug but it ends exactly at place there "Trigger Watcher" starts his job.

Did process freeze or you cut a log?

On Mon, Mar 11, 2019, 10:34 PM Pierre LAGOUTTE notifications@github.com wrote:

Hello,

I use Zabbix 3.0.25 and Cachet 2.2.0 with the latest version of zabbix-cachet. I have an incident on a service, but zabbix-cachet doesn't display it on Cachet : [image: Zabbix services] https://user-images.githubusercontent.com/13762047/54155858-4609f280-4445-11e9-9e7e-d506974e49d3.png [image: image] https://user-images.githubusercontent.com/13762047/54155898-58842c00-4445-11e9-8284-504d12666539.png My logs (DEBUG) : http://i.plagoutte.eu:8001/#IEV9392f_nzrnqgM4KHWKw

Thank you in advance, Best regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/qk4l/zabbix-cachet/issues/48, or mute the thread https://github.com/notifications/unsubscribe-auth/AIAVS_lpE6lsRkg5rWp49Qi_-ZMPjh_yks5vVr3lgaJpZM4bpgZI .

-- Best regards, Artyom

plagoutte commented 5 years ago

Hello,

Thank you for the reply. Oh sorry, it seems that I cut the logs at the wrong place... I just updated the paste with the full logs.

Thank you in advance Best regards

Hi, I look through your debug but it ends exactly at place there "Trigger Watcher" starts his job. Did process freeze or you cut a log? On Mon, Mar 11, 2019, 10:34 PM Pierre LAGOUTTE @.***> wrote: Hello, I use Zabbix 3.0.25 and Cachet 2.2.0 with the latest version of zabbix-cachet. I have an incident on a service, but zabbix-cachet doesn't display it on Cachet : [image: Zabbix services] https://user-images.githubusercontent.com/13762047/54155858-4609f280-4445-11e9-9e7e-d506974e49d3.png [image: image] https://user-images.githubusercontent.com/13762047/54155898-58842c00-4445-11e9-8284-504d12666539.png My logs (DEBUG) : http://i.plagoutte.eu:8001/#IEV9392f_nzrnqgM4KHWKw Thank you in advance, Best regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#48>, or mute the thread https://github.com/notifications/unsubscribe-auth/AIAVS_lpE6lsRkg5rWp49Qi_-ZMPjh_yks5vVr3lgaJpZM4bpgZI . -- Best regards, Artyom

plagoutte commented 5 years ago

Hi,

I have some problems with my paste server... I uploaded the new logs here : https://hastebin.com/ipazisumin.php

Thank you

qk4l commented 5 years ago

Hm, based on debug log you child services under SC001 do not have linked triggers (triggerid = 0). Line 204-278

2019-03-17 12:06:49 UTC DEBUG: (MainThread) https://searcraft.fr:443 "POST /zabbix/api_jsonrpc.php HTTP/1.1" 200 984
2019-03-17 12:06:49 UTC DEBUG: (MainThread) Response Code: 200
2019-03-17 12:06:49 UTC DEBUG: (MainThread) Response Body: {
    "jsonrpc": "2.0",
    "result": [
        {
            "algorithm": "1",
            "sortorder": "0",
            "name": "MineCraft : BungeeCord",
            "showsla": "1",
            "dependencies": [],
            "status": "0",
            "goodsla": "99.0500",
            "triggerid": "0",
            "serviceid": "12"
        },

It's the reason why syncing is not working. I see on screenshot that "MineCraft : BungeeCord" in a problem status but Zabbix API says that this service does not have linked triggers or dependencies. =(

plagoutte commented 5 years ago

Maybe I didn't configured Zabbix correctly ? "Minecraft : BungeeCord" isn't linked directly to a trigger, but it has a child "Status" linked to the trigger (see screenshot below). If I direct link "MineCraft : Bungeecord" to the trigger, zabbix-cachet doesn't manage it (logs in that case : https://hastebin.com/ogefurasup.php) image

qk4l commented 5 years ago

Do not create Status child services. Link triggers directly to "Minecraft : BungeeCord" and restart zabbix-cachet.

Response from zabbix have to be have triggerid with ID of trigger which status will be monitored and sync to Cachet.

plagoutte commented 5 years ago

I did that the first time I started zabbix-cachet, but it says service 11 (Hôte) haven't got any child or trigger, even if it has children : https://hastebin.com/ejiceqanax.coffeescript

image

Components on Cachet aren't created, but if I add a "Status" child on each service, they are created.

qk4l commented 5 years ago

It's look like Zabbix do not show triggers for user which your used to access its API.

Please check permission. The simplest way is to login in WEB UI and look on page with IT Services.

plagoutte commented 5 years ago

It worked, I will think about that, next time :)

Thank you very much !