Cactid 0.86c & d changing backslashes to forward slashes

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

Moderators: Developers, Moderators

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

Post by TheWitness »

on its way
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?
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

Cool, thanks :)
Dominic Ryan
www.iis-aid.com
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Let me know if it works ok for you.

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?
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

Is there any particular version of cygwin I need to run?

I didn't have cygwin installed, and when I tried to execute cactid.exe it asked for cygcrypto-0.9.7.dll. So I installed cygwin and renamed the cygwin1.dll that came with Cactid 0.8.6c. Now I get this error message;

Image

and then when I click OK I get this in the command window;

Image

I'm trying to download the latest version of Cygwin now.
Last edited by Brashquido on Thu Jan 27, 2005 9:49 pm, edited 1 time in total.
Dominic Ryan
www.iis-aid.com
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Make sure you empty the c:\cactid\ directory of everything except 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?
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

Hmmm....

Might reinstall cygwin me thinks. When I removed all non cactid* files I now get the meesage about cygcrypto-0.9.7.dll missing again, and to reinstall cygwin.
Dominic Ryan
www.iis-aid.com
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes, I strongly recommend reinstalling cygwin.

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?
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

Having no luck here. Just uninstalled Cygwin, deleted the cygwin directory and then resintalled from a package download in august last year (is this too old?) and now I get;

Image
Dominic Ryan
www.iis-aid.com
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1) Make sure that the c:\cygwin\bin is in your path
2) Search your computer for cygwin1.dll and make sure the only one is in c:\cygwin\bin
3) Make sure that you installed Cygwin 1.15.12.1

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?
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

Is it just me, or does it seem quite cumbersome to uninstall cgwin :-? ? Looks like my version of Cygwin must be out of date, so I downloaded and installed a new version from scratch. Your modified version of Cactid now runs TheWitness :-) . My script doesn't return a readable result though when using it :-( .

THis is from the cacti log when running in cmd.php mode;
01/31/2005 02:16:15 PM - CMDPHP: Poller[0] Host[2] CMD: perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/thresholds.csv "RAM", output: 20
01/31/2005 02:16:15 PM - CMDPHP: Poller[0] Host[2] CMD: perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/ram-usage.csv "\\ADA-1048\Memory\Pages/sec", output: 1
01/31/2005 02:16:15 PM - CMDPHP: Poller[0] Host[2] CMD: perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/disk-usage.csv "\\ADA-1048\LogicalDisk(_Total)\Free Megabytes", output: 74564
01/31/2005 02:16:15 PM - CMDPHP: Poller[0] Host[2] CMD: perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/cpu-usage.csv "\\ADA-1048\Processor(_Total)\% Processor Time", output: 4
01/31/2005 02:16:14 PM - CMDPHP: Poller[0] Host[2] No host availability check possible for '127.0.0.1'.
01/31/2005 02:16:14 PM - CMDPHP: Poller[0] Host[2] SNMP: Device does not require SNMP
01/31/2005 02:16:14 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
01/31/2005 02:16:14 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
And when running your modified Cactid I get this;
01/31/2005 02:16:23 PM - CACTID: Poller[0] Host[2] SCRIPT: perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/thresholds.csv "RAM", output: U
01/31/2005 02:16:23 PM - CACTID: Poller[0] Host[2] WARNING: Result from SCRIPT not valid. Partial Result: U...
01/31/2005 02:16:23 PM - CACTID: Poller[0] Host[2] ERROR: Empty result [127.0.0.1]: 'perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/thresholds.csv "RAM"'
01/31/2005 02:16:23 PM - CACTID: Poller[0] Host[2] SCRIPT: perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/ram-usage.csv "\\ADA-1048\Memory\Pages/sec", output: U
01/31/2005 02:16:23 PM - CACTID: Poller[0] Host[2] WARNING: Result from SCRIPT not valid. Partial Result: U...
01/31/2005 02:16:23 PM - CACTID: Poller[0] Host[2] ERROR: Empty result [127.0.0.1]: 'perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/ram-usage.csv "\\ADA-1048\Memory\Pages/sec"'
01/31/2005 02:16:22 PM - CACTID: Poller[0] Host[2] SCRIPT: perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/disk-usage.csv "\\ADA-1048\LogicalDisk(_Total)\Free Megabytes", output: U
01/31/2005 02:16:22 PM - CACTID: Poller[0] Host[2] WARNING: Result from SCRIPT not valid. Partial Result: U...
01/31/2005 02:16:22 PM - CACTID: Poller[0] Host[2] ERROR: Empty result [127.0.0.1]: 'perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/disk-usage.csv "\\ADA-1048\LogicalDisk(_Total)\Free Megabytes"'
01/31/2005 02:16:22 PM - CACTID: Poller[0] Host[2] SCRIPT: perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/cpu-usage.csv "\\ADA-1048\Processor(_Total)\% Processor Time", output: U
01/31/2005 02:16:22 PM - CACTID: Poller[0] Host[2] WARNING: Result from SCRIPT not valid. Partial Result: U...
01/31/2005 02:16:22 PM - CACTID: Poller[0] Host[2] ERROR: Empty result [127.0.0.1]: 'perl D:\cacti/scripts/w32_perfmon.pl c:/perflogs/cpu-usage.csv "\\ADA-1048\Processor(_Total)\% Processor Time"'
01/31/2005 02:16:21 PM - CACTID: Poller[0] Host[2] PING: Result UDP: Host is Alive
01/31/2005 03:16:21 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cactid
01/31/2005 02:16:16 PM - SYSTEM STATS: Time: 2.2090 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
01/31/2005 02:16:16 PM - CMDPHP: Poller[0] Time: 1.6347 s, Theads: N/A, Hosts: 1
As you can see, the backslahes remain as backslashes as they should be, the returned result just doesn't seem to match up. I tried copying the perl script execution line from the output of the modified cactid and pasted it into a command window and it worked.
Dominic Ryan
www.iis-aid.com
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Run once in debug mode. Post the results.

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

Post by TheWitness »

You may have to change all your forward slashes in the script name to back slashes as well. May have more work.

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?
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

Ok, I think I found why it isn't working. I see this error when manually running the modified cactid.exex from the command line;
Can't open perl script "D:cacti/scripts/w32_perfmon.pl": No such file or directory
This line doesn't show up in the cactilog for some reason, but does from the command line. Anyway, you can see here that the backslash between the full colon and the the start of the path has been stripped. I double checked my data input method and and I am using the <path_cacti> variable. I tried changing this with a hardcoded D:\cacti and D:/cacti but the slash was removed regardless of wether it was a forward or a backslash.
Dominic Ryan
www.iis-aid.com
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This is why I converted backslashes to forward slashes.

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?
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

But it strips the slash regardless of wether I set it as a forward or back slash, and it is only the slash at the very start of the path. The rest look to be correct.
Dominic Ryan
www.iis-aid.com
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests