ping script not working after changing from CMD to CACTID

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

Moderators: Developers, Moderators

Post Reply
JimmyC
Posts: 14
Joined: Thu Feb 17, 2005 4:23 am
Location: Belgium

ping script not working after changing from CMD to CACTID

Post by JimmyC »

I changed my poller to Cactid. everything is working except an external ping script.
Logfiles says:
03/01/2005 01:09:09 PM - CACTID: Poller[0] Host[28] WARNING: Result from SCRIPT not valid. Partial Result: U...
03/01/2005 01:09:09 PM - CACTID: Poller[0] Host[28] ERROR: Empty result [hostname.com]: 'perl C:/cacti/scripts/ntping.pl 5 hostname.com'

In a dosbox using command: C:\>perl c:\cacti\scripts\ntping.pl 5 hostname.com
avg:18 max:20

There are no leading/trailing blanks in the output. The script writes
print "avg:$avg max:$max";
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What version of Cactid?

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 »

In addition, please run 1nce in DEBUG and post log.

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?
JimmyC
Posts: 14
Joined: Thu Feb 17, 2005 4:23 am
Location: Belgium

Post by JimmyC »

Hi

I'm using Cactid version 0.8.6d

The Data Input Method is configured as Script/Command

perl <path_cacti>/scripts/ntping.pl <n> <ip>

Maybe it has something the do with the slashes ? i tried backslashes also, but that didn't work either.


I attached some parts of the debug logfile. I think the most relevant parts are in it.
Attachments
logfile.txt
Debug Logfile
(12.66 KiB) Downloaded 184 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

run poller.php from the command line in debug mode and redirect the output to a file and see if you get some form of error message.

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?
JimmyC
Posts: 14
Joined: Thu Feb 17, 2005 4:23 am
Location: Belgium

Post by JimmyC »

hi,
Here is a zip file with the output from
C:\cacti\php-win poller.php > c:\output.txt

and the logfile from cacti.
Attachments
cacti.zip
(37.9 KiB) Downloaded 139 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Here is your error.
03/07/2005 04:29:36 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update C:\cacti\rra\pww_filenet_average_152.rrd --template 1110209371:U
ERROR: Not enough arguments
OK
It looks like the data template is not specifying an RRD DS name for the internal handling of the RRD file. That would be a template issue. In addition, ping is not returning a value.

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 »

Also,

Please insure that you have a base "Cygwin" installed on your poller and that the cygwin1.dll, sh.exe, and any other DLL's are removed from your c:\cactid directory.

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?
JimmyC
Posts: 14
Joined: Thu Feb 17, 2005 4:23 am
Location: Belgium

SOLVED

Post by JimmyC »

TheWitness: Thank you very much.
It was the missing CYGWIN installation.

After installing Cygwin, ( and removing cygwin1.dll from c:\cactid !! ) everything works fine.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests