Re: phpsysinfo: Anzeige der smart-Werte funktioniert nicht

Sebastian Ertz <[email protected]>
Newsgroups spline.eisfair.dev
Organization spline
Message-ID <[email protected]>
Hallo Marcus,

Am 25.09.23 um 09:05 schrieb Marcus Röckrath:
> ich bekomme mit php8-fpm die Anzeige der SMART-Werte nicht mehr. Habe immer
> eine selbst installierte phpsysinfo hier laufen aber nun mal zum Test auch
> dein Paket installiert, mit dem gleichen Effekt. Mit apache2_php8 statt
> php8-fpm funktioniert die SMART-Anzeige :
> 
> SMART plugin /dev/sda error - Smartctl open device: /dev/sda failed: No such
> device
> 
> Das hat noch vor kurzem funktioniert, kannst du das bei dir gegentesten?
> 
> In phpsysinfo.ini müsste etwa folgendes für die Anzeige gesetzt werden:
> 
> SUDO_COMMANDS="smartctl"
> 
> PLUGINS="PS,SMART"
> 
> [smart]
> ; SMART Plugin configuration
> [...]
> ACCESS="command"
> 
> ; Smartctl devices to monitor
> [...]
> DEVICES="/dev/sda"
> 
> 
> Zudem eine sudoers-Datei /etc/sudoers.d/phpsysinfo mit dem Inhalt
> 
> wwwrun ALL = NOPASSWD: /usr/sbin/smartctl

Das mit der sudoers-Datei funktioniert bei mir mit php8-fpm auch nicht.
Mit folgendem Befehl funktioniert ist (Ist nicht schön aber es 
funktioniert):
chmod +s /usr/sbin/smartctl

Gruß
Sebastian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.