SYSMON: Qnap NAS via Telnet monitoren

Begonnen von Aladin222, 07 Februar 2015, 11:11:17

Vorheriges Thema - Nächstes Thema

hexenmeister

Morgen werden es noch paar weniger, den Rest verstehe ich leider nicht, warum das passiert. Kann bei mir leider nicht nachstellen.

Aladin222

ups.... sorry aber es ist viel schlimmer geworden :-(

kleiner Auszug :

2015.03.19 18:09:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 18:09:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 18:09:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 18:08:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 18:08:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 18:08:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 18:07:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 18:07:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 18:07:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 18:06:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 18:06:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 18:06:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 18:05:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 18:05:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 18:05:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 18:05:26 1: PERL WARNING: Argument " 18:14:56 up 91 days,  1:35, load average: 1.07, 0.95, 0..." isn't numeric in int at ./FHEM/42_SYSMON.pm line 1560.
2015.03.19 18:05:26 1: PERL WARNING: Argument "0 days, 1" isn't numeric in sprintf at ./FHEM/42_SYSMON.pm line 1471.
2015.03.19 18:05:26 1: PERL WARNING: Use of uninitialized value in int at ./FHEM/42_SYSMON.pm line 3060.
2015.03.19 18:04:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 18:04:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 18:04:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 18:03:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 18:03:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 18:03:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 18:02:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 18:02:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 18:02:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 18:01:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 18:01:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 18:01:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 18:00:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 18:00:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 18:00:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:58:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:58:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:58:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:57:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:57:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:57:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:55:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:55:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:55:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:54:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:54:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:54:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:53:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:53:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:53:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:52:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:52:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:52:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:51:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:51:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:51:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:50:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:50:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:50:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:49:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:49:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:49:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:48:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:48:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:48:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:47:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:47:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:47:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:46:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:46:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:46:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:45:27 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:45:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:45:27 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:44:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:44:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:44:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:43:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:43:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:43:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:43:23 1: PERL WARNING: Argument "cat: /sys/class/net/wlan0/statistics/tx_bytes: No such f..." isn't numeric in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:43:23 1: PERL WARNING: Argument "cat: /sys/class/net/wlan0/statistics/rx_bytes: No such f..." isn't numeric in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:43:22 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:43:22 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:43:22 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:42:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:42:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:42:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:41:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:41:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:41:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:40:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:40:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:40:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:39:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:39:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:39:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:38:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:38:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:38:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:37:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:37:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:37:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:36:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:36:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:36:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:35:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:35:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:35:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:34:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:34:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:34:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:33:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:33:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:33:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.
2015.03.19 17:32:26 1: PERL WARNING: Use of uninitialized value $rxRaw in division (/) at ./FHEM/42_SYSMON.pm line 2440.
2015.03.19 17:32:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2432.
2015.03.19 17:32:26 1: PERL WARNING: Use of uninitialized value $rxRaw in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2399.

hexenmeister

Ich verstehe überhaupt nicht, was auf deinem System abläuft :(
Ich habe etwas versucht, wir werden morgen sehen...

Michi240281

Hab mal ne Frage am Rande:

Habe auf das reading "frei" ein "event-on-change-reading" und zusätzlich ein "event-min-interval" gesetzt! Aber irgendwie scheint das nicht zu greifen! Es wird fröhlich jede Minute ein Eintrag ins log geschrieben. Hier ein list:

Internals:
   DEF        Telnet:admin@192.168.188.21:13131 1 1 1 10
   HOST       192.168.188.21
   INTERVAL_BASE 60
   INTERVAL_MULTIPLIERS 1 1 1 10
   MODE       telnet
   NAME       Qnap419P
   NR         929
   PORT       13131
   STATE      Active
   TYPE       SYSMON
   USER       admin
   Readings:
     2015-03-22 12:08:04   cpu_bogomips    1196.85
     2015-03-22 12:18:04   eth0            RX: 3734.84 MB, TX: 676.92 MB, Total: 4411.76 MB
     2015-03-22 12:18:04   eth0_diff       RX: 2.19 MB, TX: 37.39 MB, Total: 39.58 MB
     2015-03-22 12:18:04   eth0_rx         3916268701
     2015-03-22 12:18:04   eth0_tx         709798671
     2015-03-22 12:18:04   frei            166.2
     2015-03-22 12:10:04   fs_HDD_gesamt   Total: 5628857 MB, Used: 5462136 MB, 97 %, Available: 166209 MB at /share/MD0_DATA
     2015-03-22 12:18:04   idletime        4634252 96.33 %
     2015-03-22 12:18:04   idletime_text   53 days, 15 hours, 17 minutes (96.33 %)
     2015-03-22 12:18:04   loadavg         1.79 2.16 2.21
     2015-03-22 12:18:04   ram             Total: 503.42 MB, Used: 409.71 MB, 81.39 %, Free: 93.71 MB
     2015-03-22 12:18:04   stat_cpu        5214824 48 7437946 463425274 4055574 0 930239
     2015-03-22 12:18:04   stat_cpu_diff   108 0 201 5506 41 0 144
     2015-03-22 12:18:04   stat_cpu_percent 1.80 0.00 3.35 91.77 0.68 0.00 2.40
     2015-03-22 12:18:04   stat_cpu_text   user: 1.80 %, nice: 0.00 %, sys: 3.35 %, idle: 91.77 %, io: 0.68 %, irq: 0.00 %, sirq: 2.40 %
     2015-03-22 12:18:04   swap            Total: 517.62 MB, Used: 133.97 MB,  25.88 %, Free: 383.65 MB
     2015-03-22 12:18:04   uptime          4810638
     2015-03-22 12:18:04   uptime_text     55 days, 16 hours, 17 minutes
     2015-03-22 12:18:04   wlan0           not available
     2015-03-22 12:18:04   wlan0_diff      not available
   Helper:
     error_msg
     sys_cpu_freq_rpi_bbb 0
     sys_cpu_temp_bbb 0
     sys_cpu_temp_rpi 0
     sys_fb     0
     sys_power_ac 0
     sys_power_bat 0
     sys_power_usb 0
     u_first_mark 1
     Cur_readings_map:
       cpu_bogomips BogoMIPS
       date       Date
       eth0       Network adapter eth0
       eth0_diff  Network adapter eth0 (diff)
       eth0_ip    Network adapter eth0 (IP)
       eth0_ip6   Network adapter eth0 (IP6)
       eth0_rx    Network adapter eth0 (RX)
       eth0_tx    Network adapter eth0 (TX)
       fhemuptime System up time
       fhemuptime_text FHEM up time
       fs_HDD_gesamt Filesystem /share/MD0_DATA
       fs_HDD_gesamt_free Filesystem /share/MD0_DATA (free)
       fs_HDD_gesamt_used Filesystem /share/MD0_DATA (used)
       fs_HDD_gesamt_used_percent Filesystem /share/MD0_DATA (used %)
       idletime   Idle time
       idletime_text Idle time
       io_sda     TEST
       io_sda_diff TEST
       io_sda_raw TEST
       loadavg    Load average
       loadavg_1  Load average 1
       loadavg_15 Load average 15
       loadavg_5  Load average 5
       ram        RAM
       ram_free   RAM free
       ram_free_percent RAM free %
       ram_total  RAM total
       ram_used   RAM used
       stat_cpu   CPU statistics
       stat_cpu0  CPU0 statistics
       stat_cpu0_diff CPU0 statistics (diff)
       stat_cpu0_percent CPU0 statistics (diff, percent)
       stat_cpu0_text CPU0 statistics (text)
       stat_cpu1  CPU1 statistics
       stat_cpu1_diff CPU1 statistics (diff)
       stat_cpu1_percent CPU1 statistics (diff, percent)
       stat_cpu1_text CPU1 statistics (text)
       stat_cpu2  CPU2 statistics
       stat_cpu2_diff CPU2 statistics (diff)
       stat_cpu2_percent CPU2 statistics (diff, percent)
       stat_cpu2_text CPU2 statistics (text)
       stat_cpu3  CPU3 statistics
       stat_cpu3_diff CPU3 statistics (diff)
       stat_cpu3_percent CPU3 statistics (diff, percent)
       stat_cpu3_text CPU3 statistics (text)
       stat_cpu4  CPU4 statistics
       stat_cpu4_diff CPU4 statistics (diff)
       stat_cpu4_percent CPU4 statistics (diff, percent)
       stat_cpu4_text CPU4 statistics (text)
       stat_cpu5  CPU5 statistics
       stat_cpu5_diff CPU5 statistics (diff)
       stat_cpu5_percent CPU5 statistics (diff, percent)
       stat_cpu5_text CPU5 statistics (text)
       stat_cpu6  CPU6 statistics
       stat_cpu6_diff CPU6 statistics (diff)
       stat_cpu6_percent CPU6 statistics (diff, percent)
       stat_cpu6_text CPU6 statistics (text)
       stat_cpu7  CPU7 statistics
       stat_cpu7_diff CPU7 statistics (diff)
       stat_cpu7_percent CPU7 statistics (diff, percent)
       stat_cpu7_text CPU7 statistics (text)
       stat_cpu_diff CPU statistics (diff)
       stat_cpu_idle_percent CPU statistics idle %
       stat_cpu_io_percent CPU statistics io %
       stat_cpu_irq_percent CPU statistics irq %
       stat_cpu_nice_percent CPU statistics nice %
       stat_cpu_percent CPU statistics (diff, percent)
       stat_cpu_sirq_percent CPU statistics sirq %
       stat_cpu_sys_percent CPU statistics sys %
       stat_cpu_text CPU statistics (text)
       stat_cpu_user_percent CPU statistics user %
       swap       swap
       swap_free  swap free
       swap_total swap total
       swap_used  swap used
       swap_used_percent swap used %
       uptime     System up time
       uptime_text System up time
       wlan0      Network adapter wlan0
       wlan0_diff Network adapter wlan0 (diff)
       wlan0_ip   Network adapter wlan0 (IP)
       wlan0_ip6  Network adapter wlan0 (IP6)
       wlan0_rx   Network adapter wlan0 (RX)
       wlan0_tx   Network adapter wlan0 (TX)
Attributes:
   event-min-interval frei:200
   event-on-change-reading frei
   filesystems fs_HDD_gesamt:/share/MD0_DATA
   room       System,Wohnzimmer
   userReadings frei { substr((ReadingsVal('Qnap419P','fs_HDD_gesamt','')),54,4)/10}


Ne Idee, was da schief läuft?
FHEM auf QNAP per VM / HM LAN Adapter / diverse HM-Devices
QNAP TVS 463
VU+ Duo4kSE
Sony 75ZD9

hexenmeister

Leider keine Idee, die Zusammenspiel von "event-on-change-reading" und "event-min-interval" hat mit SYSMON nichts zu tun. Steht was dazu im Commandref?

Michi240281

Klar! Commandref sagt genau das wie ich es auch verstehe und umgesetzt habe:

Durch setzen von

attr Qnap419p event-on-change-reading frei

sollte das Reading "frei" nur noch events erzeugen, wenn es sich ändert. Dennoch wird jede Minute ein event erzeugt, obwohl sich das reading nicht ändert! Habe dann noch event-min-interval dazugenommen, was jedoch auch nichts bringt!
FHEM auf QNAP per VM / HM LAN Adapter / diverse HM-Devices
QNAP TVS 463
VU+ Duo4kSE
Sony 75ZD9

Aladin222

Guten morgen Hexenmeister ,

nochmals vielen Dank für deinen Support !

Leider habe ich immer noch einiges an Fehlermeldungen bzw. Warnings im Log  :-[

2015.03.27 08:18:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:17:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:16:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:15:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:15:26 1: PERL WARNING: Argument " 08:15:50 up 2 days, 17:15, load average: 0.29, 0.24, 0...." isn't numeric in int at ./FHEM/42_SYSMON.pm line 1574.
2015.03.27 08:15:26 1: PERL WARNING: Argument "0 days, 1" isn't numeric in sprintf at ./FHEM/42_SYSMON.pm line 1485.
2015.03.27 08:15:26 1: PERL WARNING: Use of uninitialized value in int at ./FHEM/42_SYSMON.pm line 3081.
2015.03.27 08:14:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:13:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:12:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:11:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:10:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:09:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:08:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:07:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:06:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:05:29 1: PERL WARNING: Use of uninitialized value $t[-1] in int at ./FHEM/42_SYSMON.pm line 3136.
2015.03.27 08:04:48 1: PERL WARNING: Use of uninitialized value in string ne at fhem.pl line 3724.


bekommt man die noch weg ,oder liegt es an meiner Konfig ?

hexenmeister

#97
Ich würde ja gerne helfen, nur ich habe keine Vorstellung, was bei Deinem System so alles anders läuft... Daher verstehe ich die Ursachen für die Meldungen nicht wirklich. So ist das leider ein Stochern im Nebel...

Probiere mal die angehängte Version, ich hoffe, es wird noch etwas weniger. Außerdem würde mich interessieren, was Dein System für folgendes Befehl ausgibt:
cat /proc/uptime

Grüße,

Alexander

Aladin222

Hi ,

sorry ....hartes WE :-)

auf dem Cubietruck ( Fhem )

520808.21 987287.08


auf der Qnap 469L

525974.30 2001583.86


auf der Qnap 219P

519337.62 488236.56

hexenmeister

Danke, die Werte sind völlig normal. Ich verstehe überhaupt nichts mehr  :o
Sind die Warnungen etwas weniger geworden?

KernSani

Hi Hexenmeister,
Ich klinke mich jetzt doch mal ein... Ich habe würde gerne einen QNAP TS412 remote monitoren, bekomme aber weder CPU-Temperatur noch verfügbaren Dicspace - das wären eigentlich die mir am wichtigsten Attrbute... Kann man da was machen?

Danke,

Grüße,

Oli
RasPi: RFXTRX, HM, zigbee2mqtt, mySensors, JeeLink, miLight, squeezbox, Alexa, Siri, ...

hexenmeister

Bei der Hardware, die ich nicht habe, brauche ich Zuarbeit. Wie kommt man an die entsprechende Daten?
Discspace hätte ich eigentlich erwartet, dass es funktioniert. Was liefert df?

KernSani

Hi,

danke für die schnelle Antwort.

Filesystem                Size      Used Available Use% Mounted on
/dev/ramdisk             32.9M     16.3M     16.6M  50% /
tmpfs                    32.0M    172.0k     31.8M   1% /tmp
/dev/sda4               371.0M    333.7M     37.3M  90% /mnt/ext
/dev/md9                509.5M    146.1M    363.4M  29% /mnt/HDA_ROOT
/dev/md0                  1.8T    981.9G    849.9G  54% /share/MD0_DATA

MD0_DATA (849,9G) ist der tatsächlich verfügbare Wert.

mit

[~] # getsysinfo systmp
41 C/105 F

lässt sich die Systemtemperatur auslesen

Interessant sind auch noch
[~] # getsysinfo hdtmp 1
35 C/95 F[~] # getsysinfo hdtmp 2
35 C/95 F[~] #



Grüße,

Oli
RasPi: RFXTRX, HM, zigbee2mqtt, mySensors, JeeLink, miLight, squeezbox, Alexa, Siri, ...

hexenmeister

Diskdaten sehen gut aus. Dann musst Du nur entsprechend den Attribut filesystems konfigurieren (für /share/MD0_DATA).

Die Tools für die Systemparameter sind wohl zu QNAP-spezifisch, um sie fest einzubauen, aber Du kannst sie entsprechend mit dem Attribut user-fn und Verwendung der Funktion SYSMON_execute zusammenbauen.

Den Wert fragst Du dann in etwa so ab:
my $val = SYSMON_execute($hash, "getsysinfo systmp");
Dann ggf. noch etwas aufbereiten.

Definition für user-fn:
Zitatuser-fn <fn_name>:<Interval_Minutes>:<reading_name1>:<reading_name2>...[:<reading_nameX>],...
Liste der benutzerdefinierten Perlfunktionen.
Als <fn_name> können entweder Name einer Perlfunktion oder ein Perlausdruck verwendet werden. Die Perlfunktion bekommt den Device-Hash als Übergabeparameter und muss ein Array mit Werte liefern. Diese Werte werden entsprechend den Parameter <reading_nameX> in Readings übernommen.
Ein Perlausdruck muss in geschweifte Klammer eingeschlossen werden und kann folgende Paramter verwenden: $HASH (Device-Hash) und $NAME (Device-Name). Rückgabe wird analog einer Perlfunktion erwartet.

also etwas wie (ungetestet):
attr sysmon user-fn {my $val=SYSMON_execute($hash,"getsysinfo systmp");;my($tc,$tf)=split(/\//,$val);;$tc}:10:cpu_temperature

Aladin222

Zitat von: hexenmeister am 30 März 2015, 21:58:00
Danke, die Werte sind völlig normal. Ich verstehe überhaupt nichts mehr  :o
Sind die Warnungen etwas weniger geworden?

Ja ! Ist deutlich weniger geworden *freu !!!
2015.03.31 03:23:18 1: PERL WARNING: Argument "cat: /sys/class/net/wlan0/statistics/tx_bytes: No such f..." isn't numeric in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2468.
2015.03.31 03:23:18 1: PERL WARNING: Argument "cat: /sys/class/net/wlan0/statistics/rx_bytes: No such f..." isn't numeric in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2468.
2015.03.31 03:08:17 1: PERL WARNING: Argument "cat: /sys/class/net/wlan0/statistics/tx_bytes: No such f..." isn't numeric in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2468.
2015.03.31 03:08:17 1: PERL WARNING: Argument "cat: /sys/class/net/wlan0/statistics/rx_bytes: No such f..." isn't numeric in numeric lt (<) at ./FHEM/42_SYSMON.pm line 2468.
2015.03.31 02:55:15 1: PERL WARNING: Argument " 02:55:49 up 6 days, 10:55, load average: 0.13, 0.10, 0...." isn't numeric in int at ./FHEM/42_SYSMON.pm line 1602.
2015.03.31 02:55:15 1: PERL WARNING: Argument "0 days, 1" isn't numeric in sprintf at ./FHEM/42_SYSMON.pm line 1513.
2015.03.31 02:55:15 1: PERL WARNING: Use of uninitialized value in int at ./FHEM/42_SYSMON.pm line 3129.


Zitat von: hexenmeister am 30 März 2015, 23:13:47
Diskdaten sehen gut aus. Dann musst Du nur entsprechend den Attribut filesystems konfigurieren (für /share/MD0_DATA).

Die Tools für die Systemparameter sind wohl zu QNAP-spezifisch, um sie fest einzubauen, aber Du kannst sie entsprechend mit dem Attribut user-fn und Verwendung der Funktion SYSMON_execute zusammenbauen.

Den Wert fragst Du dann in etwa so ab:
my $val = SYSMON_execute($hash, "getsysinfo systmp");
Dann ggf. noch etwas aufbereiten.

Definition für user-fn:
also etwas wie (ungetestet):
attr sysmon user-fn {my $val=SYSMON_execute($hash,"getsysinfo systmp");;my($tc,$tf)=split(/\//,$val);;$tc}:10:cpu_temperature


hmmm , denke es gibt nur 2 Unterschiede Qnap mit Intel oder Arm -die kleine mit ARM Cpu liefert bei mir auch keine CPU Temp. -bei der Intel CPU funzt es