Hi Pieter,

 it's mean you not changed php module on apache (it does not change automatically).

You need switch module something like this:
 sudo a2enmod php7.4
 sudo a2dismod php7.0
 sudo systemctl restart apache2

(but I not sure about your module names, check installed modules:
 a2query -m

Pieter Meyer wrote on 09.02.2021 09:26:

Hi Mike,

 

I do have php7.4 installed but for some reason Observium still using 7.0.33

 

Not sure how to fix it.

 

php -v

PHP 7.4.14 (cli) (built: Jan 12 2021 13:59:46) ( NTS )

Copyright (c) The PHP Group

Zend Engine v3.4.0, Copyright (c) Zend Technologies

    with Zend OPcache v7.4.14, Copyright (c), by Zend Technologies

 

 

Regards

Pieter Meyer

Converged Group | Licensed ISP 0258/IECNS/JAN/09

75 Witkoppen Rd, North Riding, Gauteng, 2162

Office: +27 10 591 4600 | Mobile: +27 83 233 6614  

map | website | company blog | linkedin

 

CAUTION: This email and any attachments may contain information that is confidential and subject to legal privilege. If you are not the intended recipient, you must not read, use, disseminate, distribute or copy this email or any attachments. If you have received this email in error, please notify us immediately and erase this email and any attachments. Thank you.

 

DISCLAIMER: To the maximum extent permitted by law, Converged Group is not liable (including in respect of negligence) for viruses or other defects or for changes made to this email or to any attachments. Before opening or using attachments, check them for viruses and other defects. The information contained in this document is confidential to the addressee and is not the view nor the official policy of Converged Group unless otherwise stated.

 

From: Mike Stupalov [mailto:mike@stupalov.ru] On Behalf Of Mike Stupalov
Sent: Monday, 08 February 2021 6:23 PM
To: Observium; Pieter Meyer via observium
Cc: Pieter Meyer
Subject: Re: [Observium] emails alerts stopped working

 

Fixed in r10991,

 but sure, error can happened only on old php versions (less 7.1).

Just in 4 feb released actual php versions (8.0.2, 7.4.15 and 7.3.27)
with fixed some critical secure issues.

Pieter Meyer via observium wrote on 08.02.2021 10:18:

Hi,
 
Seems Email alerts stopped working, we are currently using Observium 
21.2.10990
 
email.inc.php
 
./test_alert.php -c 3
Observium 21.2.10990
Test Alert Notification
 
 o Notifying            [email] Default alert email: 
{"email":"cvtvoice@convergedgroup.net"}PHP Parse error:  syntax error, 
unexpected '=' in /opt/observium/includes/alerting/email.inc.php on line 131
 
 
Regards
 
 
        Pieter Meyer
 
Converged Group | Licensed ISP 0258/IECNS/JAN/09
 
75 Witkoppen Rd, North Riding, Gauteng, 2162
 
Office: +27 10 591 4600 | Mobile: +27 83 233 6614
 
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

 

--
Mike Stupalov
Observium Limited, http://observium.org


--
Mike Stupalov
Observium Limited, http://observium.org