Cactid: SNMP works / Script input does NOT work
Moderators: Developers, Moderators
- ichoudhury
- Posts: 46
- Joined: Tue May 31, 2005 8:18 am
Tivoli depends on cygwin to run various unix type commands. In fact, I even manage almost everything over a ssh connection and treat everything as if I am in a unix/linux box. I have installed cygwin-ssh for that administration function and every now and then my cygwin installation goes out of whack (due to duplicate cygwin1.dll).
There are those who think fast, and there are others who sleep on a decision. I belong to the third group.
After a long time, I have an update to this post.
I had no solution before to get script data sources working since I had to move my cacti installation from a Windows 2000 server to a Windows 2003 server.
Because of the Tivoli scripts on this new server - which are not managed by myself - I couldn't install cygwin on the server like recommended earlier in this post.
After I compiled cactid 0.8.6g and rrdtool 1.2.12 with the same cygwin version and placing them with the cygwin1.dll in seperate directories which are not in the path environment, everithing works (inluding the tivoli scripts).
Since I upgraded my cactid to version 0.8.6g and scripts are no longer executed through the poller with a shell, it is possible to get valid data from my scipts.
I had no solution before to get script data sources working since I had to move my cacti installation from a Windows 2000 server to a Windows 2003 server.
Because of the Tivoli scripts on this new server - which are not managed by myself - I couldn't install cygwin on the server like recommended earlier in this post.
After I compiled cactid 0.8.6g and rrdtool 1.2.12 with the same cygwin version and placing them with the cygwin1.dll in seperate directories which are not in the path environment, everithing works (inluding the tivoli scripts).
Since I upgraded my cactid to version 0.8.6g and scripts are no longer executed through the poller with a shell, it is possible to get valid data from my scipts.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Yes, in order to do so, you must provide the full path to the binary required in order to execute them. So, instead of just:
"perl my_script.pl"
You would need:
"c:/perl/perl.exe my_script.pl"
After you update your Data Input Method, you must clear your poller cache.
TheWitness
"perl my_script.pl"
You would need:
"c:/perl/perl.exe my_script.pl"
After you update your Data Input Method, you must clear your poller cache.
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?
Who is online
Users browsing this forum: No registered users and 0 guests