"Error: No config item" on making a global setting for email alerts

While making a global settings for email alerting, i see error as “Error: No Config item” when clicking on email transport. Following is my ./validate.php.

./validate.php

Component Version
LibreNMS 1.37-75-g8cc8eb8
DB Schema 245
PHP 7.2.2
MySQL 5.5.56-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2
====================================

[OK] Composer Version: 1.6.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

I think that you must configure email transport firstly, As for me I am using smtp with our own mail server.

Does this happen on all the items on that page?

Hello,
i do have the same problem as new user of LibreNMS. My validate report is clean and i’m freshly updated.

As i touch any setup field in General Alert Setting or Email transport, i have the red popup: ERROR no config item. Starting with the email settings as suggested does not change the behavior for me.

Leaving the page and coming back shows no saved parameters. The process is Ajaxified, but Javascript console does not show a related error.
I tried to insert the parameters in the config.php file, but they did not appear in the webGui and that does not work either.

Where are these settings supposed to be saved? In config.php or in the DB?

I roughly set up the Slack channel as an alternative, and the test works in that case (does not mean i have a meaningful message yet …)
I will have a look at the db for the parameters.

In the meantime, Any clue appreciated.
Cheers;
JP

we’ve found the issue, it will be available soon - updating should fix it.

1 Like

Hello laf,
thanks very much for the swift answer. Keep on the good work.
JP

Thanks Laf. It worked.

This seem to have re-appeared… Additionally, no alerting is functioning.

Anything I touch in “Alert settings” tab creates the “ERROR: No config item” dialog.

Thinking perhaps this old mechanism for alerting has finally been killed off (As per the “Deprecated” warning suggests it might be) I have configured the new “Alert Transport” for email and for Slack. Neither is generating alerts.

Testing the mail Alert Transport reports success on the UI but does not generate any email. This has been confirmed via SMTP relay logs (which I have confirmed the LibreNMS server has connectivity). I have also enabled SMTPDebug=true in /opt/librenms/includes/functions.php yet even on a test, no activity related to SMTP/mail/etc appears in the /opt/librenms/logs/librenms.log

Testing the Slack Alert Transport does generate a test message to Slack. However, alerts from rules do not send any messages to Slack even though this Alert Transport is togged “on” for default.

I understand these issues might not all be related. Just wanting to fully document steps tried to this point.

-Techno

After doing some digging in the Chrome dev tools, it appears the ajax POST to LibreNMS doesn’t contain a a value for config_id

POST /ajax_form.php HTTP/1.1
Host: librenms.EXAMPLE.COM
Connection: keep-alive
Content-Length: 52
Pragma: no-cache
Cache-Control: no-cache
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://librenms.EXAMPLE.COM
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://librenms.EXAMPLE.COM/settings/sub=alerting/
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: PHPSESSID=nk3vc9jg1qoqkdffqb0rmj5sj3; XSRF-TOKEN=eyJpdiI6IkVsUVFLU0FDM09EdGV4NjZ1SnFKSHc9PSIsInZhbHVlIjoiRlVhamtUQnduM0VGSkRpam9vTW1TVHVnK0JUK0ZVc2s4MERnb04wVlorZlwvbjFKdlF3MFA3WUJiYllOKzR0RzRpMWRQT3g5SVdyTmdTUXJBSnNUczJ3PT0iLCJtYWMiOiJhYmFjMDIwZmNkZTJkMmVkMjRmZjUzNWI0MTY2OWRjZTViYzU5ZjE1NWM3NTQ2YTU2YmUxZjRlZjY3OTZmMDY5In0%3D; librenms_session=eyJpdiI6Inl2V1pIN1NZN2ROd1wvdm5odW02WW1BPT0iLCJ2YWx1ZSI6InNkcllhWWhPMkRtS0tHWXJXZVwvMndoXC85WGRCaHB0MFBONzBNcnliZWV0N0lNbmh0aEVCMDNUYjJIcldyU2MxamV3T0NwOXNXTW1HdU5aYlpRa0VkSWc9PSIsIm1hYyI6ImU3MTAyMDUwYzYwNTRmOGM4NDUwNjkwYWM3Y2Q2M2JmOGY3MzRkNDI5MmYwY2JmMWQxNzkzNWY0NmJmYmQyZGUifQ%3D%3D

type=update-config-item&config_id=&config_value=asdf

For completeness:

$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.42.01-47-g460d95e
DB Schema | 258
PHP       | 7.0.30-0ubuntu0.16.04.1
MySQL     | 10.0.34-MariaDB-0ubuntu0.16.04.1
RRDTool   | 1.5.5
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.7.2
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

Just to chime in, I’m seeing the same thing:

====================================

Component Version
LibreNMS 1.42.01-47-g460d95e
DB Schema 258
PHP 7.0.30-0ubuntu0.16.04.1
MySQL 10.0.34-MariaDB-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Discovery has not completed in the last 24 hours.
[FIX] Check the cron job to make sure it is running and using discovery-wrapper.py

I have discovery manually disabled. My last daily.sh:

Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

Same problem here on a new install, even if I configure the mail transport, servers, credentials, etc.

The red box appears everytime I try to populate fields.

Interested in following this thread for the answer.

BeDazzleMe.

Hi Guys.
I have the same problem when I tray to change “stacked graph” option, under “WebUI Settings” menu.
Can I change Stacked graph in config.php file?

best regards.

I have got exactly the same problem but the error does not appear in the email settings section but every where, this is fresh install for me on aws, can someone please assist?

HI I am also facing the same issue after the update, alerts stopped working and get
ERROR: No config item when I try to change email settings

====================================

Component Version
LibreNMS 1.42.01-50-g7298c13
DB Schema 258
PHP 7.0.30-0ubuntu0.16.04.1
MySQL 10.0.34-MariaDB-0ubuntu0.16.04.1
RRDTool 1.5.5
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

Known issue being looked at.

Test https://docs.librenms.org/#Alerting/Testing/#transports

Hi guys. the issue has been resolved with the last update.
Everything works fine now.
Thanks a lot.!!!

Can confirm, the e134a55 update seems to have fixed the problem. Thanks for the fast resolution!

Confirmed! Resolved here, as well.

Thank you for your effort and taking the time to resolve quickly!