Hey I am quite new to cacti, but have alot of the graphs I need working however I am having issues with smokeping. For that matter I can not get the advanced ping or the ping to work. It never seems to create a graph. I keep seeing mention of scripts. What are the scripts for, where do i have to put them so cacti can use them.
Any advice on how to get it working would be greatly appreciated
I am using debian Linux 2.4.27-3-386
Cacti 8.6i
I changed the poller so that it is being run by root.
When I look at the graph and turn on the debugger I get the following error
ERROR: invalid rpn expression 'a,g,-,0.2,*'
I am using the cacti_graph_template_smoke_ping_228.xml for a template. I did not see a newer one is this the latest and correct one to use
how do i clear up the error?
Here is the debug
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="smsserv - Smoke Ping" \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=10 \
--lower-limit=0 \
--units-exponent=1 \
--vertical-label="milliseconds" \
DEF:a="/usr/share/cacti/site/rra/smsserv_loss_53.rrd":avg:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/smsserv_loss_53.rrd":max:AVERAGE \
DEF:c="/usr/share/cacti/site/rra/smsserv_loss_53.rrd":min:AVERAGE \
DEF:d="/usr/share/cacti/site/rra/smsserv_loss_53.rrd":loss:AVERAGE \
DEF:e="/usr/share/cacti/site/rra/smsserv_loss_53.rrd":max:MAX \
CDEF:cdefb=b,a,-,0.2,* \
CDEF:cdefh=a,g,-,0.2,* \
CDEF:cdefbc=e,0,* \
CDEF:cdefbd=bc,0,GT,UNKN,a,IF \
CDEF:cdefbe=bc,0,GT,bc,40,GT,UNKN,g,IF,UNKN,IF \
CDEF:cdefbf=bc,40,GT,bc,80,GT,UNKN,g,IF,UNKN,IF \
CDEF:cdefbg=bc,UN,1,EQ,TIME,300,+,NOW,GT,UNKN,INF,IF,bc,80,GT,INF,UNKN,IF,IF \
CDEF:cdefbh=d,UN,1,EQ,TIME,300,+,NOW,GT,100,0,IF,100,d,-,IF \
AREA:a#FFFFFF:"" \
STACK:cdefb#333333:"" \
STACK:cdefb#555555:"" \
STACK:cdefb#888888:"" \
STACK:cdefb#AAAAAA:"" \
STACK:cdefb#CCCCCC:"" \
AREA:c#FFFFFF:"" \
STACK:cdefh#CCCCCC:"" \
STACK:cdefh#AAAAAA:"" \
STACK:cdefh#888888:"" \
STACK:cdefh#555555:"" \
STACK:cdefh#333333:"" \
AREA:cdefbc#FFFFFF:"" \
LINE1:cdefbd#00CF00:"Up" \
AREA:cdefbe#4123A1:"Packet loss \: 1 -> 40 %" \
AREA:cdefbf#8F005C:"Packet loss 41 -> 80 %" \
AREA:cdefbg#FF0000:"Down\n" \
GPRINT:cdefbh:AVERAGE:"Success rate \:%8.2lf %%\n" \
COMMENT:"Response time :" \
GPRINT:c:MIN:"Minimum \:%8.2lf ms" \
GPRINTAVERAGE:"Average \:%8.2lf ms" \
GPRINT:e:MAX:"Maximum \:%8.2lf ms\n"
RRDTool Says:
ERROR: invalid rpn expression 'a,g,-,0.2,*'
SmokePing Problems
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
This is a known issue. I thought that a revised template had been released, but I believe you need to edit the CDEF and change the "g" to an "e".
TheWitness
TheWitness
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?
More problems
now I am recieving the following error
ERROR: invalid rpn expression 'bc,0,GT,UNKN,a,IF'
ERROR: invalid rpn expression 'bc,0,GT,UNKN,a,IF'
Who is online
Users browsing this forum: No registered users and 0 guests