Il sar è uno strumento utilissimo per tenere sotto controllo i problemi di prestazioni dei vostri server.
Quello che fa il sar è tenere uno storico di una quantità di parametri piuttosto nutrita.
L'installazione avviene, sotto debian (quindi ubuntu etc) così:
sudo apt-get install sysstats
sudo vi /etc/default/syssta
modificare la riga
ENABLED="true"
sudo vi /etc/cron.d/sysstat
cambiare
5-55/10 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1
a
*/2 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1
Dopo 4 minuti inizierete ad avere uno storico, potete consultare la giornata di oggi con
sar
e le giornate precedenti saranno accessibili con:
sar -f /var/log/sysstat/sa03
dove 03 è il giorno del mese che vi interessa.
Opzioni diverse mostrano statistiche diverse, qualche esempio
sar
(senza opzioni)
mostra l'utilizzo della cpu
sar -r
mostra le statistiche sulla memoria
sar -q
relativo al load average
venerdì 29 giugno 2018
lunedì 11 giugno 2018
problemi con gphoto
Lanciando gphoto vi ritrovate il seguente errore
/etc/udev/rules.d $ gphoto2 --storage-info
*** Error ***
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Device or resource busy). Make sure no other program (gvfs-gphoto2-volume-monitor) or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
*** Error (-53: 'Could not claim the USB device') ***
For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --storage-info
Please make sure there is sufficient quoting around the arguments.
/etc/udev/rules.d $ gphoto2 --storage-info
*** Error ***
An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Device or resource busy). Make sure no other program (gvfs-gphoto2-volume-monitor) or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
*** Error (-53: 'Could not claim the USB device') ***
For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --storage-info
Please make sure there is sufficient quoting around the arguments.
Notere che:
/etc/udev/rules.d $ ps -ef | grep gphoto
mikilin+ 717 1 0 11:45 ? 00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
mikilin+ 1128 1 0 11:45 ? 00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
mikilin+ 1391 1 0 11:45 ? 00:00:00 /usr/lib/gvfs/gvfsd-gphoto2 --spawner :1.1 /org/gtk/gvfs/exec_spaw/1
mikilin+ 1618 1440 0 11:54 pts/0 00:00:00 grep --color=auto gphoto
Personalmente ho risolto così:
cd /usr/lib/gvfs/
sudo chmod a-x gvfs-gphoto2-volume-monito
e poi riavvio.
Iscriviti a:
Post (Atom)