Smoke-ping 0.86c

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

Moderators: Developers, Moderators

Post Reply
redeye
Posts: 18
Joined: Fri Feb 04, 2005 8:42 am

no data?

Post by redeye »

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?
Attachments
chello.png
chello.png (3.6 KiB) Viewed 16445 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

redeye,

this graph implementation works kind of other way round than usual. Initially, you will find all graphs totally in red. Wait an hours or so and you should see the real data at the right side of the graph. Have a look at the legend. There you should see the actual data after 5 min. or so.
If the problem persists, please sitch to DEBUG mode and post the findings from cacti.log around the call of ping-latency.pl

Reinhard
redeye
Posts: 18
Joined: Fri Feb 04, 2005 8:42 am

Post by redeye »

It's running 24 hours now ;)
redeye wrote: Debug says:
RRDTool Says: OK
cacti.log has no entry of ping-latency.pl
TethiS
Posts: 1
Joined: Wed Apr 20, 2005 2:42 am
Location: Fr

Post by TethiS »

04/20/2005 10:07:44 AM - CMDPHP: Poller[0] Host[125] CMD: perl /var/www/html/cacti/scripts/ping-latency.pl host01, output: min:0.155 avg:0.176 max:0.191 dev:0.020 loss:0
the above line is NOT followed by a "rrdtool update /path/host01_xxx_.rrd", so is normal the graph stays red all the time.
In Data Input Methods the "Update RRD File" case is checked..

Any clues?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please verify that your script output is trimmed.

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?
mjaz
Posts: 9
Joined: Mon Apr 18, 2005 7:33 am

Post by mjaz »

Is it possible to use this on a win32 server, maybe with a different version of ping than the standard ms one? i hope so, would be really good to be able to graph device response times like this. Anyone any ideas?

Mark
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I would think so, different version of ping.pl I'll bet though.

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?
marcofe
Posts: 3
Joined: Thu Apr 21, 2005 7:51 am

PROBLEM FOR GRAPH

Post by marcofe »

hbokh wrote:Merci beaucoup! :D
I've made the needed translations from French to English.
Here's my translated XML and a screenshot from how it looks after a couple of polls.
hi, thanks for your xmls but i ave a problem for import
I wanted to tell you that I don't succeed in caring your xmls when i selected by the menu import and press save not succes nothing the my cacti version is 86b
txxxxx for you help :wink:
predou
Posts: 45
Joined: Fri Jan 07, 2005 8:42 am

Post by predou »

you need cacti version 0.86c
boran11
Posts: 27
Joined: Mon Mar 21, 2005 8:52 am

smokeping without snmp

Post by boran11 »

Hi,

I downloaded the XML & script for smoke ping and it works fine: for hosts with SNMP... but not for remote targets which have no snmp..

I can see the script being called correctly in the cacti log, but no rrd file is generated..

Why is this? (I apologise in advance if this is FAQ, I've not found a comprehensive answer to ping-without-snmp..).

MErci,

Sean
Sean
_alex_
Posts: 17
Joined: Wed Feb 02, 2005 12:20 pm

Post by _alex_ »

Hi,
I have I think , the same problem as redeye

In cacti.log I have
04/25/2005 06:29:06 PM - CMDPHP: Poller[0] Host[52] CMD: perl /var/www/cacti/scripts/ping-latency.pl XXX.XXX.XXX.XXX, output: XXX.XXX.XXX.XXXmin:2.5 avg:9.5 max:19.2 dev: loss:0
But the rrd is not update and the graph stay completly red.

Is anyone say what could be wrong ?

best regards

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

Post by boran11 »

I don't get any graph at all (as opposed to being red), becuase no rrd file is created. However, as you note, the cacati log shows that the ping latency perl script has been successfully run.

Is your target SNMP enabled?
Sean
_alex_
Posts: 17
Joined: Wed Feb 02, 2005 12:20 pm

Post by _alex_ »

yes I'm graphing all the interfaces of this cisco routers
boran11
Posts: 27
Joined: Mon Mar 21, 2005 8:52 am

Post by boran11 »

My problem is probably different to yours as I'm running on Linux (Suse 9.1) and smokeping works fine for me on a target with SNMP access, but not with a target without SNMP.

In my poller cache I can see the script being called:
Data Source: green2 - Smoke Ping
RRD: /opt/cacti-0.8.6c/rra/green2_min_26.rrd
Action: 1, Script: perl /opt/cacti-0.8.6c/scripts/ping-latency.pl 10.0.0.2

but the rrd file is never created for "green2"

In the cacti logs for the smokeping that works, I see:
04/25/2005 11:20:10 PM - CMDPHP: Poller[0] Host[1] CMD: perl /opt/cacti-0.8.6c/scripts/ping-latency.pl 172.17.17.10, output: min:0.274 avg:0.302 max:0.338 dev:0.023 loss:0

I see no trace of the system "green2" in the cacti logs, but I do see two of these:
04/25/2005 11:20:14 PM - CMDPHP: Poller[0] Host[4] SNMP: Host did not respond to SNMP

==> Does Cacti ALWAYS require targets to be reached by SNMP?
Is there a way of only working on ICMP?
Sean
boran11
Posts: 27
Joined: Mon Mar 21, 2005 8:52 am

Post by boran11 »

Yes, ping needs SUID to execute as root and connect to the network device..

For me with my target without SNMP, the fix was to define a BLANK SNMP community strings.
Sean
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest