Uptime Flex mini non remonté

Tags: #<Tag:0x00007fcbb2f15fb0>

Salut Nebz,

Déjà merci une fois de plus, encore un plugin au top de ta part :wink:

Je le configure (enfin :smiley:), par contre je remarque un petit « bug » sur l’uptime de mon USG Flex mini, le switch est bien reconnu mais le plugin me remonte l’uptime à 00:00:00 :

Sans titre

Par contre si je regarde le log debug, il semble bien la :

« uptime »:1783709,"_uptime":1783709

T’as une idée ? Pour le reste de mes équipements en revanche, ils remontent bien.

Jeedom tourne sur une VM Jeedom Buster 10.7, Jeedom est en 4.0.61 et le plugin est la dernière version stable.

Hello,

tu peux m’envoyer le full json ?

probablement un problème de calcul ou de format de l’uptime qui serait différent

Il manque l’info sur la mémoire utilisé aussi je viens de voir

Voila

[2020-12-08 08:43:05][DEBUG] : Login en cours..
[2020-12-08 08:43:06][INFO] : Login OK (1)
[2020-12-08 08:43:08][INFO] : Update USW(USW-Flex-Mini::state is 1(1))
[2020-12-08 08:43:08][DEBUG] : Update USW(USW-Flex-Mini) json : {"_id":"XXXXXXXXXXXXX","adopted":true,"anomalies":-1,"board_rev":12,"cfgversion":"67b88b66d6f69378","config_network":{"dns2":"8.8.8.8","gateway":"192.168.XXX.XXX","dns1":"192.168.XXX.XXX","netmask":"255.255.255.0","ip":"192.168.XXX.XXX","type":"static"},"connected_at":1607285166,"dot1x_portctrl_enabled":false,"ethernet_table":[{"mac":"74:ac:b9:aa:xx:xx","num_port":5,"name":"eth0"}],"flowctrl_enabled":false,"fw_caps":0,"has_fan":false,"has_temperature":false,"hw_caps":0,"inform_ip":"192.168.XXX.XXX","inform_url":"http:\/\/192.168.XXX.XXX:8080\/inform","ip":"192.168.XXX.XXX","jumboframe_enabled":false,"license_state":"registered","mac":"74:ac:b9:xx:xx:xx","model":"USMINI","model_in_eol":false,"model_in_lts":false,"model_incompatible":false,"port_table":[{"port_idx":1,"media":"GE","port_poe":false,"speed_caps":1048623,"op_mode":"switch","portconf_id":"5a4b83a5e4b020856739303d","is_uplink":true,"up":true,"autoneg":true,"enable":true,"full_duplex":true,"speed":1000,"jumbo":false,"flowctrl_tx":false,"flowctrl_rx":false,"tx_bytes":19526379177,"tx_broadcast":9396,"tx_multicast":181334,"tx_packets":165181390,"tx_errors":0,"tx_dropped":0,"rx_bytes":443204512242,"rx_broadcast":645361,"rx_multicast":3083972,"rx_packets":311054549,"rx_errors":0,"rx_dropped":0,"tx_bytes-r":37205,"rx_bytes-r":32765,"bytes-r":69970,"name":"Port 1","masked":false,"aggregated_by":false},{"port_idx":2,"media":"GE","port_poe":false,"speed_caps":1048623,"op_mode":"switch","portconf_id":"5a4b83a5e4b020856739303d","is_uplink":false,"up":false,"autoneg":true,"enable":true,"full_duplex":false,"speed":0,"jumbo":false,"flowctrl_tx":false,"flowctrl_rx":false,"tx_bytes":438498079574,"tx_broadcast":133005,"tx_multicast":577408,"tx_packets":293938063,"tx_errors":0,"tx_dropped":0,"rx_bytes":11222912269,"rx_broadcast":379,"rx_multicast":18213,"rx_packets":149440097,"rx_errors":0,"rx_dropped":1,"tx_bytes-r":0,"rx_bytes-r":0,"bytes-r":0,"name":"Port 2","masked":false,"aggregated_by":false},{"port_idx":3,"media":"GE","port_poe":false,"speed_caps":1048623,"op_mode":"switch","portconf_id":"5a4b83a5e4b020856739303d","is_uplink":false,"up":false,"autoneg":true,"enable":true,"full_duplex":false,"speed":0,"jumbo":false,"flowctrl_tx":false,"flowctrl_rx":false,"tx_bytes":160422127,"tx_broadcast":3104,"tx_multicast":10643,"tx_packets":1678847,"tx_errors":0,"tx_dropped":0,"rx_bytes":4646362242,"rx_broadcast":35,"rx_multicast":179,"rx_packets":3316597,"rx_errors":0,"rx_dropped":0,"tx_bytes-r":0,"rx_bytes-r":0,"bytes-r":0,"name":"Port 3","masked":false,"aggregated_by":false},{"port_idx":4,"media":"GE","port_poe":false,"speed_caps":1048623,"op_mode":"switch","portconf_id":"5a4b83a5e4b020856739303d","is_uplink":false,"up":false,"autoneg":true,"enable":true,"full_duplex":false,"speed":0,"jumbo":false,"flowctrl_tx":false,"flowctrl_rx":false,"tx_bytes":0,"tx_broadcast":0,"tx_multicast":0,"tx_packets":0,"tx_errors":0,"tx_dropped":0,"rx_bytes":0,"rx_broadcast":0,"rx_multicast":0,"rx_packets":0,"rx_errors":0,"rx_dropped":0,"tx_bytes-r":0,"rx_bytes-r":0,"bytes-r":0,"name":"Port 4","masked":false,"aggregated_by":false},{"port_idx":5,"media":"GE","port_poe":false,"speed_caps":1048623,"op_mode":"switch","portconf_id":"5a4b83a5e4b020856739303d","is_uplink":false,"up":true,"autoneg":true,"enable":true,"full_duplex":true,"speed":1000,"jumbo":false,"flowctrl_tx":false,"flowctrl_rx":false,"tx_bytes":9018047181,"tx_broadcast":652217,"tx_multicast":3104147,"tx_packets":20167077,"tx_errors":0,"tx_dropped":0,"rx_bytes":8179511179,"rx_broadcast":2507,"rx_multicast":103342,"rx_packets":16559482,"rx_errors":0,"rx_dropped":0,"tx_bytes-r":32726,"rx_bytes-r":37060,"bytes-r":69787,"name":"Port 5","masked":false,"aggregated_by":false}],"power_source_ctrl_enabled":false,"provisioned_at":1605646112,"required_version":"1.7.3","satisfaction":-1,"serial":"74ACB9AAF2BE","setup_id":"610d5829-55c8-447a-bde6-53453a52acff","site_id":"5a4b83a2e4b0208567393030","stp_priority":"32768","stp_version":"rstp","switch_caps":{"feature_caps":44,"max_mirror_sessions":1,"max_aggregate_sessions":0,"vlan_caps":2},"sys_error_caps":0,"syslog_key":"eba379f185fc040aa24f162f731333b7f90e9f9bce9a8b603288fd8cf13f0dbe","two_phase_adopt":false,"type":"usw","unsupported":false,"unsupported_reason":0,"version":"1.7.5.636","x_aes_gcm":true,"x_authkey":"58691d750e62c7a41ec4f9a86cbba6d4","led_override":"default","led_override_color":"#0000ff","led_override_color_brightness":100,"outdoor_mode_override":"default","lcm_brightness_override":false,"lcm_idle_timeout_override":false,"name":"USW-Flex-Mini","device_id":"5fb3e49e9f659b04ad62af05","state":1,"start_disconnected_millis":1607285148334,"x_inform_authkey":"58691d750e62c7a41ec4f9a86cbba6d4","last_seen":1607413370,"known_cfgversion":"67b88b66d6f69378","uptime":1783709,"_uptime":1783709,"locating":false,"start_connected_millis":1607285166124,"connect_request_ip":"192.168.XXX.XXX","connect_request_port":"52416","sys_stats":{"mem_total":163840,"mem_used":131526},"system-stats":{},"overheating":false,"downlink_table":[],"uplink":{"name":"eth0","mac":"74:ac:b9:xx:xx:xx","ip":"192.168.XXX.XXX","netmask":"255.255.255.0","num_port":5,"speed":1000,"up":true,"full_duplex":true,"port_idx":1,"media":"GE","rx_bytes":443204512242,"rx_dropped":0,"rx_errors":0,"rx_packets":311054549,"tx_bytes":19526379177,"tx_dropped":0,"tx_errors":0,"tx_packets":165181390,"max_speed":1000,"uplink_mac":"78:8a:20:xx:xx:xx","type":"wire","tx_bytes-r":37205,"rx_bytes-r":32765},"last_uplink":{"uplink_mac":"78:8a:20:xx:xx:xx"},"uplink_depth":1,"dhcp_server_table":[],"upgradable":false,"adoptable_when_upgraded":false,"rollupgrade":false,"next_interval":29,"next_heartbeat_at":1607413409,"considered_lost_at":1607413487,"stat":{"sw":{"site_id":"5a4b83a2e4b0208567393030","o":"sw","oid":"74:ac:b9:aa:f2:be","sw":"74:ac:b9:aa:f2:be","time":1607285100000,"datetime":"2020-12-06T20:05:00Z","rx_packets":9248805,"rx_bytes":5569336636,"rx_errors":0,"rx_dropped":0,"rx_crypts":0,"rx_frags":0,"tx_packets":9258351,"tx_bytes":5584026874,"tx_errors":0,"tx_dropped":0,"tx_retries":0,"rx_multicast":245054,"rx_broadcast":44121,"tx_multicast":249465,"tx_broadcast":45043,"bytes":11153363510,"duration":128197000,"port_1-rx_packets":4755847,"port_1-rx_bytes":2662442658,"port_1-tx_packets":4552802,"port_1-tx_bytes":2926735351,"port_1-rx_multicast":238247,"port_1-rx_broadcast":43934,"port_1-tx_multicast":11079,"port_1-tx_broadcast":648,"port_5-rx_packets":4492958,"port_5-rx_bytes":2906893978,"port_5-tx_packets":4705549,"port_5-tx_bytes":2657291523,"port_5-rx_multicast":6807,"port_5-tx_multicast":238386,"port_5-tx_broadcast":44395,"port_5-rx_broadcast":187}},"tx_bytes":443204512242,"rx_bytes":19526379177,"bytes":462730891419,"num_sta":2,"user-num_sta":2,"guest-num_sta":0,"x_has_ssh_hostkey":false}

je confirme, sur tous les autres systèmes ces infos sont dans system-stats qui chez toi est vide… je vais voir pour faire du failover quand c’est vide :

chez toi :
image

autres systèmes :
image

Ah oui exact! Surement une spec particulière pour le flex mini car pour tous les autres équipements (APs / USG) j’ai bien les infos.

je pourrai résoudre pour l’uptime mais malheureusement il n’affiche pas son pourcentage cpu et mem, là je pourrai rien faire (à la limite un pourcentage de mem_used sur mem_total mais pour cpu rien…)

Pour le CPU, oui même sur l’appli et le contrôleur il n’est pas dispo (petit switch à 30 balles en même temps :stuck_out_tongue: ) donc c’est normal je penses.

et la memoire tu as dans l’appli ?

Oui, en pourcentage donc il soit se le calculer.

1 J'aime

tu as bien 80% d’utilisé (au moment ou tu as envoyé ton json…) ?

C’est ça !

ok je ferai ca ce soir en beta…

Top merci!

c’est poussé en beta, tu peux tester ?

1 J'aime

Sans titre

Impeccable, merci !

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.