HI team,

Please find the debug file attached to this mail.

Thanks & regards

Sagar  Penti

7977783978

On 2023-09-08 13:26, Mike Stupalov via observium wrote:

Hi,

at first for all readers of ML, we do not know and not discuss what happening in any other NMSes.

About notifications in Observium, you should check that you Telegram contact correctly received test notification(s). From cli run debug notification (contact_id is number for contact you can see on contacts page):
./test_alert.php -d -c <contact_id>

If test alerts send correctly, check that this contact associated with Alert checker (show screenshot with contact association).

And at last point you can test exactly alert notification, from cli run debug command:
./test_alert.php -d -a <alert_entry>

Where alert_entry is number for specific alert, you can see it in url for for specific alert (click to (i) icon at right of the alert row).
Yah, I know this is not intuitive, will improved in future.

You can send debug output for previous cli commands to me, I will look if there is troubles.

Sagar Penti via observium wrote on 2.09.2023 10:28:

Hi Team,

We are facing device up down status will be not sending telegrams. As we are seeing device is up but, in the alerts, it will be not showing up showing status failed. I think issue with my switch, but it is up & working with LibreNMS properly. Anyone knows what the issue of it is.

Version: 23.1.12493

--

Thanks & Regards
Sagar Penti
7977783978
Navkar Supertech Pvt Ltd

N�n�r����)em�h�yhiם�w^��

--
Mike Stupalov,
Discord channel: https://discord.gg/GjpNXKWm8W
Observium Limited, https://observium.org

_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-le...@lists.observium.org
[root@speedtest observium]# ./test_alert.php -d -c  alerter.php
DEBUG!
DEFINITIONS loaded by: 0.0733721 ms

DEFINITIONS in memory: 15.3MB


SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 
'dbSchema';]
SQL RUNTIME[0.00073695s]

SQL[SELECT @@SESSION.sql_mode;]
SQL RUNTIME[0.00042892s]

SQL[SET SESSION `sql_mode` = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION']
SQL RUNTIME[0.00029802s]
DB mode(s) disabled: STRICT_TRANS_TABLES, ERROR_FOR_DIVISION_BY_ZERO

SQL[SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);]
SQL RUNTIME[0.00034523s]

SQL[SELECT * FROM `config`]
SQL RUNTIME[0.00064206s]

CMD[/sbin/fping -v 2>&1]

CMD EXITCODE[0]
CMD RUNTIME[0.0035s]
CMD EXITDELAY[10ms]
STDOUT[
/sbin/fping: Version 3.10
/sbin/fping: comments to da...@schweikert.ch
]

CMD[/bin/hostname -f]

CMD EXITCODE[0]
CMD RUNTIME[0.0087s]
STDOUT[
speedtest
]
CACHE DISABLED. Disabled in config.
Observium CE 23.1.12493
Test Alert Notification


SQL[SELECT * FROM `alert_tests` WHERE 1]
SQL RUNTIME[0.00067997s]
Cached 9 alert rules.

SQL[SELECT * FROM `alert_assoc`]
SQL RUNTIME[0.05350804s]

SQL[SELECT * FROM `alert_contacts` WHERE `contact_id` = 'alerter.php']
SQL RUNTIME[0.00050592s]
 o Unknown contact      Contact ID alerter.php not exist.

SQL[SELECT * FROM `notifications_queue` WHERE 1 AND 0]
SQL RUNTIME[0.00034189s]
[root@speedtest observium]# ./test_alert.php -d -a alerter.php
DEBUG!
DEFINITIONS loaded by: 0.0717020 ms

DEFINITIONS in memory: 15.3MB


SQL[SELECT `attrib_value` FROM `observium_attribs` WHERE `attrib_type` = 
'dbSchema';]
SQL RUNTIME[0.00085998s]

SQL[SELECT @@SESSION.sql_mode;]
SQL RUNTIME[0.00030589s]

SQL[SET SESSION `sql_mode` = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION']
SQL RUNTIME[0.00024199s]
DB mode(s) disabled: STRICT_TRANS_TABLES, ERROR_FOR_DIVISION_BY_ZERO

SQL[SELECT TIMEDIFF(NOW(), UTC_TIMESTAMP);]
SQL RUNTIME[0.00025511s]

SQL[SELECT * FROM `config`]
SQL RUNTIME[0.00039101s]

CMD[/sbin/fping -v 2>&1]

CMD EXITCODE[0]
CMD RUNTIME[0.004s]
STDOUT[
/sbin/fping: Version 3.10
/sbin/fping: comments to da...@schweikert.ch
]

CMD[/bin/hostname -f]

CMD EXITCODE[0]
CMD RUNTIME[0.0089s]
STDOUT[
speedtest
]
CACHE DISABLED. Disabled in config.
Observium CE 23.1.12493
Test Alert Notification


SQL[SELECT * FROM `alert_tests` WHERE 1]
SQL RUNTIME[0.00066996s]
Cached 9 alert rules.

SQL[SELECT * FROM `alert_assoc`]
SQL RUNTIME[0.00020814s]

SQL[SELECT * FROM `alert_table` WHERE `alert_table_id` = 'alerter.php']
SQL RUNTIME[0.32041812s]

SQL[SELECT * FROM `devices` WHERE `device_id` = '']
SQL RUNTIME[0.00048494s]

SQL[SELECT * FROM `devices` WHERE `device_id` = '']
SQL RUNTIME[0.00041509s]

SQL[SELECT * FROM `` WHERE ``.`` = '']
SQL RUNTIME[0.00007987s]
SQL ERROR[Error in query: (Incorrect table name '') 1103]
JSON DECODE[Not string passed]
JSON RAW[


 > $str /opt/observium/includes/common.inc.php:5433
null

]

SQL[SELECT * FROM `devices` WHERE `device_id` = '']
SQL RUNTIME[0.00040889s]

SQL[SELECT * FROM `alert_contacts` WHERE `contact_disabled` = 0 AND 
`contact_id` IN (SELECT `contact_id` FROM `alert_contacts_assoc` WHERE 
`aca_type` = 'alert' AND `alert_checker_id` = '');]
SQL RUNTIME[0.15346909s]
SQL WARNINGS[
 1292: Truncated incorrect DECIMAL value: ''
]

SQL[SELECT * FROM `notifications_queue` WHERE 1 AND 0]
SQL RUNTIME[0.00042105s]
_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-le...@lists.observium.org

Reply via email to