Industry insights on IT and cybersecurity from the IT Great Falls team: practical articles on protecting your data, getting more from your technology, and using AI safely at work.

1. Enable the Zabbix API
curl -s -X POST -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"apiinfo.version","params":{},"id":1}' \
https://<ZABBIX_HOST>/zabbix/api_jsonrpc.php
A version response confirms the API is reachable.
2. Creating Items: Host‑Level vs Template‑Level
2.1 Host‑Level Items
→ Save.
2.2 Template‑Level Items
Pros/Cons
3. Crafting Trigger Expressions
All on Data Collection → Hosts → Triggers or Templates → Triggers, no {} or line breaks.
eventlog[Security,,,,^4625$, ,skip].logeventid(300)=1 and eventlog[Security,,,,^4625$, ,skip].nodata(300)=0
eventlog[Application,,,,^1234$, ,skip].logeventid(7d)=0
eventlog[Security,,,,,,skip].logregexp(300,"(?is)^(?!.*Account Name:\s*Guest)[\s\S]+$")=1
4. Defining the Inline Acknowledge Script
#!/bin/sh
# ─── CONFIGURATION ────────────────────────────────────────────────────────────
ZBX_URL="https://<ZABBIX_HOST>/zabbix/api_jsonrpc.php"
API_TOKEN="YOUR_TOKEN"
# ─────────────────────────────────────────────────────────────────────────────
# Event and host details (macros will be replaced by Zabbix)
EVENT_ID="{EVENT.ID}"
HOSTNAME="{HOST.NAME}"
# Determine the acknowledgement comment
COMMENT="{USER.PARAM1}"
if [ -z "$COMMENT" ] || [ "$COMMENT" = "{USER.PARAM1}" ]; then
COMMENT="Acknowledged event ${EVENT_ID} on host ${HOSTNAME}"
fi
# Escape double quotes in comment to safely include in JSON
COMMENT_ESCAPED=$(echo "$COMMENT" | sed 's/\"/\\\"/g')
# Build the JSON payload for the API request (action 6 = acknowledge + add message)
payload=$(printf \
'{"jsonrpc":"2.0","method":"event.acknowledge","params":{"eventids":["%s"],"action":6,"message":"%s"},"auth":"%s","id":1}' \
"$EVENT_ID" "$COMMENT_ESCAPED" "$API_TOKEN")
# Send the API request to acknowledge the event
RESPONSE=$(curl -s --http1.1 -H 'Content-Type: application/json' --data "$payload" "$ZBX_URL")
echo "DEBUG: API response → $RESPONSE"
# Optionally, check for success in the response and output a confirmation
if echo "$RESPONSE" | grep -q "\"eventids\":"; then
echo ">> Acknowledged event ${EVENT_ID} on ${HOSTNAME}"
else
echo "ERROR: Failed to acknowledge event ${EVENT_ID}. Response: $RESPONSE"
fi
Make sure to change the ZBX_URL and API_TOKEN to match your environment
5. Linking the Script in an Action
6. Verify End‑to‑End
New-EventLog –LogName Application –Source "TestSource"
Write-EventLog –LogName Application –Source "TestSource" –EntryType Error –EventId 4625 –Message "Test 4625"
With this, you have a complete, template‑aware Windows Event Log monitoring and auto‑acknowledge solution in Zabbix 7.0.16—everything defined inline under Alerts, with no external files.
Q:
We are based in Great Falls, Montana, and we support businesses across Montana. Most day-to-day support is handled remotely, and we come on site when hands-on work is needed.
Q:
Email [email protected] to open a ticket, or call (406) 866-0128. Every request is tracked so nothing gets lost.
Q:
Yes. We support clients who must meet HIPAA and NIST requirements, and we make security decisions with those frameworks in mind for every network we manage.
Q:
Yes. IT Net Labs is our AI integration, development, customization and automation branch. It builds voice AI agents, workflow automation, and custom tools on top of the systems you already use.
Tell us what you need help with and we will get back to you. Please include a phone number so we can reach you.
Already a client? Email [email protected] to open a ticket.
PO Box 3574, Great Falls, MT 59403-3574

IT Great Falls provides managed IT services, support, and protection for businesses in Montana. Where Technology Meets Excellence.
More
© Copyright 2026. IT Great Falls LLC. All rights reserved.