Advanced Ping Template for Cacti 0.8.6f

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

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

Advanced Ping Template for Cacti 0.8.6f

Post by TheWitness »

All,

This template and associated PHP Script Server Script are identical to the thread below and should replace them automatically. However, existing Graphs and Data Sources may be impacted negatively.

http://forums.cacti.net/viewtopic.php?t=8503

If you are not using the SmokePing Like, then you should not have any issues with this new template. Thanks goes to Drose12 for developing the original.

Please note that on unix systems that are not running the poller process as root, cacti will attempt to utilize UDP pinging. I suggest that the poller process runs as root to reduce issues.

TheWitness

EDIT: 2005/08/03 - Updated Fixed ss_fping.php Script
Attachments
ss_fping.zip
PHP Script Server Script FPing Emulator
(795 Bytes) Downloaded 3210 times
Google Ping.JPG
Google Ping.JPG (27.46 KiB) Viewed 39085 times
cacti_graph_template_ping_advanced_ping_v1_2.xml
Graph Template with All Dependencies
(37.06 KiB) Downloaded 4890 times
Last edited by TheWitness on Thu Oct 27, 2005 9:52 pm, edited 2 times in total.
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
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi Larry

thanks for this template. I'd like to keep the poller running as non-root, do you think it would possible to use your script with someting like sudo (I usually run fping with sudo) ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What I could do is provide an option to perform a TCP, UDP, or ICMP pings specifying a port number as an option? What do you think?

Therefore instead of simply specifying:
1) Number of retries

You would specify:
1) Number of retries
2) Ping Type: TCP/UDP/ICMP
3) Port Number for (TCP/UDP)

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?
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

Hi

when i try to import the xml file i have that errot:

Error: XML: Hash version does not exist.
Visit my web site: http://www.websat-telecom.com
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

same here
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Template is made in 0.8.6f, you will need 0.8.6f to import it.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

rony wrote:Template is made in 0.8.6f, you will need 0.8.6f to import it.
running 0.8.6f here.. doesnt import properly.
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

very wierd, i tried the import one more time and it worked. no idea what happened there.
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

i created a DS and graph with using the templates and:

RRDTool Says:

ERROR: can't parse ':'


i turned off the template on the graph and check each graph item. looks like they all have a DS associated with them. did i miss something?
fanu
Posts: 18
Joined: Thu Oct 07, 2004 2:53 pm
Location: Paris, France

Post by fanu »

I have exactly the same problem : Error: XML: Hash version does not exist.

I have cacti version 0.8.6f

Thanks for your help.

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

Post by TheWitness »

This is likely my issue. Let me do a fresh install in the next day or so and repost if I find something.

Larry
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?
vtmgr
Posts: 27
Joined: Wed Aug 11, 2004 2:23 pm
Location: Vermont, USA

Almost working...

Post by vtmgr »

I am running this on a Win32 Platform. When I run it from the Script Server console, per the Witness's excellent instructions, it appears to return perfectly useful and sane results.

However, when it is running in Cacti itself, it doesn't appear to give me output.

Running in Debug, it seems that it always returns "output: AV:U PL:100".

Looking in the script code, it seems to indicate an error condition, but:

a) my PHP is no where near good enough to figure out what.

and

b) why does it seem to run fine from the command line?

If someone knows the magical incantation to correct this, I would be most grateful.
Cacti 0.8.6f
CMD
MySQL 4.0.20
Net-SNMP 5.1.1
IIS 6
PHP 5.0.2
RRDtool 1.2.10
Windows 2003 Server
vtmgr
Posts: 27
Joined: Wed Aug 11, 2004 2:23 pm
Location: Vermont, USA

permissions on win32

Post by vtmgr »

well, it appears to be a permissions issue. if I try to run it from the account I have the poller running as, it comes back with that error.

That said, I haven't found out where yet.

I have given that account to read/execute ping, lib\ping.php, and the script_server script, but it doesn't seem to help.
Cacti 0.8.6f
CMD
MySQL 4.0.20
Net-SNMP 5.1.1
IIS 6
PHP 5.0.2
RRDtool 1.2.10
Windows 2003 Server
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need to apply the patches at:

http://www.cacti.net/downloads/patches/ ... re-patched

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: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Once I had applied the patches in my production Windows environment, it worked like a champ.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests