Smoke-ping 0.86c

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

Moderators: Developers, Moderators

Post Reply
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Re: no data?

Post by Pumpi »

redeye wrote:I have an problem with getting this to work :(.

I placed the script in the scripts dir. I can run it and get:

Code: Select all

#./ping-latency.pl xxx.xxx.xxx.xxx.xxx
min:1.28 avg:4.79 max:30.1 dev:14.41 loss:0
But when I look at the graph it looks like I don't get data :s

Debug says:
RRDTool Says: OK
Doe s anyone have a clue?

I having the same problem - have I missed a solution for this problem ?
srn
Posts: 7
Joined: Wed Mar 16, 2005 7:08 am

Post by srn »

Hi.

I'm running smoke ping for 24 hours and, since the begining, although the server as been always available, the graphs only show the last 5 minutes of availability. Meaning, each time the poller runs, it leaves the last 5 minutes showing the correct state but the rest of time becomes all red.

Any sugestions??
Attachments
smoke2.png
smoke2.png (4.18 KiB) Viewed 14894 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Looks like an issue with your data source.

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?
srn
Posts: 7
Joined: Wed Mar 16, 2005 7:08 am

Post by srn »

I'm a little lost.

Can you be a bit more specific?

Thanks.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Not without seeing 1) RRDfile 2) Database Dump.

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?
tamaqua
Posts: 7
Joined: Fri Apr 29, 2005 12:06 pm

3 hour graph

Post by tamaqua »

Hello, has anyone tried shooting for a 3 hr graph like the orig smokeping has? Sometimes it is nice to see more recent activity in detail...

A 3 hr orig smokeping graph:
Attachments
smoke.png
smoke.png (12.6 KiB) Viewed 14815 times
boran11
Posts: 27
Joined: Mon Mar 21, 2005 8:52 am

Post by boran11 »

I have two different cacti systems using smoke pings and latency pings two non-snmp devices (community set blank, host template=none). One one system it works fine, on the other I have the exact same behaviour as noted above: scripts seems to work fine, but graph is red except for the last 5 minutes.

I checked that I'm using the exact same ping-latency script on both systems, I also run a "normal ping.pl" ping latency and that works fine. Same OS (Suse9.1) & same Cacti (latest+ patches).

I've been at this on and off for a few daysnow, there must be a solution, although I'm new to Cacti, so it may be staring me in the face..

The poller cache seems to report all OK; for both normal pingand smokeping:

View Poller Cache
Data Source: Ip-plus 2 - Ping Host
RRD: /opt/cacti-0.8.6c/rra/ipplus_2_ping_69.rrd
Action: 1, Script: perl /opt/cacti-0.8.6c/scripts/ping.pl 164.128.49.169
Data Source: Ip-plus 2 - Smoke Ping
RRD: /opt/cacti-0.8.6c/rra/ipplus_2_min_70.rrd
Action: 1, Script: perl /opt/cacti-0.8.6c/scripts/ping-latency.pl 164.128.49.169

The cacti log with debugging enabled, does not (to my eye) provide and clues either:
04/29/2005 10:35:03 PM - SYSTEM STATS: Time: 3.1631 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
04/29/2005 10:35:02 PM - CMDPHP: Poller[0] Time: 2.2208 s, Theads: N/A, Hosts: 1
04/29/2005 10:35:02 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
04/29/2005 10:35:02 PM - CMDPHP: Poller[0] Host[8] CMD: perl /opt/cacti-0.8.6c/scripts/ping-latency.pl 164.128.49.169, output: min:2.257 avg:4.345 max:8.024 dev:1.701 loss:0
04/29/2005 10:35:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /opt/cacti-0.8.6c/rra/ipplus_2_ping_69.rrd --template ping 1114806900:3.69
04/29/2005 10:35:00 PM - CMDPHP: Poller[0] Host[8] CMD: perl /opt/cacti-0.8.6c/scripts/ping.pl 164.128.49.169, output: 3.69
04/29/2005 10:35:00 PM - CMDPHP: Poller[0] Host[8] No host availability check possible for '164.128.49.169'.
04/29/2005 10:35:00 PM - CMDPHP: Poller[0] Host[8] SNMP: Device does not require SNMP
04/29/2005 10:35:00 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
04/29/2005 10:35:00 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
04/29/2005 10:35:00 PM - PHPSVR: Poller[0] DEBUG: FILENM: /opt/cacti-0.8.6c/script_server.php
04/29/2005 10:35:00 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /opt/cacti-0.8.6c
04/29/2005 10:35:00 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/lib/wwwrun
04/29/2005 10:35:00 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
04/29/2005 10:35:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /opt/cacti-0.8.6c/cmd.php 0 8]

Thanks in advance, Sean.
Sean
boran11
Posts: 27
Joined: Mon Mar 21, 2005 8:52 am

Post by boran11 »

Quick followup, I see that the smoke ping rrd is not being updated, but ping.pl is:
ls -al /opt/cacti-0.8.6c/rra/ipplus_2*
-rw-r--r-- 1 wwwrun www 468988 Apr 26 07:55 /opt/cacti-0.8.6c/rra/ipplus_2_min_70.rrd
-rw-r--r-- 1 wwwrun www 71580 Apr 29 23:15 /opt/cacti-0.8.6c/rra/ipplus_2_ping_69.rrd

Would it help if I posted /opt/cacti-0.8.6c/rra/ipplus_2_min_70.rrd ?
Sean
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Looks like a bug. When did this start to happen. Was it with the upgrade to 0.8.6d?

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please upgrade to 0.8.6d.

Thanks,

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?
boran11
Posts: 27
Joined: Mon Mar 21, 2005 8:52 am

Post by boran11 »

Yipee! After the upgrade it works!

Any suggestion about the other question in the thread of having more detailed graphs like 1 3 hour range.
Sean
predou
Posts: 45
Joined: Fri Jan 07, 2005 8:42 am

Post by predou »

boran11 wrote:Yipee! After the upgrade it works!

Any suggestion about the other question in the thread of having more detailed graphs like 1 3 hour range.
I don't understand what you what !!!

My script already define same details than smokeping !

I tryed to do beautiful color stick (percentage succcess) but i don't know what command OETIKER used :'( :'(
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Send him an e-mail then :)

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?
metos
Posts: 16
Joined: Fri Mar 11, 2005 9:46 am

no graph

Post by metos »

i've installed smokeping.pl (5min) everything seems to be ok but there is no graph.

05/03/2005 02:15:24 PM - POLLER: Poller[0] Parsed MULTI output field 'min:0.122' [map min->min]
05/03/2005 02:15:24 PM - POLLER: Poller[0] Parsed MULTI output field 'avg:0.126' [map avg->avg]
05/03/2005 02:15:24 PM - POLLER: Poller[0] Parsed MULTI output field 'max:0.138' [map max->max]
05/03/2005 02:15:24 PM - POLLER: Poller[0] Parsed MULTI output field 'dev:0.011' [map dev->dev]
05/03/2005 02:15:24 PM - POLLER: Poller[0] Parsed MULTI output field 'loss:0' [map loss->loss]
05/03/2005 02:15:25 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.42/bin/rrdtool create /usr/local/cacti/cacti-0.8.6c/rra/XXXXXXXX_avg_580.rrd --step 300 DS:max:GAUGE:450:0:500 DS:dev:GAUGE:450:0:500 DS:min:GAUGE:450:0:500 DS:loss:GAUGE:450:0:120 DS:min:GAUGE:450:0:500 DS:dev:GAUGE:450:0:500 DS:max:GAUGE:450:0:500 DS:avg:GAUGE:450:0:500 DS:avg:GAUGE:450:0:500 DS:loss:GAUGE:450:0:120 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MIN:0.5:1:600 RRA:MIN:0.5:6:700 RRA:MIN:0.5:24:775 RRA:MIN:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
05/03/2005 02:15:25 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.0.42/bin/rrdtool update /usr/local/cacti/cacti-0.8.6c/rra/XXXXXXXX_avg_580.rrd --template min:avg:max:dev:loss N:0.122:0.126:0.138:0.011:0

if someone can explain me ?

Thanks
boran11
Posts: 27
Joined: Mon Mar 21, 2005 8:52 am

Post by boran11 »

upgrade to cacti-0.8.6d first
Sean
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests