I need some GPRINT tricks

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

mazaj
Posts: 13
Joined: Wed Mar 23, 2005 6:01 am

Post by mazaj »

Code: Select all

fping differs from ping in that you can specify any number of targets on the command line, or specify a file containing the lists of targets to ping. Instead of sending to one target until it times out or replies, fping will send out a ping packet and move on to the next target in a round-robin fashion.
yes it is faster only if you have a list of hosts. but in our scripts (in Cacti) we have only one target. so what's the difference? why should setup additional program?
viper99
Posts: 38
Joined: Thu Sep 21, 2006 6:22 am

ping.pl errors

Post by viper99 »

TheWitness wrote:The ping command is not found by the OS. Please note the following:
ping: not found
ping: not found
U:U
U:U
This is the error I get when the script runs.

Code: Select all

01/13/2007 10:35:33 PM - CACTID: Poller[0] Host[31] ERROR: Empty result [vodprop-1-158.vodprop]: 'perl /usr/local/bin/ping_latency.pl vodprop-1-158.vodprop'
01/13/2007 10:35:33 PM - CACTID: Poller[0] Host[31] DS[1077] SCRIPT: perl /usr/local/bin/ping_latency.pl vodprop-1-158.vodprop, output: U
01/13/2007 10:35:33 PM - CACTID: Poller[0] Host[31] ERROR: Empty result [vodprop-1-158.vodprop]: 'perl /usr/local/bin/ping_latency.pl vodprop-1-158.vodprop'
01/13/2007 10:35:33 PM - CACTID: Poller[0] Host[31] DS[1081] SCRIPT: perl /usr/local/bin/ping_latency.pl vodprop-1-158.vodprop, output: U
01/13/2007 10:35:34 PM - CACTID: Poller[0] Host[31] DS[1080] SNMP: v2: vodprop-1-158.vodprop, dsname: open_files, oid: .1.3.6.1.4.1.23.2.28.2.7.0, value: U
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I suppose you have two problems.
The perl scripts will need /full/path/to/perl in their Data Input Methods. Then php -q rebuild_poller_cache.php
The other one: Please try to run snmpget against that OID/version/cummunity from command line to check the reponse of your target
Reinhard
raminmalek
Posts: 20
Joined: Fri Jul 10, 2015 4:12 pm

Re:

Post by raminmalek »

raX wrote:I forgot something... you will need to put the attached script in your /usr/local/bin directory for the XML above to work. You can of course change this path by going to "Data Input Methods" and selecting "Unix - Ping Host (With Latency)".

http://www.raxnet.net/downloads/cacti/s ... latency.pl

-Ian

The download link Not worked
sophan
Posts: 1
Joined: Mon Nov 16, 2015 5:48 am

Re: I need some GPRINT tricks

Post by sophan »

Hi guys,
Could you please attached the script ping_latency.pl.
I cannot download from this url http://www.raxnet.net/downloads/cacti/s ... latency.pl
Thanks.

Best regards,
Sophan
crobert22222
Posts: 1
Joined: Tue Oct 03, 2017 11:06 am

Re: I need some GPRINT tricks

Post by crobert22222 »

FYI - I found the script at (as of 10/3/2017):

https://www.cacti.net/downloads/scripts/ping_latency.pl
DeaDDingo
Posts: 3
Joined: Mon Nov 07, 2011 12:00 pm

Re: I need some GPRINT tricks

Post by DeaDDingo »

hello, I use the perl script without changes, as it was originally and the original xml and at the beginning I did not get anything in the graph (just came out, NAN). But when I went to create the graph, in the space that says "hostname" I placed the ip of the computer and the graph started to work
Attachments
graph.png
graph.png (31.09 KiB) Viewed 588 times
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests