Hi guys,
I asked a question to jbiberian (http://forums.cacti.net/viewtopic.php?f=12&t=20675) about cacti windows templates (topic templates for Win32/Citrix/MSSQL) and WMI script.
I want to use citrix licences - whole farm to poll free/use/available Citrix licenses.
I have installed CTX SDK on my Cacti Server. It's ok.
I tested the vbs file on the Citrix License Server and results are good ( ).
Citrix Licensing WMI service is start ( ).
I only use get_ctxlicense.vbs, i've imported XML and have copied the XML files in path_cacti>/resource/script_queries/ dir.
I can add graph and create one with the template (All Citrix Licenses) but the graph is always empty...
Do I copy the VBS file anywhere? If, where ? ^^
Is the VBS file it use to poll (or just to "test" the connection ?) or do it called by the poller ?
I hope to be clear enough...!
I've noticed that the poller prompt display ERROR : Not enough arguments ( ) since I use the template, so i'm sure there is an error... ^^
Could anyone help me !
If this could help you... : Turn On Debug Mode
RRDTool Command:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="All Citrix Licenses" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit="0" \
--vertical-label="" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="C\:/Inetpub/wwwroot/cacti/rra/6/211.rrd":"lic_used":AVERAGE \
DEF:b="C\:/Inetpub/wwwroot/cacti/rra/6/211.rrd":"lic_free":AVERAGE \
DEF:c="C\:/Inetpub/wwwroot/cacti/rra/6/211.rrd":"lic_total":AVERAGE \
AREA:a#002A97FF:"Used Licenses\n" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf\n" \
AREA:b#00CF00FF:"Free Licenses\n":STACK \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf\n" \
LINE2:c#000000FF:"Total\:" \
GPRINT:c:LAST:" %8.0lf"
Script WMI and templates Win32 for Citrix Licenses
Moderators: Developers, Moderators
Script WMI and templates Win32 for Citrix Licenses
Best Regards, Oleev
Operating System: win32 Windows XP Professional SP3 i586
Webserver: IIS
Cacti: 0.8.8a
Spine: 0.8.8a
MySQL: 5.5
PHP: 5.3.10
RRDTool (Cygwin or Win32 build): 1.4x
Net-SNMP: 5.6.1.1
Cygwin (cygwin1.dll version):
Plugin Architecture: 3.1 (include in last release)
Operating System: win32 Windows XP Professional SP3 i586
Webserver: IIS
Cacti: 0.8.8a
Spine: 0.8.8a
MySQL: 5.5
PHP: 5.3.10
RRDTool (Cygwin or Win32 build): 1.4x
Net-SNMP: 5.6.1.1
Cygwin (cygwin1.dll version):
Plugin Architecture: 3.1 (include in last release)
Re: Script WMI and templates Win32 for Citrix Licenses
Please read through the guides in http://docs.cacti.net on how to create scripts compatible with Cacti. It also includes steps on how to properly debug them (hint: cacti.log with high logging).
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Script WMI and templates Win32 for Citrix Licenses
Hi BSOD,
Thanks for your answer.
That's what I did...
If I understand, a Cacti WMI script must be "call" by a cron like the poller spine ?
My problem is the one : how the wmi script must be use for ?
I continue to read HowTos, Topics on forum...but I can't find a precisly answer.
Have a nice day,
Thanks for your answer.
That's what I did...
If I understand, a Cacti WMI script must be "call" by a cron like the poller spine ?
My problem is the one : how the wmi script must be use for ?
I continue to read HowTos, Topics on forum...but I can't find a precisly answer.
Have a nice day,
Best Regards, Oleev
Operating System: win32 Windows XP Professional SP3 i586
Webserver: IIS
Cacti: 0.8.8a
Spine: 0.8.8a
MySQL: 5.5
PHP: 5.3.10
RRDTool (Cygwin or Win32 build): 1.4x
Net-SNMP: 5.6.1.1
Cygwin (cygwin1.dll version):
Plugin Architecture: 3.1 (include in last release)
Operating System: win32 Windows XP Professional SP3 i586
Webserver: IIS
Cacti: 0.8.8a
Spine: 0.8.8a
MySQL: 5.5
PHP: 5.3.10
RRDTool (Cygwin or Win32 build): 1.4x
Net-SNMP: 5.6.1.1
Cygwin (cygwin1.dll version):
Plugin Architecture: 3.1 (include in last release)
Re: Script WMI and templates Win32 for Citrix Licenses
Yes, the cacti poller (cmd.php or spine.exe) will invoke your WMI script. It must be properly coded to run at the commandline and spit out the results (as per the documentation previously linked). The Cacti scheduled task user account is what will be used when authenticating to the remote Windows systems.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 4 guests