Cactid 0.86c & d changing backslashes to forward slashes
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
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?
-
- Cacti User
- Posts: 99
- Joined: Sat Feb 28, 2004 10:16 pm
- Location: Melbourne, Australia
- Contact:
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Let me know if it works ok for you.
TheWitness
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?
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?
-
- Cacti User
- Posts: 99
- Joined: Sat Feb 28, 2004 10:16 pm
- Location: Melbourne, Australia
- Contact:
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;
and then when I click OK I get this in the command window;
I'm trying to download the latest version of Cygwin now.
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;
and then when I click OK I get this in the command window;
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
www.iis-aid.com
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Make sure you empty the c:\cactid\ directory of everything except cactid.*
TheWitness
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?
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?
-
- Cacti User
- Posts: 99
- Joined: Sat Feb 28, 2004 10:16 pm
- Location: Melbourne, Australia
- Contact:
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Yes, I strongly recommend reinstalling cygwin.
TheWitness
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?
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?
-
- Cacti User
- Posts: 99
- Joined: Sat Feb 28, 2004 10:16 pm
- Location: Melbourne, Australia
- Contact:
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
-
- Cacti User
- Posts: 99
- Joined: Sat Feb 28, 2004 10:16 pm
- Location: Melbourne, Australia
- Contact:
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;
THis is from the cacti log when running in cmd.php mode;
And when running your modified Cactid I get this;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
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.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
Dominic Ryan
www.iis-aid.com
www.iis-aid.com
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Run once in debug mode. Post the results.
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You may have to change all your forward slashes in the script name to back slashes as well. May have more work.
TheWitness
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?
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?
-
- Cacti User
- Posts: 99
- Joined: Sat Feb 28, 2004 10:16 pm
- Location: Melbourne, Australia
- Contact:
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;
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.Can't open perl script "D:cacti/scripts/w32_perfmon.pl": No such file or directory
Dominic Ryan
www.iis-aid.com
www.iis-aid.com
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
This is why I converted backslashes to forward slashes.
TheWitness
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?
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?
-
- Cacti User
- Posts: 99
- Joined: Sat Feb 28, 2004 10:16 pm
- Location: Melbourne, Australia
- Contact:
Who is online
Users browsing this forum: No registered users and 2 guests