Event log not updating when alert is acknowledged via API (using curl)

Hi,

When an alert is acknowledged via the LibreNMS UI, the event log updates correctly. However, when I acknowledge the alert using the API through a curl command, the event log does not reflect the update. Why is this happening?

Curl command used is:
curl -X PUT -H ‘X-Auth-Token: ApiToken’ -d ‘{“until_clear”: false, “note”: “Curl Test Ack”}’ \http://librenms01:8000/api/v0/alerts/alert_id

API Ack using Curl::

On Event Logs, there is no information of acknowledgment

Ack from UI::

On Event Logs, there is a entry of acknowledgement


Validate Output:

./validate.php

Component Version
LibreNMS 23.11.0 (2023-11-25T19:17:34+00:00)
DB Schema 2023_11_04_125846_packages_increase_name_column_length (273)
PHP 8.1.22
Python 3.10.13
Database MariaDB 10.5.24-MariaDB-1:10.5.24+maria~ubu2004
RRDTool 1.7.2
SNMP 5.9.3
===========================================

[OK] Installed from package; no Composer required
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service is enabled
[OK] Locks are functional
[OK] No python wrapper pollers found
[WARN] Using database for locking, you should set CACHE_DRIVER=redis
[OK] rrd_dir is writable
[OK] rrdtool version ok
[FAIL] Scheduler is not running
[FIX]:
sudo cp /opt/librenms/dist/librenms-scheduler.cron /etc/cron.d/
[WARN] Non-git install, updates are manual or from package


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.