Windows Ping - Empty Graphs

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Guest

Windows Ping - Empty Graphs

Post by Guest »

I have found various topics that provide information on implementing a Ping Latency graph in a Windows environment. I have got so far and am now stuck. :(

I have a script that works, a modified ping.pl script. I can run it manually with perl ping.pl <ip_address> in the directory in which cmd.php runs and it returns a good value. However, the Cacti graph is stuck with -1 J#.

What I have done is:

1. Copied the ping.pl script for windows.

2. Created a Data Input Method based on Unix - Ping Host, called Windows - Ping Host.

3. Duplicated the Data Template, "Unix - Ping Host", and saved it as "Windows - Ping Host". Pointed the Data Template at "Windows - Ping Host", Data Input Method.

4. Duplicated the Graph Template, "Unix - Ping Latency", and save it as, "Windows - Ping Latency". Pointed the Graph Template Data Template Items at, "Windows - Ping Host (Ping)".

RRDTool is happy, Cacti is happy but still no values on the graph.

Can anyone help please?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Guest,

Please perform the following steps:

1) Upgrade to the latest pre-release of 0.8.6a at http://www.cacti.net/downloads
2) Insure that you are NOT running PHP 4.3.4. Recommend PHP 4.3.6+
3) Insure that your cron includes "php <webroot>/cacti/poller.php"
4) Download, build and install the latest pre-release of Cactid 0.8.6a at http://www.cacti.net/downloads
5) Download SH.EXE from the following post and place it in your c:\cactid directory. http://forums.cacti.net/viewtopic.php?t=4797&start=15

Regards,

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?
Guest

Post by Guest »

Thanks for the quick response. I'm a networks guy not a programmer so be gentle with me. :wink:

1) Upgrade to the latest pre-release of 0.8.6a at http://www.cacti.net/downloads

I'm on 0.8.5a so I'll try an upgrade.

2) Insure that you are NOT running PHP 4.3.4. Recommend PHP 4.3.6+

I'm way behind with 4.3.1!

3) Insure that your cron includes "php <webroot>/cacti/poller.php"

I'm sorry but I don't understand this one. I'm running Windows so don't have cron. However, I have a Scheduled Task for cmd.php. Do you mean that I need to run another Scheduled Task as described above. If so, at what interval?

Also, what does poller.php do?


4) Download, build and install the latest pre-release of Cactid 0.8.6a at http://www.cacti.net/downloads

Is this the same as 1)?

5) Download SH.EXE from the following post and place it in your c:\cactid directory. http://forums.cacti.net/viewtopic.php?t=4797&start=15

OK
Guest

Post by Guest »

Thanks for the quick response. I'm a networks guy not a programmer so be gentle with me. :wink:

1) Upgrade to the latest pre-release of 0.8.6a at http://www.cacti.net/downloads

I'm on 0.8.5a so I'll try an upgrade.

2) Insure that you are NOT running PHP 4.3.4. Recommend PHP 4.3.6+

I'm way behind with 4.3.1!

3) Insure that your cron includes "php <webroot>/cacti/poller.php"

I'm sorry but I don't understand this one. I'm running Windows so don't have cron. However, I have a Scheduled Task for cmd.php. Do you mean that I need to run another Scheduled Task as described above. If so, at what interval?

Also, what does poller.php do?


4) Download, build and install the latest pre-release of Cactid 0.8.6a at http://www.cacti.net/downloads

Is this the same as 1)?

5) Download SH.EXE from the following post and place it in your c:\cactid directory. http://forums.cacti.net/viewtopic.php?t=4797&start=15

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

Post by TheWitness »

3) Insure that your cron includes "php <webroot>/cacti/poller.php"

I'm sorry but I don't understand this one. I'm running Windows so don't have cron. However, I have a Scheduled Task for cmd.php. Do you mean that I need to run another Scheduled Task as described above. If so, at what interval?

Also, what does poller.php do?
We changed the architecture in 0.8.6. The scheduled task is now "c:\php.exe c:\<mywebroot\cacti\poller.php" and not cmd.php
) Download, build and install the latest pre-release of Cactid 0.8.6a at http://www.cacti.net/downloads

Is this the same as 1)?
Cactid is now a separate ANSI C product used for polling. There were some changes last night for many *nix users.

Please insure that you take your time and read the documentation. This is especially true if you plan on upgrading to PHP 5.x.

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?
Guest

Post by Guest »

Many thanks. I'll try all your suggestions and let you know the outcome.
guest

Post by guest »

I have upgraded as suggested:

PHP 4.3.9
Net-SNMP 5.1.2.1
Cacti 0.8.6a
poller.php

All seems to work. However, I get messages from the php poller.php:

Cannot find module (IP-MIB):At line 0 in (none)
Cannot find module (IF-MIB):At line 0 in (none) etc.

This is repeated for several different MIBs. However,

1. These MIBs are in c:\usr\mibs.
2. These MIBs are in c:\usr\share\snmp\mibs.

Apart from the messages all else seems to be OK.

Can you help?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Two environment variables:

MIBS=""
MIBSDIR="c:/usr/mibs"

MIBS="All" works well too.
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?
guest

Post by guest »

Works a treat. :D

Thank you very much.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests