Negative Then Positive Then Negative Values
Moderators: Developers, Moderators
- ChaosSystems
- Posts: 9
- Joined: Mon Oct 24, 2011 11:27 am
- Location: Cambridge
- Contact:
Negative Then Positive Then Negative Values
Hi
I am having the same problem described in the thread False Positives but sadly no solution was posted.
I checked the database and I am not using any DERIVED datasource types.
Using Cacti 0.8.7e and Thold 0.4.8 and High/Low values using data type Exact Value and getting e-mails sent because negative values are been generated.
The datasource type is a Counter.
Any ideas?
I am having the same problem described in the thread False Positives but sadly no solution was posted.
I checked the database and I am not using any DERIVED datasource types.
Using Cacti 0.8.7e and Thold 0.4.8 and High/Low values using data type Exact Value and getting e-mails sent because negative values are been generated.
The datasource type is a Counter.
Any ideas?
- Attachments
-
- Threshold.png (5.17 KiB) Viewed 5407 times
Re: Negative Then Positive Then Negative Values
Hi,
I was facing the same problem with you but so far my value is always negative. If you believe it is always negative, you can choose RPN Expression in the Data Type. And use ABS(|ds:traffic_in|)
was:
And then multiply the data source with -1. Like -1*|ds:traffic_in|
I was facing the same problem with you but so far my value is always negative. If you believe it is always negative, you can choose RPN Expression in the Data Type. And use ABS(|ds:traffic_in|)
was:
And then multiply the data source with -1. Like -1*|ds:traffic_in|
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Negative Then Positive Then Negative Values
That's weird. Can you do an rrdtool info and post the head of the file?
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?
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?
Re: Negative Then Positive Then Negative Values
Hi sorry for late reply. I just updated my thold to latest version. I don't know if it is what you mean of rrd info:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1323330543 \
--end=1323416943 \
--title=' BGP Router - Ext - Traffic - Gi0/0 - (Link#1)' \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2011/12/08 09\:49\:03 To 2011/12/09 09\:49\:03\c" \
COMMENT:" \n" \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/var/www/nms/rra/bgp_router_-_ext_traffic_in_575.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/nms/rra/bgp_router_-_ext_traffic_in_575.rrd":traffic_out:AVERAGE \
DEF:c="/var/www/nms/rra/bgp_router_-_ext_traffic_in_575.rrd":traffic_out:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
CDEF:cdefbb=a,UN,INF,UNKN,IF \
--watermark "xxx"
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Last\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s" \
COMMENT:"Total In\: 201.4 GB\n" \
LINE1:cdeff#002A97FF:"Outbound" \
GPRINT:cdeff:LAST:"Last\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Max\:%8.2lf %s" \
COMMENT:"Total Out\: 26.41 GB\n" \
COMMENT:"Graph Last Updated\:Fri 09 Dec 09\:45\:05 CAT 2011\n" \
AREA:cdefbb#8F9286FF:""
That is from one of the graph that thold detects the value is negative. Below is screenshot from thold:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1323330543 \
--end=1323416943 \
--title=' BGP Router - Ext - Traffic - Gi0/0 - (Link#1)' \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2011/12/08 09\:49\:03 To 2011/12/09 09\:49\:03\c" \
COMMENT:" \n" \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/var/www/nms/rra/bgp_router_-_ext_traffic_in_575.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/nms/rra/bgp_router_-_ext_traffic_in_575.rrd":traffic_out:AVERAGE \
DEF:c="/var/www/nms/rra/bgp_router_-_ext_traffic_in_575.rrd":traffic_out:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
CDEF:cdefbb=a,UN,INF,UNKN,IF \
--watermark "xxx"
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Last\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s" \
COMMENT:"Total In\: 201.4 GB\n" \
LINE1:cdeff#002A97FF:"Outbound" \
GPRINT:cdeff:LAST:"Last\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Max\:%8.2lf %s" \
COMMENT:"Total Out\: 26.41 GB\n" \
COMMENT:"Graph Last Updated\:Fri 09 Dec 09\:45\:05 CAT 2011\n" \
AREA:cdefbb#8F9286FF:""
That is from one of the graph that thold detects the value is negative. Below is screenshot from thold:
- Attachments
-
- thold detect negative value
- Screen Shot 2011-12-09 at 9.46.27 AM.png (38.35 KiB) Viewed 5353 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Negative Then Positive Then Negative Values
What Data Manipulation are you using in the told? What Data Types are the Data Sources (counter, guage, derive, absolute)?
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?
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?
Re: Negative Then Positive Then Negative Values
Please, someone help me with this, the attached image has informations about the problem.
- Attachments
-
- debug.png (129.55 KiB) Viewed 4944 times
-
- Posts: 1
- Joined: Tue Mar 26, 2013 11:28 am
- Location: Mexico D.F.
Re: Negative Then Positive Then Negative Values
Hello.
I was in the same situation, and it had an offset graphs so I solved the folowing form:
Verifying local times in both my team and the php.ini, had a difference of 1 hour, which modify my php.ini file for adding my time zone and time was corrected and in turn disappeared in negative values, providing the correct value.
Hope this helps.
I was in the same situation, and it had an offset graphs so I solved the folowing form:
Verifying local times in both my team and the php.ini, had a difference of 1 hour, which modify my php.ini file for adding my time zone and time was corrected and in turn disappeared in negative values, providing the correct value.
Hope this helps.
Re: Negative Then Positive Then Negative Values
THANK YOU VERY MUCH !!!!MarioCesar wrote:Hello.
I was in the same situation, and it had an offset graphs so I solved the folowing form:
Verifying local times in both my team and the php.ini, had a difference of 1 hour, which modify my php.ini file for adding my time zone and time was corrected and in turn disappeared in negative values, providing the correct value.
Hope this helps.
This information has gold value There are a lot of people in the world with this problem, and google didn't have the answer until now
I had to correct the date and timezone for system(linux), php, mysql, etc.
Re: Negative Then Positive Then Negative Values
dlalaina,
Do these solve the issue/problem? Or just the "negative" values?
My question is if after the local times correction, the "current" value of thold is now ok?
Can you please post what are the correction do you have made?
Thx in advance.
Best regards,
/mserrao
Do these solve the issue/problem? Or just the "negative" values?
My question is if after the local times correction, the "current" value of thold is now ok?
Can you please post what are the correction do you have made?
Thx in advance.
Best regards,
/mserrao
Re: Negative Then Positive Then Negative Values
Yes, this solved the negative problem, now the data source is right, the current and last values are right, and I just just have to use CDEF to manipulate the data, like:mpmserrao wrote:dlalaina,
Do these solve the issue/problem? Or just the "negative" values?
My question is if after the local times correction, the "current" value of thold is now ok?
Can you please post what are the correction do you have made?
Thx in advance.
Best regards,
/mserrao
Special Data Source: CURRENT_DATA_SOURCE
Item #2 Custom String: 8
Item #3 Operator: *
Item #4 Custom String: 1024
Item #5 Operator: /
Item #6 Custom String: 1024
Item #7 Operator: /
or
Special Data Source: CURRENT_DATA_SOURCE
Item #2 Custom String: 8
Item #3 Operator: *
Item #4 Custom String: 1024
Item #5 Operator: /
Re: Negative Then Positive Then Negative Values
Thaaaannnnkkkk I have this problem today and fix in a few minutes, thanks so much!!
Who is online
Users browsing this forum: No registered users and 1 guest