Thold - A non-numeric value encountered

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Moderators, Developers

Post Reply
Author
Message
Arkasha18
Posts: 14
Joined: Tue Aug 14, 2012 9:00 am

Thold - A non-numeric value encountered

#1 Post by Arkasha18 » Sun Jul 14, 2019 7:36 am

Help pls.
i install clear last cacti and clear las thold.
install my old graf template (i made myself, hdd storage usage over SNMP)
I not understand what the problem .
Have data in rrd
2019/07/14 15:23:08 - POLLER: Poller[Main Poller] CACTI2RRD: /usr/bin/rrdtool update /home/arkasha18/site/admin.ru.net/cacti_new/rra/default_home_win_hrstoragesize_256.rrd --skip-past-updates --template hrStorageUsed:hrStorageSize 1563106985:27380565:29048289
2019/07/14 15:23:06 - POLLER: Poller[Main Poller] Device[default_home_win] DS[ default_home_win - hrStorageTable - C: Label: Serial Number 3e6f2391] Graphs[ default_home_win - C: Label: Serial Number 3e6f2391] SNMP: v2: , dsname: hrStorageUsed, oid: .1.3.6.1.2.1.25.2.3.1.6.1, output: 27380565
2019/07/14 15:23:06 - POLLER: Poller[Main Poller] Device[default_home_win] DS[ default_home_win - hrStorageTable - C: Label: Serial Number 3e6f2391] Graphs[ default_home_win - C: Label: Serial Number 3e6f2391] SNMP: v2: , dsname: hrStorageSize, oid: .1.3.6.1.2.1.25.2.3.1.5.1, output: 29048289

but thold not correct read value :
2019/07/14 15:03:15 - THOLD: Threshold HI / Low check is normal HI:b,a,/,100,* LOW:b,a,/,100,* VALUE:b,a,/,100,*
2019/07/14 15:03:15 - THOLD: Checking Threshold: Name: 'hrStorageUsed', local_data_id: '256', data_template_rrd_id: '713', value: 'b,a,/,100,*'

I do not understand how debug thold data

my graf template use 2xCDEFs
cdef=CURRENT_DATA_SOURCE,|query_hrStorageAllocationUnits|,*
and second
cdef=b,a,/,100,*
when i delete second (cdef=b,a,/,100,*) all work..
but i not understand why.

how get sourse data THOLD ?

User avatar
Osiris
Cacti Pro User
Posts: 863
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

#2 Post by Osiris » Sun Jul 14, 2019 12:05 pm

Just use the percentage Data Type. The Data Source to use is the numerator, and then when you select Data Type Percentage, the total size is the denominator. If you want a threshold > 95%, just enter a hi threshold of 95. You should ensure that you trigger not immediately, but say after 3 polling cycles to avoid issues with timeouts.
Before history, there was a paradise, now dust.

Arkasha18
Posts: 14
Joined: Tue Aug 14, 2012 9:00 am

Re: Thold - A non-numeric value encountered

#3 Post by Arkasha18 » Sun Jul 14, 2019 12:21 pm

i use
percentage Data Type
Attachments
FireShot Capture 031 - Console -} Threshold Templates_ - https___admin.ru.net_cacti_new_plu.jpg
FireShot Capture 031 - Console -} Threshold Templates_ - https___admin.ru.net_cacti_new_plu.jpg (203.31 KiB) Viewed 684 times

User avatar
Osiris
Cacti Pro User
Posts: 863
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

#4 Post by Osiris » Mon Jul 15, 2019 7:49 am

Your template does not look like the standard one. Where did you get it from?
Before history, there was a paradise, now dust.

User avatar
Osiris
Cacti Pro User
Posts: 863
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

#5 Post by Osiris » Mon Jul 15, 2019 7:53 am

I'm also interested in what version of thold you are running cause the RPN expression should not be showing when you have Percentage as the data type. Can you look at your browsers debug console for JavaScript errors?
Before history, there was a paradise, now dust.

Arkasha18
Posts: 14
Joined: Tue Aug 14, 2012 9:00 am

Re: Thold - A non-numeric value encountered

#6 Post by Arkasha18 » Tue Jul 16, 2019 2:58 am

Osiris wrote:I'm also interested in what version of thold you are running cause the RPN expression should not be showing when you have Percentage as the data type. Can you look at your browsers debug console for JavaScript errors?
you can see for yourself (last cacti & cast thold)
http://test.admin.ru.net/cacti_test/
Arkasha18
@Arkasha18

if i change in graf (hrStorageSize Item # 9) "CDEF Function:Host MIB - hrStorageTable Units" all work ok, but with "CDEF Function:Make a percentage b/a" - not work

http://test.admin.ru.net/cacti_test/gra ... late_id=68
http://test.admin.ru.net/cacti_test/gra ... edit&id=68

User avatar
Osiris
Cacti Pro User
Posts: 863
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

#7 Post by Osiris » Tue Jul 16, 2019 7:43 am

As you can see, Item 9 does not include any cdef, not should it.
Attachments
Item9.PNG
Item9.PNG (31.79 KiB) Viewed 668 times
Before history, there was a paradise, now dust.

Arkasha18
Posts: 14
Joined: Tue Aug 14, 2012 9:00 am

Re: Thold - A non-numeric value encountered

#8 Post by Arkasha18 » Tue Jul 16, 2019 7:53 am

look template graph
Attachments
1.jpg
1.jpg (220.91 KiB) Viewed 667 times
2.jpg
2.jpg (101.42 KiB) Viewed 667 times

User avatar
Osiris
Cacti Pro User
Posts: 863
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

#9 Post by Osiris » Tue Jul 16, 2019 8:01 am

Ope, sorry, now that I've logged in, I believe I see the bug. Can you please open a thold bug on Github?
Before history, there was a paradise, now dust.

Arkasha18
Posts: 14
Joined: Tue Aug 14, 2012 9:00 am

Re: Thold - A non-numeric value encountered

#10 Post by Arkasha18 » Tue Jul 16, 2019 8:13 am

Osiris wrote:Ope, sorry, now that I've logged in, I believe I see the bug. Can you please open a thold bug on Github?
I do not know how

User avatar
Osiris
Cacti Pro User
Posts: 863
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

#11 Post by Osiris » Tue Jul 16, 2019 8:35 am

https://www.github.com/cacti/plugin_thold

Sign up for an account, goto Issues, and log a new one.
Before history, there was a paradise, now dust.

Arkasha18
Posts: 14
Joined: Tue Aug 14, 2012 9:00 am

Re: Thold - A non-numeric value encountered

#12 Post by Arkasha18 » Tue Jul 16, 2019 8:42 am

Osiris wrote:https://www.github.com/cacti/plugin_thold

Sign up for an account, goto Issues, and log a new one.

https://github.com/Cacti/plugin_thold/issues/347

Post Reply