Skip to content

cannot get mailGraph running #52

@blackbasket

Description

@blackbasket

Hi,

I set up mailGraph following this article (https://znil.net/index.php?title=Zabbix_mailGraph_installieren_-_Trigger_Alerts_Emails_mit_Grafiken). But now I am getting errors if I try to send a test mail using cli as well as WebUI.

CLI error:

PHP Fatal error:  Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, true given in /var/www/html/mailGraph/mailGraph.php:885
Stack trace:
#0 {main}
  thrown in /var/www/html/mailGraph/mailGraph.php on line 885

CLI event data:

{
    "jsonrpc": 2,
    "result": [
        {
            "eventid": 2227,
            "source": 0,
            "object": 0,
            "objectid": 24499,
            "clock": 1737716209,
            "value": 1,
            "acknowledged": 0,
            "ns": 496681766,
            "name": "Interface 1(xxxx-P01): Bits sent",
            "severity": 2,
            "r_eventid": 0,
            "c_eventid": 0,
            "correlationid": 0,
            "userid": 0,
            "cause_eventid": 0,
            "acknowledges": [],
            "relatedObject": {
                "triggerid": 24499,
                "expression": "{35673}>0",
                "description": "Interface 1(xxxx-P01): Bits sent",
                "url": "",
                "status": 0,
                "value": 1,
                "priority": 2,
                "lastchange": 1737716209,
                "comments": "",
                "error": "",
                "templateid": 0,
                "type": 0,
                "state": 0,
                "flags": 0,
                "recovery_mode": 0,
                "recovery_expression": "",
                "correlation_mode": 0,
                "correlation_tag": "",
                "manual_close": 0,
                "opdata": "",
                "event_name": "",
                "uuid": "",
                "url_name": ""
            },
            "opdata": "",
            "suppression_data": [],
            "suppressed": 0,
            "urls": []
        }
    ],
    "id": 3
}

WebUI error:

[Mailgraph Webhook] Received response:
MailGraph notification failed: [MailGraph Webhook] Processing of mailGraph.php failed:

I do not find anything in the logs. The folder is still empty...

Image

Regards,
Marcel

Metadata

Metadata

Assignees

Labels

Configuration issueFuture releaseThis request or enhancement is not actively worked on for a next release and is in backlogdocumentationImprovements or additions to documentationenhancementNew feature or requestv3.x

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions