UPS RTCS version 03.02.00

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
glamas
Posts: 40
Joined: Tue Aug 15, 2017 7:39 am

UPS RTCS version 03.02.00

Post by glamas »

Hello:
I have installed a cacti 1.2.22 with php 8.1 and I am trying to create a template for the RTCS UPS it works with the mibs that are in https://www.circitor.fr/Mibs/Html/N/NextUPSSystems.php. When I consult it by snmp the computer responds
snmpget
snmpget
snmpget.png (15.02 KiB) Viewed 2044 times
with oid 1.3.6.1.4.1.21111.1.2.4.8.1.2.0 and when I execute the troobleshooting --> data source
troobleshooting --> data source--> output
troobleshooting --> data source--> output
output.png (19.63 KiB) Viewed 2044 times
troobleshooting --> data source --> Input
troobleshooting --> data source --> Input
input.png (20.69 KiB) Viewed 2044 times
the computer responds and does not show error however the template does not save the data.
template graphs
template graphs
template graph.png (30.59 KiB) Viewed 2044 times
Attachments
grafico voltaje
grafico voltaje
grafico voltaje.png (40.24 KiB) Viewed 2043 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: UPS RTCS version 03.02.00

Post by TheWitness »

Check the max values in the rrdfile using the rrdtool info file.rrd command and make sure you are not clipping. Then, if you are, make sure your Data Template has a good maximum value defined for the outputs.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
glamas
Posts: 40
Joined: Tue Aug 15, 2017 7:39 am

Re: UPS RTCS version 03.02.00

Post by glamas »

rrd_version = "0003"
step = 300
last_update = 1671215105
header_size = 3704
ds[Output].index = 0
ds[Output].type = "GAUGE"
ds[Output].minimal_heartbeat = 600
ds[Output].min = 0.0000000000e+00
ds[Output].max = 1.0000000000e+03
ds[Output].last_ds = "2300"
ds[Output].value = NaN
ds[Output].unknown_sec = 5
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 338
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].cur_row = 86
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 0.0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 5
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].cur_row = 289
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 0.0000000000e+00
rra[2].cdp_prep[0].unknown_datapoints = 5
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].cur_row = 472
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = NaN
rra[3].cdp_prep[0].unknown_datapoints = 221
rra[4].cf = "MIN"
rra[4].rows = 600
rra[4].cur_row = 252
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MIN"
rra[5].rows = 700
rra[5].cur_row = 49
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = inf
rra[5].cdp_prep[0].unknown_datapoints = 5
rra[6].cf = "MIN"
rra[6].rows = 775
rra[6].cur_row = 214
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = inf
rra[6].cdp_prep[0].unknown_datapoints = 5
rra[7].cf = "MIN"
rra[7].rows = 797
rra[7].cur_row = 648
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = NaN
rra[7].cdp_prep[0].unknown_datapoints = 221
rra[8].cf = "MAX"
rra[8].rows = 600
rra[8].cur_row = 444
rra[8].pdp_per_row = 1
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[9].cf = "MAX"
rra[9].rows = 700
rra[9].cur_row = 4
rra[9].pdp_per_row = 6
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = -inf
rra[9].cdp_prep[0].unknown_datapoints = 5
rra[10].cf = "MAX"
rra[10].rows = 775
rra[10].cur_row = 58
rra[10].pdp_per_row = 24
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = -inf
rra[10].cdp_prep[0].unknown_datapoints = 5
rra[11].cf = "MAX"
rra[11].rows = 797
rra[11].cur_row = 128
rra[11].pdp_per_row = 288
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = NaN
rra[11].cdp_prep[0].unknown_datapoints = 221
rra[12].cf = "LAST"
rra[12].rows = 600
rra[12].cur_row = 198
rra[12].pdp_per_row = 1
rra[12].xff = 5.0000000000e-01
rra[12].cdp_prep[0].value = NaN
rra[12].cdp_prep[0].unknown_datapoints = 0
rra[13].cf = "LAST"
rra[13].rows = 700
rra[13].cur_row = 269
rra[13].pdp_per_row = 6
rra[13].xff = 5.0000000000e-01
rra[13].cdp_prep[0].value = NaN
rra[13].cdp_prep[0].unknown_datapoints = 5
rra[14].cf = "LAST"
rra[14].rows = 775
rra[14].cur_row = 659
rra[14].pdp_per_row = 24
rra[14].xff = 5.0000000000e-01
rra[14].cdp_prep[0].value = NaN
rra[14].cdp_prep[0].unknown_datapoints = 5
rra[15].cf = "LAST"
rra[15].rows = 797
rra[15].cur_row = 38
rra[15].pdp_per_row = 288
rra[15].xff = 5.0000000000e-01
rra[15].cdp_prep[0].value = NaN
rra[15].cdp_prep[0].unknown_datapoints = 221
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: UPS RTCS version 03.02.00

Post by Osiris »

Yup, it's clipping. Your RRDfile and template have a max value of 1000, and the values attempting to be inserted is 2300. So, every value will be discarded. Modify you Data Template and make the max value 'U'. Then delete the RRDfiles and let cacti recreate it and you will be all set.
Before history, there was a paradise, now dust.
glamas
Posts: 40
Joined: Tue Aug 15, 2017 7:39 am

Re: UPS RTCS version 03.02.00

Post by glamas »

Thanks that was the problem. Some idea to see how I can divide by 10 the value of the oid

From now on thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: UPS RTCS version 03.02.00

Post by TheWitness »

Just create a CDEF of CURRENT_DATASOURCE,10,/ call it "Divide by 10" and apply to your Graph Items and GPRINT Items and you will be all set. If you want to divide the value @ creation time, currently you have to do that in a script.

There is an outstanding feature to perform regex's @ creation time, but it's not a super high priority for me or the other Cacti Group member as CDEF's just work.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
glamas
Posts: 40
Joined: Tue Aug 15, 2017 7:39 am

Re: UPS RTCS version 03.02.00

Post by glamas »

Thank you, It ´s good!!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests