Thold - A non-numeric value encountered

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

Moderators: Developers, Moderators

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

Thold - A non-numeric value encountered

Post by Arkasha18 »

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 Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

Post by Osiris »

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

Post by Arkasha18 »

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 1794 times
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

Post by Osiris »

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 Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

Post by Osiris »

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

Post by Arkasha18 »

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 Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

Post by Osiris »

As you can see, Item 9 does not include any cdef, not should it.
Attachments
Item9.PNG
Item9.PNG (31.79 KiB) Viewed 1778 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

Post by Arkasha18 »

look template graph
Attachments
1.jpg
1.jpg (220.91 KiB) Viewed 1777 times
2.jpg
2.jpg (101.42 KiB) Viewed 1777 times
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

Post by Osiris »

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

Post by Arkasha18 »

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 Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Thold - A non-numeric value encountered

Post by Osiris »

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

Post by Arkasha18 »

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

Who is online

Users browsing this forum: No registered users and 0 guests