VBS Help
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You must clear the poller cache.
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?
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Pete,
And it still does not work?
TheWitness
And it still does not 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?
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?
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
Umm, you realize that |host_hostname| is not a valid computer name right? Thats likely why the script is currently failing. In your data input method, edit the strComputer field. In Special Type Code put in: hostname. That should fix the problem.
No, I didn't mean you to post the entire rrd dump... just the relivant section around todays date would be fine (no need to right now though).
No, I didn't mean you to post the entire rrd dump... just the relivant section around todays date would be fine (no need to right now though).
| 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 |
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
No need for the xml dump until cacti actually collects data.
So even after putting in the proper name the Special Type Code, looking in the cacti log it's using |host_hostname|? You need to track down where you've got that.
In your date template, the strComputer field should NOT have a checkbox by it.
So even after putting in the proper name the Special Type Code, looking in the cacti log it's using |host_hostname|? You need to track down where you've got that.
In your date template, the strComputer field should NOT have a checkbox by it.
| 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 |
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
Have tried both hostname and 'hostname' in the Special field and am now getting the following in the log:
any ideas?
Code: Select all
11/24/2005 09:15:03 AM - CACTID: Poller[0] Host[14] DEBUG: The POPEN returned the following File Descriptor 9
11/24/2005 09:15:03 AM - CACTID: Poller[0] Host[14] ERROR: Empty result [172.29.2.23]: 'C:/Windows/System32/cscript.exe //nologo D:/Cacti/scripts/w32_CPU.vbs 172.29.2.23'
11/24/2005 09:15:03 AM - CACTID: Poller[0] Host[14] DS[43] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/24/2005 09:15:03 AM - CACTID: Poller[0] Host[14] DS[43] SCRIPT: C:/Windows/System32/cscript.exe //nologo D:/Cacti/scripts/w32_CPU.vbs 172.29.2.23, output: U
11/24/2005 09:15:03 AM - CACTID: Poller[0] Host[14] DEBUG: The POPEN returned the following File Descriptor 9
11/24/2005 09:15:03 AM - CACTID: Poller[0] Host[14] ERROR: Empty result [172.29.2.23]: 'C:/Windows/System32/cscript.exe //nologo D:/Cacti/scripts/w32_PhysicalDisk.vbs 172.29.2.23'
11/24/2005 09:15:03 AM - CACTID: Poller[0] Host[14] DS[42] WARNING: Result from SCRIPT not valid. Partial Result: ...
11/24/2005 09:15:03 AM - CACTID: Poller[0] Host[14] DS[42] SCRIPT: C:/Windows/System32/cscript.exe //nologo D:/Cacti/scripts/w32_PhysicalDisk.vbs 172.29.2.23, output: U
Work with cmd.php ?
Running cscript //nologo D:/Cacti/scripts/w32_CPU.vbs 172.29.2.23 works right?
Running cscript //nologo D:/Cacti/scripts/w32_CPU.vbs 172.29.2.23 works right?
| 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 |
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
Thanks Larry & BSOD2600 it appears as though I am now able to get the data through with using cmd.php rather than catid - so cheers for all the help.
I am moving this up a notch now . I want to create a graph that shows IIS information and for this the graph needs to have 3 outputs and 1 input. I have created the following script which outputs the results as the cacti manual says (<fieldname1>:<value1> <fieldname2>:<value2>...)
When running this in the command prompt I get the following:
I have created the Data Input Method with 1 input field and 3 output fields. Then created the Data Template with 3 Data Sources each pointing to the different Data Input Methods output fields. Finally created a simple Graph Template.
Only problem is that the graph isn't bringing back anything except NaN. The cacti log looks ok though:
Thanks.
I am moving this up a notch now . I want to create a graph that shows IIS information and for this the graph needs to have 3 outputs and 1 input. I have created the following script which outputs the results as the cacti manual says (<fieldname1>:<value1> <fieldname2>:<value2>...)
Code: Select all
strComputer=Wscript.Arguments.Item(0)
Set objWMIService=GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set objIIS=objWMIService.instancesof("Win32_PerfRawData_W3SVC_WebService")
For Each objItem in objIIS
CurrentConnections=objItem.CurrentConnections
CurrentAnonymousUsers=objItem.CurrentAnonymousUsers
CurrentNonAnonymousUsers=objItem.CurrentNonAnonymousUsers
Next
Wscript.Echo "CurrentConnections:" & CurrentConnections &" CurrentAnonymousUsers:" & CurrentAnonymousUsers & " CurrentNonAnonymousUsers:" & CurrentNonAnonymousUsers
Code: Select all
CurrentConnections:13 CurrentAnonymousUsers:0 CurrentNonAnonymousUsers:0
Only problem is that the graph isn't bringing back anything except NaN. The cacti log looks ok though:
Any help would be useful.11/24/2005 01:05:05 PM - CMDPHP: Poller[0] Host[16] DS[48] CMD: c:/windows/system32/cscript.exe //nologo D:/Cacti/scripts/w32_IIS.vbs, output: U
Thanks.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Did you try this version of Cactid?
TheWitness
http://forums.cacti.net/viewtopic.php?t ... c&start=15
TheWitness
http://forums.cacti.net/viewtopic.php?t ... c&start=15
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?
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
Again, to make things a bit easier to understand I have put the screenshots and log on my webserver:
Screenshots of the creation of this graph
Last 20mins from my Cacti Logfile
Hope someone can help me with this.
Thanks.
Screenshots of the creation of this graph
Last 20mins from my Cacti Logfile
Hope someone can help me with this.
Thanks.
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Can you compile Cactid?
Larry
Larry
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