Daily.php is giving error on notifications Fail

Hi!

I recently installed LibreNMS and its been running great. I got notification today stating error -->

when i run from Cli it given me following error

./daily.sh

librenms@SLM:~$ ./daily.sh
Updating to latest codebase OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications FAIL
Caching PeeringDB data OK
librenms@SLM:~$ whoami
librenms
librenms@SLM:~$

when I show daily log --> Some how I cant attach daily.log with this post…:frowning:

I got following machine setup

Linux SLM 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Apache/2.4.18 (Ubuntu) Server
PHP Version => 7.0.22-0ubuntu0.16.04.1

Please guide Thanks :slight_smile:

Here is the daily log error

Fetching notifications
[ Thu, 05 Oct 2017 13:00:51 +1100 ] http://www.librenms.org/notifications.rss PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_string() in /opt/librenms/includes/notifications.php:38
Stack trace:
#0 /opt/librenms/includes/notifications.php(60): get_notifications()
#1 /opt/librenms/daily.php(120): post_notifications()
#2 {main}
thrown in /opt/librenms/includes/notifications.php on line 38

are behind a proxy? looks like it cant reach librenms.org for the notifications.

Please install php-xml: apt install php7.0-xml

2 Likes

Nope its going through transparent proxy all works well when i try using eget librenms.org

but hey @murrant you are life savour :slight_smile:

after installing php-xml All good :slight_smile:

librenms@SLM:~$ ./daily.sh
Updating to latest codebase OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
librenms@SLM:~$

:star_struck:

Cheers

Atif

Yeah, install docs used to be missing that package. It is corrected now.

1 Like