- Détails
- Écrit par : Super User
- Affichages : 139
Zabbix - Suppression de valeurs erronées dans un historique
J'ai écrit un tutoriel rapide pour moi :
Récupérez le itemid depuis l'URL d'un graphique (par exemple : /history.php?action=showgraph&itemids[]=444871)
Accédez à votre base zabbix
Trouvez le type de données de votre élément
uint, text, str, log
pour savoir dans quelle table d'historique vous devez chercher
history_uint
history_text
history_str
history_log
Cherchez la bonne valeur dans la bonne table
select * from history_uint where itemid=444871 order by value DESC limit 5;
itemid | clock | value | ns
--------+------------+----------------+-----------
444871 | 1543993500 | 29729269162576 | 606002333
444871 | 1543964400 | 32170824376 | 384896023
444871 | 1543965000 | 30664167112 | 514850665
444871 | 1543964700 | 29971309024 | 862951334
444871 | 1543965300 | 26845634240 | 455393174
(5 rows)
Simply remove the obviously wrong value from the table:
zabbix=# delete from history_uint where itemid=444871 and clock=1543993500 and value=29729269162576;
DELETE 1
Autres exemples de requêtes
select * from history_uint where itemid=444871 order by value DESC limit 5;
select * from history_str where itemid=48666 order by value DESC limit 5;
select * from history_str where itemid=48666 order by clock DESC limit 20;
select * from history_str where itemid=48666 and clock < 1755778983 and clock > 1755750666 order by clock DESC limit 20;
select * from history_str where itemid=48666 and clock < 1755778983 and clock > 1755750666;
select * from history_str where (itemid=48666 or itemid=48664) and clock < 1755778983 and clock > 1755750666;
select * from history_str where value='Sur ,NB sauvegardes OK : et NB sauvegardes : Le : | O0;W1;C2; 0' and itemid=48666;
delete from history_str where value='Sur ,NB sauvegardes OK : et NB sauvegardes : Le : | O0;W1;C2; 0' and (itemid>48600 or itemid<48700);
Sources : https://support.zabbix.com/browse/ZBXNEXT-683
- Détails
- Écrit par : Super User
- Affichages : 301
Zabbix fping fping6 avec erreur debian 'ICMP ping' checks failed: "At least one of '/usr/sbin/fping', '/usr/sbin/fping6' must exist. Both are missing in the system."
Si vous avez cette erreur, il faut juste commenter les lignes qui contiennent fping location
#FpingLocation=/usr/bin/fping
#Fping6Location=
- Détails
- Écrit par : Super User
- Affichages : 218
Installation OpenMediaVault OMV sur carte Odroid HC2
J’ai fait l’achat de 2 Cartes (boitiers) Odroid HC2 afin d’y installer OMV pour remplacer mon vieux Nas Synology.
Si la solution est fiable il y a des problèmes lors des MAJ Systèmes et/ou logiciel.
Je mets ici la procédure pour rappel et Francisation inspirée de : https://www.armbian.com/odroid-xu4/
Récupération de l’Os : https://dl.armbian.com/odroidxu4/Bookworm_current_minimal
Disponible aussi sur ce site : https://www.armbian.com/odroid-xu4/
Il faut ensuite vérifier si votre téléchargement est valide : sha256sum fichier > fichier_sha256.checksum
Les 2 valeurs doivent être identiques.
Ensuite il faut décompresser le fichier avec un outils adapté.
Il faut ensuite mettre le fichier sur une carte SD, moi je le fais avec balenaEtcher.
Ensuite il faut faire démarrer la carte avec la carte SD en place et trouver sur votre réseau l’IP prise par la carte. Pour cela il faut rechercher dans votre serveur DHCP le nom odroidhc4.
Il faut ensuite se connecter en SSH sur cette machine :
- ssh root@IP
- Mot le passe : 1234
À la première connexion il faut donner un mot de passe au root (utilisez keepass)
Puis créer un utilisateur et son mot de passe.
- Set user language based on your location? [Y/n] Y
- At your location, more locales are possible: 4
Il faut ensuite faire les manipulations suivantes pour installer OMV
-
apt-get update
-
apt-get upgrade -y
-
wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/preinstall | sudo bash
- reboot
Se reconnecter en ssh
wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash
Il faut attendre un moment (jusqu’à 30 minutes) puis ensuite se connecter en web sur l’adresse IP
- admin
openmediavault
L’installation de base le OpenMediaVault est faite.
Pour finaliser l’installation de OMV 7 :
- https://wiki.omv-extras.org/doku.php?id=omv7:new_user_guide
- https://wiki.omv-extras.org/doku.php?id=omv6:new_user_guide#initial_configuration
- Détails
- Écrit par : Super User
- Affichages : 206
Lire un DVD-Vidéo sous Linux (même s'il est protégé par un système anti-copie et/ou d'une autre zone que la Zone 2)
Mise à jour : 31/12/2024
lien : https://lafibre.info/tutoriels-linux/lire-un-dvd-sous-linux/
Rapide :
sudo apt install libdvd-pkg vlc
si vous avez déjà VLC : sudo apt install libdvd-pkg
Ne pas oublier de faire le sudo dpkg-reconfigure libdvd-pkg
- Détails
- Écrit par : Super User
- Affichages : 248
Voici la liste des commandes pour faire la mise à jour d'un portainer
docker stop portainer
docker rm portainer
docker pull portainer/portainer-ce:latest
docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest