Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[Plugin Tiers][Sujet Principal] Plugin QNAP

Pour échanger sur les plugins classés en catégorie "Monitoring"
benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par benj29 » 03 nov. 2018, 20:15

Comment activer le snmp ?

Image

Il y a quelque chose à faire côté QNAP ?

Sinon le log le voici :

Code : Tout sélectionner

[2018-11-03 20:12:23][DEBUG] : Connexion OK pour QNAP TS-453A
[2018-11-03 20:12:29][DEBUG] : Commande SNMP IP=192.168.2.239 OID=1.3.6.1.4.1.24681.1.2.1.0, communauté=private retourne
[2018-11-03 20:12:29][DEBUG] : out
[2018-11-03 20:12:29][DEBUG] : Commande cat /proc/cpuinfo |  grep '^model name' | head -1 | awk '{ print $4,$5,$6,$7,$9 }'
[2018-11-03 20:12:29][DEBUG] : Retour Commande Intel(R) Celeron(R) CPU N3160 1.60GHz
[2018-11-03 20:12:29][DEBUG] : Commande getsysinfo model
[2018-11-03 20:12:29][DEBUG] : Retour Commande TS-453A
[2018-11-03 20:12:29][DEBUG] : Commande getcfg system version
[2018-11-03 20:12:29][DEBUG] : Retour Commande 4.3.5
[2018-11-03 20:12:29][DEBUG] : Commande getcfg system 'Build Number'
[2018-11-03 20:12:29][DEBUG] : Retour Commande 20181013
[2018-11-03 20:12:29][DEBUG] : Commande getsysinfo systmp
[2018-11-03 20:12:29][DEBUG] : Retour Commande 38 C/100 F
[2018-11-03 20:12:29][DEBUG] : Commande getsysinfo cputmp
[2018-11-03 20:12:29][DEBUG] : Retour Commande 46 C/114 F
[2018-11-03 20:12:30][DEBUG] : Commande uptime
[2018-11-03 20:12:30][DEBUG] : Retour Commande  20:12:32 up 3 days, 23:20,  load average: 1.44, 1.54, 1.57
[2018-11-03 20:12:36][DEBUG] : Commande SNMP IP=192.168.2.239 OID=1.3.6.1.4.1.24681.1.2.3.0, communauté=private retourne
[2018-11-03 20:12:36][DEBUG] : out
[2018-11-03 20:12:42][DEBUG] : Commande SNMP IP=192.168.2.239 OID=1.3.6.1.4.1.24681.1.2.2.0, communauté=private retourne
[2018-11-03 20:12:42][DEBUG] : out
[2018-11-03 20:12:42][DEBUG] : Commande getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info
[2018-11-03 20:12:42][DEBUG] : Retour Commande /share/CACHEDEV1_DATA
[2018-11-03 20:12:42][DEBUG] : Commande df -h /share/CACHEDEV1_DATA | grep '/share/CACHEDEV1_DATA'
[2018-11-03 20:12:42][DEBUG] : Retour Commande                           6.5T      3.4T      3.0T  53% /share/CACHEDEV1_DATA
[2018-11-03 20:12:42][DEBUG] : Commande getsysinfo sysvolnum
[2018-11-03 20:12:42][DEBUG] : Retour Commande 2
[2018-11-03 20:12:42][DEBUG] : Commande getsysinfo vol_totalsize volume 2
[2018-11-03 20:12:42][DEBUG] : Retour Commande 6.45 TB
[2018-11-03 20:12:42][DEBUG] : Commande getsysinfo vol_freesize volume 2
[2018-11-03 20:12:42][DEBUG] : Retour Commande 3.01 TB
[2018-11-03 20:12:42][DEBUG] : Commande getsysinfo hdnum
[2018-11-03 20:12:42][DEBUG] : Retour Commande 4
[2018-11-03 20:12:42][DEBUG] : Commande getsysinfo hdtmp 1
[2018-11-03 20:12:43][DEBUG] : Retour Commande 36 C/96 F
[2018-11-03 20:12:43][DEBUG] : Commande getsysinfo hdsmart 1
[2018-11-03 20:12:43][DEBUG] : Retour Commande GOOD
[2018-11-03 20:12:43][DEBUG] : Commande getsysinfo hdtmp 2
[2018-11-03 20:12:43][DEBUG] : Retour Commande 42 C/107 F
[2018-11-03 20:12:43][DEBUG] : Commande getsysinfo hdsmart 2
[2018-11-03 20:12:43][DEBUG] : Retour Commande GOOD
[2018-11-03 20:12:43][DEBUG] : Commande getsysinfo hdtmp 3
[2018-11-03 20:12:43][DEBUG] : Retour Commande 43 C/109 F
[2018-11-03 20:12:43][DEBUG] : Commande getsysinfo hdsmart 3
[2018-11-03 20:12:43][DEBUG] : Retour Commande GOOD
[2018-11-03 20:12:43][DEBUG] : Commande getsysinfo hdtmp 4
[2018-11-03 20:12:43][DEBUG] : Retour Commande 35 C/95 F
[2018-11-03 20:12:43][DEBUG] : Commande getsysinfo hdsmart 4
[2018-11-03 20:12:44][DEBUG] : Retour Commande GOOD
[2018-11-03 20:12:44][DEBUG] : Commande uname -rnsm
[2018-11-03 20:12:44][DEBUG] : Retour Commande Linux QNAP453 4.2.8 x86_64
[2018-11-03 20:12:44][DEBUG] : key hddtot valeur 6.45 TB
[2018-11-03 20:12:44][DEBUG] : key ramtot valeur 0 MB
[2018-11-03 20:12:44][DEBUG] : key cpu valeur
[2018-11-03 20:12:44][DEBUG] : key hddfree valeur 3.01 TB
[2018-11-03 20:12:44][DEBUG] : key hdd valeur 53
[2018-11-03 20:12:44][DEBUG] : key hdd1smart valeur GOOD
[2018-11-03 20:12:44][DEBUG] : key hdd1temp valeur 36 C
[2018-11-03 20:12:44][DEBUG] : key hdd2smart valeur GOOD
[2018-11-03 20:12:44][DEBUG] : key hdd2temp valeur 42 C
[2018-11-03 20:12:44][DEBUG] : key hdd3smart valeur GOOD
[2018-11-03 20:12:44][DEBUG] : key hdd3temp valeur 43 C
[2018-11-03 20:12:44][DEBUG] : key hdd4smart valeur GOOD
[2018-11-03 20:12:44][DEBUG] : key hdd4temp valeur 35 C
[2018-11-03 20:12:44][DEBUG] : key model valeur TS-453A
[2018-11-03 20:12:44][DEBUG] : key cpumodel valeur Intel(R) Celeron(R) CPU N3160 1.60GHz
[2018-11-03 20:12:44][DEBUG] : key os valeur Linux QNAP453 4.2.8 x86_64
[2018-11-03 20:12:44][DEBUG] : key ram valeur NAN
[2018-11-03 20:12:44][DEBUG] : key status valeur Up
[2018-11-03 20:12:44][DEBUG] : key cputemp valeur 46 C
[2018-11-03 20:12:44][DEBUG] : key systemp valeur 38 C
[2018-11-03 20:12:44][DEBUG] : key uptime valeur 3 days
[2018-11-03 20:12:44][DEBUG] : key ramused valeur 0 MB
[2018-11-03 20:12:44][DEBUG] : key version valeur 4.3.5 Build 20181013
[2018-11-03 20:12:44][DEBUG] : refresh [Surveillance][QNAP TS-453A][Rafraîchir]
[2018-11-03 20:13:02][DEBUG] : Connexion OK pour QNAP TS-453A
[2018-11-03 20:13:08][DEBUG] : Commande SNMP IP=192.168.2.239 OID=1.3.6.1.4.1.24681.1.2.1.0, communauté=private retourne
[2018-11-03 20:13:08][DEBUG] : out
[2018-11-03 20:13:08][DEBUG] : Commande cat /proc/cpuinfo |  grep '^model name' | head -1 | awk '{ print $4,$5,$6,$7,$9 }'
[2018-11-03 20:13:08][DEBUG] : Retour Commande Intel(R) Celeron(R) CPU N3160 1.60GHz
[2018-11-03 20:13:08][DEBUG] : Commande getsysinfo model
[2018-11-03 20:13:08][DEBUG] : Retour Commande TS-453A
[2018-11-03 20:13:08][DEBUG] : Commande getcfg system version
[2018-11-03 20:13:08][DEBUG] : Retour Commande 4.3.5
[2018-11-03 20:13:08][DEBUG] : Commande getcfg system 'Build Number'
[2018-11-03 20:13:08][DEBUG] : Retour Commande 20181013
[2018-11-03 20:13:08][DEBUG] : Commande getsysinfo systmp
[2018-11-03 20:13:08][DEBUG] : Retour Commande 38 C/100 F
[2018-11-03 20:13:08][DEBUG] : Commande getsysinfo cputmp
[2018-11-03 20:13:08][DEBUG] : Retour Commande 46 C/114 F
[2018-11-03 20:13:08][DEBUG] : Commande uptime
[2018-11-03 20:13:08][DEBUG] : Retour Commande  20:13:10 up 3 days, 23:20,  load average: 1.47, 1.53, 1.57
[2018-11-03 20:13:14][DEBUG] : Commande SNMP IP=192.168.2.239 OID=1.3.6.1.4.1.24681.1.2.3.0, communauté=private retourne
[2018-11-03 20:13:14][DEBUG] : out
[2018-11-03 20:13:20][DEBUG] : Commande SNMP IP=192.168.2.239 OID=1.3.6.1.4.1.24681.1.2.2.0, communauté=private retourne
[2018-11-03 20:13:20][DEBUG] : out
[2018-11-03 20:13:20][DEBUG] : Commande getcfg SHARE_DEF defVolMP -f /etc/config/def_share.info
[2018-11-03 20:13:21][DEBUG] : Retour Commande /share/CACHEDEV1_DATA
[2018-11-03 20:13:21][DEBUG] : Commande df -h /share/CACHEDEV1_DATA | grep '/share/CACHEDEV1_DATA'
[2018-11-03 20:13:21][DEBUG] : Retour Commande                           6.5T      3.4T      3.0T  53% /share/CACHEDEV1_DATA
[2018-11-03 20:13:21][DEBUG] : Commande getsysinfo sysvolnum
[2018-11-03 20:13:21][DEBUG] : Retour Commande 2
[2018-11-03 20:13:21][DEBUG] : Commande getsysinfo vol_totalsize volume 2
[2018-11-03 20:13:21][DEBUG] : Retour Commande 6.45 TB
[2018-11-03 20:13:21][DEBUG] : Commande getsysinfo vol_freesize volume 2
[2018-11-03 20:13:21][DEBUG] : Retour Commande 3.01 TB
[2018-11-03 20:13:21][DEBUG] : Commande getsysinfo hdnum
[2018-11-03 20:13:21][DEBUG] : Retour Commande 4
[2018-11-03 20:13:21][DEBUG] : Commande getsysinfo hdtmp 1
[2018-11-03 20:13:21][DEBUG] : Retour Commande 36 C/96 F
[2018-11-03 20:13:22][DEBUG] : Commande getsysinfo hdsmart 1
[2018-11-03 20:13:22][DEBUG] : Retour Commande GOOD
[2018-11-03 20:13:22][DEBUG] : Commande getsysinfo hdtmp 2
[2018-11-03 20:13:22][DEBUG] : Retour Commande 42 C/107 F
[2018-11-03 20:13:22][DEBUG] : Commande getsysinfo hdsmart 2
[2018-11-03 20:13:22][DEBUG] : Retour Commande GOOD
[2018-11-03 20:13:22][DEBUG] : Commande getsysinfo hdtmp 3
[2018-11-03 20:13:22][DEBUG] : Retour Commande 43 C/109 F
[2018-11-03 20:13:22][DEBUG] : Commande getsysinfo hdsmart 3
[2018-11-03 20:13:22][DEBUG] : Retour Commande GOOD
[2018-11-03 20:13:22][DEBUG] : Commande getsysinfo hdtmp 4
[2018-11-03 20:13:22][DEBUG] : Retour Commande 35 C/95 F
[2018-11-03 20:13:22][DEBUG] : Commande getsysinfo hdsmart 4
[2018-11-03 20:13:22][DEBUG] : Retour Commande GOOD
[2018-11-03 20:13:22][DEBUG] : Commande uname -rnsm
[2018-11-03 20:13:23][DEBUG] : Retour Commande Linux QNAP453 4.2.8 x86_64
[2018-11-03 20:13:23][DEBUG] : key hddtot valeur 6.45 TB
[2018-11-03 20:13:23][DEBUG] : key ramtot valeur 0 MB
[2018-11-03 20:13:23][DEBUG] : key cpu valeur
[2018-11-03 20:13:23][DEBUG] : key hddfree valeur 3.01 TB
[2018-11-03 20:13:23][DEBUG] : key hdd valeur 53
[2018-11-03 20:13:23][DEBUG] : key hdd1smart valeur GOOD
[2018-11-03 20:13:23][DEBUG] : key hdd1temp valeur 36 C
[2018-11-03 20:13:23][DEBUG] : key hdd2smart valeur GOOD
[2018-11-03 20:13:23][DEBUG] : key hdd2temp valeur 42 C
[2018-11-03 20:13:23][DEBUG] : key hdd3smart valeur GOOD
[2018-11-03 20:13:23][DEBUG] : key hdd3temp valeur 43 C
[2018-11-03 20:13:23][DEBUG] : key hdd4smart valeur GOOD
[2018-11-03 20:13:23][DEBUG] : key hdd4temp valeur 35 C
[2018-11-03 20:13:23][DEBUG] : key model valeur TS-453A
[2018-11-03 20:13:23][DEBUG] : key cpumodel valeur Intel(R) Celeron(R) CPU N3160 1.60GHz
[2018-11-03 20:13:23][DEBUG] : key os valeur Linux QNAP453 4.2.8 x86_64
[2018-11-03 20:13:23][DEBUG] : key ram valeur NAN
[2018-11-03 20:13:23][DEBUG] : key status valeur Up
[2018-11-03 20:13:23][DEBUG] : key cputemp valeur 46 C
[2018-11-03 20:13:23][DEBUG] : key systemp valeur 38 C
[2018-11-03 20:13:23][DEBUG] : key uptime valeur 3 days
[2018-11-03 20:13:23][DEBUG] : key ramused valeur 0 MB
[2018-11-03 20:13:23][DEBUG] : key version valeur 4.3.5 Build 20181013
[2018-11-03 20:14:02][DEBUG] : Connexion OK pour QNAP TS-453A
[2018-11-03 20:14:08][DEBUG] : Commande SNMP IP=192.168.2.239 OID=1.3.6.1.4.1.24681.1.2.1.0, communauté=private retourne
[2018-11-03 20:14:08][DEBUG] : out
[2018-11-03 20:14:08][DEBUG] : Commande cat /proc/cpuinfo |  grep '^model name' | head -1 | awk '{ print $4,$5,$6,$7,$9 }'
[2018-11-03 20:14:08][DEBUG] : Retour Commande Intel(R) Celeron(R) CPU N3160 1.60GHz
[2018-11-03 20:14:08][DEBUG] : Commande getsysinfo model
[2018-11-03 20:14:08][DEBUG] : Retour Commande TS-453A
[2018-11-03 20:14:08][DEBUG] : Commande getcfg system version
[2018-11-03 20:14:08][DEBUG] : Retour Commande 4.3.5
[2018-11-03 20:14:08][DEBUG] : Commande getcfg system 'Build Number'
[2018-11-03 20:14:08][DEBUG] : Retour Commande 20181013
[2018-11-03 20:14:08][DEBUG] : Commande getsysinfo systmp
[2018-11-03 20:14:08][DEBUG] : Retour Commande 38 C/100 F
[2018-11-03 20:14:08][DEBUG] : Commande getsysinfo cputmp
[2018-11-03 20:14:08][DEBUG] : Retour Commande 46 C/114 F
[2018-11-03 20:14:08][DEBUG] : Commande uptime
[2018-11-03 20:14:08][DEBUG] : Retour Commande  20:14:10 up 3 days, 23:21,  load average: 1.51, 1.53, 1.57
Image

Avatar de l’utilisateur
kris1208
Actif
Messages : 661
Inscription : 18 juin 2015, 15:53
Contact :

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par kris1208 » 04 nov. 2018, 07:55

Il faut te mettre en V1. puis va sur ton nas verifier que c'est bien activé dans les parametres (avec ssh, telnet.... c'est par la).

Avatar de l’utilisateur
tux1c0
Timide
Messages : 51
Inscription : 09 juin 2018, 15:10

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par tux1c0 » 04 nov. 2018, 09:20

C'est bien un problème de configuration snmp comme l'indique kris1208 (retour out des commandes snmp).
J'avais mis un peu d'explication dans la documentation du plugin https://tux1c0.github.io/plugin-qnap/fr_FR/ si ça peut t'aider.


Avatar de l’utilisateur
tux1c0
Timide
Messages : 51
Inscription : 09 juin 2018, 15:10

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par tux1c0 » 04 nov. 2018, 17:10

que te donnes le log pour cette ligne
Commande SNMP IP=192.168.2.239 OID=1.3.6.1.4.1.24681.1.2.1.0, communauté=private retourne xxx
C'est ce qui récupère l'info de charge CPU.


Avatar de l’utilisateur
yogui
Actif
Messages : 797
Inscription : 11 févr. 2015, 21:52
Localisation : Alsace

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par yogui » 06 nov. 2018, 06:48

tux1c0 a écrit :
yogui a écrit :
29 oct. 2018, 23:22
Bonjour
Question est il possible d'avoir un widget pour la version mobile ?
Salut Yogui,

la version mobile est maintenant disponible dans la nouvelle version.

Tux1c0
Merci ça fonctionne
Raspberry PI 2 , Razberry Zwave +
Fibaro FGRM-222
Qubino ZMNHCA2
Fibaro FGS-222
Qubino ZMNHBA2
Everspring AN180-6
Everspring Z-WAVE SP-103
Raspberry Pi 2 + touch 3.5" en Squeezebox
Modules Mysensors

Dev. Librairie Arduino pour Somfy RTS

Avatar de l’utilisateur
tux1c0
Timide
Messages : 51
Inscription : 09 juin 2018, 15:10

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par tux1c0 » 11 nov. 2018, 09:36

@benj29 j'ai poussé une mise à jour sur l'OID CPU. Dis moi si c'est mieux maintenant.

Petit point d'attention également, le plugin remonte toutes les 15min les infos, donc entre le moment de la prise d'infos et les 15 prochaines minutes il y aura des écarts, le CPU ne restant jamais à la même valeur.

Merci.


benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par benj29 » 15 nov. 2018, 10:04

Bon... par contre, je cherche à l'intégrer dans un design, mais je ne peux rien changer.
Ni couleur du texte, ni taille du widget en le passant sur 2 colonnes par exemple.
Pourquoi ? Un blocage du widget ?
On peut le faire via Monitoring ou d'autres plugins.

C'est réellement dommage car ça limite fortement l'utilisation.

Image

Il n'y a pas l'option Affichage présente sur les autres :

Image

Ou le passage sur 2 colonnes :

Image

A la limite, qu'on ne puisse pas le mettre sur 2 colonnes, je me débrouillerai en lui réservant une grande colonne, de 2 lignes équivalentes de mes autres widgets.
Par contre, pouvoir changer la couleur du texte, ce serait super, et masquer le titre pour éviter de faire double emploi.

Je te mets un exemple de page de monitoring que j'ai faite :

Image

Et alors le top du top, serait de pouvoir colorier les valeurs en fonction de seuils, mais là, je présume que j'en demande trop ^^

Avatar de l’utilisateur
tux1c0
Timide
Messages : 51
Inscription : 09 juin 2018, 15:10

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par tux1c0 » 15 nov. 2018, 11:43

Hello benj29

je ne sais pas pourquoi il n'y a pas l'onglet "Affichage", je vais regarder ce point. En attendant je pense qu'en utilisant un virtuel, ça fait tout sauter tu devrais être en mesure de faire ce que tu souhaites. J'ai testé à l'instant et ça devrait être bon.
Dis moi si ça va comme ça.

benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par benj29 » 15 nov. 2018, 11:44

Mine de rien refaire une roue c'est tjs mieux... Mais bon pas pratique

Envoyé de mon JSN-L21 en utilisant Tapatalk


Avatar de l’utilisateur
tux1c0
Timide
Messages : 51
Inscription : 09 juin 2018, 15:10

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par tux1c0 » 21 nov. 2018, 19:15

Salut benj29

en beta les onglets sont présents. Il y avait une ligne de code manquante :cry:
Capture.PNG
Capture.PNG (11.72 Kio) Consulté 2105 fois
Je vais regarder pour les couleurs. A suivre.


benj29
Actif
Messages : 3983
Inscription : 26 mars 2017, 09:57
Contact :

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par benj29 » 23 nov. 2018, 10:11

Bon, j'ai fait l'update en béta et.... tada ! Super. J'ai pu retirer le titre aussi.
Petite remarque, le top serait d'avoir les couleurs pour le reboot aussi.

Image

Remarque : quand j'ai changé couleur, titre etc, l'élément sur le design n'existait plus. Il fallait que je fasse un control+F5 pour que la page se recharge et qu'il réapparaisse.

HS : le changement dans Affichage (configuration avancée) est super super long, la roue crantée a tourné pendant 2 min... et pourtant ça tourne avec 8 Go de RAM et 2 coeurs de dispo. Mais l'important c'est que ça tourne. J'attends les couleurs ;)

Vivement les couleurs ;)

Avatar de l’utilisateur
tux1c0
Timide
Messages : 51
Inscription : 09 juin 2018, 15:10

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par tux1c0 » 23 nov. 2018, 15:51

Hello

je n'ai pas compris la couleur pour le reboot ? l'icône ?

Refresh design/affichage roue : le plugin n'intervient pas dans le design (du moins à ma connaissance). Je pense que c'est plutôt une latence du refresh des infos. Idem pour la page d'affichage, ça génère un refresh des infos et donc des connexions SSH+SNMP.

Avatar de l’utilisateur
tux1c0
Timide
Messages : 51
Inscription : 09 juin 2018, 15:10

Re: [Plugin Tiers][Sujet Principal] Plugin QNAP

Message par tux1c0 » 23 nov. 2018, 16:30

les couleurs sont dispos dans la dernière beta ;)




Répondre

Revenir vers « [Catégorie] Monitoring »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 22 invités