Apps: SMART: removing-non drives from the display

Last night I configured the SMART app for the first time. Some paths were initially wrong in the scripts and later corrected. In that time, the errors messages from the invalid paths wound up in the graphs. After correction, those messages still appear on the graphs.

How can I delete them?

This data does not appear to be in the database at all: I ran mysqldump, then a grep directory; found nothing.

This is what I see at device/device=24/tab=apps/app=smart/

All Drives | drives: 1543F00F287F, 1543F00F3587, 37D4KBJPF57D, 37KVK1JRF57D, 4728K24SF57D, 5782KL6MF57D, 5782KL6VF57D, 579HKDZXF57D, 579HKDZYF57D, 6525K2DGFS9A, 6539K3OJFS9A, 653AK2MXFS9A, 653BK12FFS9A, 653BK12JFS9A, 653DK7WAFS9A, 653DK7WCFS9A, 653DK7WPFS9A, 653EK93PFS9A, 653EK93QFS9A, 653IK1IBFS9A, BTJR5090037J240AGN, BTJR509003N7240AGN, Can_t_open___usr_local_etc_snmp_smart.config__at__usr_local_etc_snmp_smart_line_191., X643KHBFF57D, X6IEKELNF57D, _etc_snmp_smart__No_such_file_or_directory, env__perl__No_such_file_or_directory

screen shot:

Running this command for the host:

snmpwalk -v3 -l authPriv -u MyRoGroup -a SHA -A 'AuthPass' -x AES -X 'PrivPass' NET-SNMP-EXTEND-MIB::nsExtendOutputFull 
 HOSTNAME_OR_IP_ADDRESS

gives this output

NET-SNMP-EXTEND-MIB::nsExtendOutputFull."zfs" = STRING: {\"error\":0,\"data\":{\"pre_data_hits\":\"13779870\",\"cache_miss_per\":2.26933559517532,\"real_hits\":2809990366,\"deleted\":\"46987690\",\"mfu_size\":2799648976,\"anon_hits\":10426223,\"mru_ghost_hits\":\"536528\",\"actual_hit_per\":97.1946355700396,\"pre_meta_hits\":\"6235167\",\"meta_misses_per\":26.857602700521,\"demand_meta_misses\":\"17620917\",\"arc_misses\":\"65608674\",\"mru_hits\":\"612851281\",\"pools\":[{\"cap\":\"11\",\"dedup\":\"45\",\"frag\":\"-\",\"name\":\"system\",\"free\":\"53908900069376\",\"alloc\":\"45596902244352\",\"expandsz\":\"0\",\"size\":\"99505802313728\"},{\"size\":\"21340618752\",\"cap\":\"50\",\"dedup\":\"71\",\"frag\":\"-\",\"name\":\"zroot\",\"free\":\"6138139136\",\"alloc\":\"15202479616\",\"expandsz\":\"0\"}],\"anon_hits_per\":0.369006165918325,\"pre_misses_per\":54.5492201229368,\"mfu_ghost_hits\":\"4534358\",\"pre_meta_hits_per\":0.2206757968375,\"demand_data_misses\":\"10534027\",\"demand_meta_hits\":\"2214825474\",\"mutex_skip\":\"40976\",\"mfu_per\":77.7614165498999,\"mfu_ghost_per\":0.160480555660577,\"target_size_max\":\"32212250000\",\"p\":\"29412848328\",\"demand_data_total\":601180991,\"meta_hits_per\":78.3873754032479,\"target_size_arat\":1,\"target_size_min\":\"4026531250\",\"pre_meta_misses_per\":2.53733218263183,\"cache_hits_per\":97.7306644048247,\"recycle_miss\":0,\"freq_used_per\":8.69118885623423,\"target_size_per\":100,\"mru_ghost_per\":0.0189888649214416,\"rec_used_per\":91.3088111437658,\"pre_hits_per\":0.487698852743985,\"arc_size\":\"32212497304\",\"arc_hits\":\"2825487475\",\"mfu_hits\":\"2197139085\",\"pre_meta_misses\":\"1664710\",\"target_size\":\"32212250000\",\"demand_misses_per\":16.0558449939104,\"pre_data_misses\":\"35789020\",\"data_pre_per\":27.7994322648742,\"arc_size_per\":100.000767732772,\"demand_hits_per\":20.9042499471706,\"demand_data_hits\":\"590646964\",\"evict_skip\":\"127126\",\"arc_accesses_total\":2891096149,\"mru_per\":21.6901078635997,\"data_demand_per\":98.2477777644836,\"min_size_per\":12.5,\"pre_data_total\":49568890},\"version\":1,\"errorString\":\"\"}
NET-SNMP-EXTEND-MIB::nsExtendOutputFull."smart" = STRING: 653BK12FFS9A,32,0,null,null,null,null,null,null,null,44,4,0,0,0,null,null,5,0,0,0,3,2,0,0
6539K3OJFS9A,8,0,null,null,null,null,null,null,null,44,1,0,0,0,null,null,2,0,0,0,1,1,0,0
653AK2MXFS9A,8,0,null,null,null,null,null,null,null,44,1,0,0,0,null,null,2,0,0,0,1,1,0,0
653EK93PFS9A,16,0,null,null,null,null,null,null,null,45,2,0,0,0,null,null,1,0,0,0,1,0,0,0
37KVK1JRF57D,0,0,null,null,null,null,null,null,null,45,0,0,0,0,null,null,3,0,0,0,2,2,0,0
579HKDZXF57D,0,0,null,null,null,null,null,null,null,46,0,0,0,0,null,null,4,0,0,0,3,1,0,0
5782KL6VF57D,0,0,null,null,null,null,null,null,null,46,0,0,0,0,null,null,3,0,0,0,2,1,0,0
6525K2DGFS9A,0,0,null,null,null,null,null,null,null,45,0,0,0,0,null,null,2,0,0,0,2,0,0,0
5782KL6MF57D,0,0,null,null,null,null,null,null,null,45,0,0,0,0,null,null,4,0,0,0,3,1,0,0
4728K24SF57D,0,0,null,null,null,null,null,null,null,46,0,0,0,0,null,null,2,0,0,0,1,1,0,0
579HKDZYF57D,0,0,null,null,null,null,null,null,null,45,0,0,0,0,null,null,4,0,0,0,3,1,0,0
653DK7WPFS9A,0,0,null,null,null,null,null,null,null,45,0,0,0,0,null,null,1,0,0,0,1,0,0,0
653DK7WAFS9A,0,0,null,null,null,null,null,null,null,44,0,0,0,0,null,null,2,0,0,0,1,1,0,0
653BK12JFS9A,0,0,null,null,null,null,null,null,null,45,0,0,0,0,null,null,1,0,0,0,1,0,0,0
X6IEKELNF57D,0,0,null,null,null,null,null,null,null,45,0,0,0,0,null,null,5,0,0,0,4,2,0,0
37D4KBJPF57D,0,0,null,null,null,null,null,null,null,45,0,0,0,0,null,null,3,0,0,0,1,2,0,0
X643KHBFF57D,0,0,null,null,null,null,null,null,null,47,0,0,0,0,null,null,2,0,0,0,1,2,0,0
653IK1IBFS9A,8,0,null,null,null,null,null,null,null,45,1,0,0,0,null,null,5,0,0,0,3,2,0,0
653EK93QFS9A,0,0,null,null,null,null,null,null,null,44,0,0,0,0,null,null,1,0,0,0,1,0,0,0
653DK7WCFS9A,8,0,null,null,null,null,null,null,null,45,1,0,0,0,null,null,1,0,0,0,1,0,0,0
BTJR509003N7240AGN,0,null,null,null,0,0,0,null,36,36,null,0,null,43,null,0,1,0,0,0,1,0,0,0
1543F00F3587,0,null,null,null,null,null,null,null,null,37,null,null,null,0,null,null,4,0,0,0,0,1,0,0
1543F00F287F,0,null,null,null,null,null,null,null,null,36,null,null,null,0,null,null,4,0,0,0,0,1,0,0
BTJR5090037J240AGN,0,null,null,null,0,0,0,null,37,37,null,0,null,0,null,0,1,0,0,0,1,0,0,0
NET-SNMP-EXTEND-MIB::nsExtendOutputFull."osupdate" = STRING: 0

The file mentioned exists and seems to have appropriate content:

[dan@knew:~] $ ls -l /usr/local/etc/snmp/smart.config 
-rw-r--r--  1 root  wheel  144 Sep  2 13:27 /usr/local/etc/snmp/smart.config
[dan@knew:~] $ cat /usr/local/etc/snmp/smart.config 
smartctl=/usr/local/sbin/smartctl
da19
da18
da17
da16
da15
da14
da13
da12
da11
da10
da9
da8
da7
da6
da5
da4
da3
da2
da1
da0
ada3
ada2
ada1
ada0
[dan@knew:~] $

All files in the snmp directory:

[dan@knew:~] $ ls -l /usr/local/etc/snmp/     
total 21
-rwxr-x---  1 root  wheel   2230 Sep  2 02:33 os-updates.sh
-rwxr-x---  1 root  wheel    291 Sep  2 02:33 postfix-queues
-rwxr-x---  1 root  wheel  13239 Sep  2 02:41 postfixdetailed
-rwxr-x---  1 root  wheel   9737 Sep  2 02:42 smart
-rw-r--r--  1 root  wheel    144 Sep  2 13:27 smart.config
-rw-r-----  1 root  wheel    241 Sep  2 03:52 snmpd.conf
-rwxr-x---  1 root  wheel  10148 Sep  2 02:33 zfs-freebsd
[dan@knew:~] $

Found them, thanks to laf:

[dan@besser:/var/db/librenms/rrd/knew.int.unixathome.org] $ ls -l *config* *_smart__* *perl*
-rw-r--r--  1 www  www  2958416 Sep  2 02:45 app-smart-6-Can_t_open___usr_local_etc_snmp_smart.config__at__usr_local_etc_snmp_smart_line_191..rrd
-rw-r--r--  1 www  www  2958416 Sep  2 02:25 app-smart-6-_etc_snmp_smart__No_such_file_or_directory.rrd
-rw-r--r--  1 www  www  2958416 Sep  2 02:30 app-smart-6-env__perl__No_such_file_or_directory.rrd
[dan@besser:/var/db/librenms/rrd/knew.int.unixathome.org] $

Confirmed. Moving the files away fixes the issue.

Hi is your postfix monitoring working

Yes, it is working. If you start a new post, and tag me there, I’ll see how I can help.