-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_smart_drive_list() #187
Comments
Hi Ricardo,
We can provide you access if you want?
From: Riccardo ***@***.***>
Sent: Tuesday, December 3, 2024 11:22 AM
To: rbicelli/pfsense-zabbix-template ***@***.***>
Cc: Helpdesk | Cubesix ***@***.***>; Author ***@***.***>
Subject: Re: [rbicelli/pfsense-zabbix-template] get_smart_drive_list() (Issue #187)
Hello,
I don't have access to netgate appliances, so I can't debug this issue.
As workaround you can disable items related to SMART:
image.png (view on web)<https://github.com/user-attachments/assets/48505aed-6e47-4a63-8cd0-dcffe361fc23>
—
Reply to this email directly, view it on GitHub<#187 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BANJV7BO5JUNOKSBHYSJQAL2DWA4JAVCNFSM6AAAAABS5EW37CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJUGEZTEOBVHE>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
It's not just smart issue. There is more going on. See attached log from Netgate 4200. |
Hi Riccardo,
Probleem seems to be that get_smart_drive_list no linger exists and is replaced by get_drive_list.
For now I have added the following to the function pfz_get_smart_status
$filename = "/tmp/sysversion.json";
$sysVersion = json_decode(file_get_contents($filename), true);
if ($sysVersion['installed_version'] >= '24.11') {
$devs = get_drive_list();
} else {
$devs = get_smart_drive_list();
}
From: Riccardo ***@***.***>
Sent: Tuesday, December 3, 2024 11:22 AM
To: rbicelli/pfsense-zabbix-template ***@***.***>
Cc: Helpdesk | Cubesix ***@***.***>; Author ***@***.***>
Subject: Re: [rbicelli/pfsense-zabbix-template] get_smart_drive_list() (Issue #187)
Hello,
I don't have access to netgate appliances, so I can't debug this issue.
As workaround you can disable items related to SMART:
image.png (view on web)<https://github.com/user-attachments/assets/48505aed-6e47-4a63-8cd0-dcffe361fc23>
—
Reply to this email directly, view it on GitHub<#187 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BANJV7BO5JUNOKSBHYSJQAL2DWA4JAVCNFSM6AAAAABS5EW37CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJUGEZTEOBVHE>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
@rbicelli Will you make some change on script for this case? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear,
We have updated our netgate firewall to 24.11 sinds then we get the following error.
HP Errors:
[02-Dec-2024 18:22:33 Europe/Amsterdam] PHP Fatal error: Uncaught Error: Call to undefined function get_smart_drive_list() in /root/scripts/pfsense_zbx.php:1151
Stack trace:
#0 /root/scripts/pfsense_zbx.php(1666): pfz_get_smart_status()
#1 {main}
thrown in /root/scripts/pfsense_zbx.php on line 1151
[02-Dec-2024 18:52:33 Europe/Amsterdam] PHP Fatal error: Uncaught Error: Call to undefined function get_smart_drive_list() in /root/scripts/pfsense_zbx.php:1151
Stack trace:
#0 /root/scripts/pfsense_zbx.php(1666): pfz_get_smart_status()
#1 {main}
thrown in /root/scripts/pfsense_zbx.php on line 1151
[02-Dec-2024 19:22:32 Europe/Amsterdam] PHP Fatal error: Uncaught Error: Call to undefined function get_smart_drive_list() in /root/scripts/pfsense_zbx.php:1151
Stack trace:
#0 /root/scripts/pfsense_zbx.php(1666): pfz_get_smart_status()
#1 {main}
Would it be possible if you can take a look at it?
Regards,
Stephan de Bot
The text was updated successfully, but these errors were encountered: