My version of Win32 Disk Stats

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

africanw
Cacti User
Posts: 130
Joined: Thu Mar 31, 2005 4:24 pm
Location: Sydney, Asutralia
Contact:

Post by africanw »

Go to Graph management and find the one for the disk stats for example -

warlord.livinginoz.com - Disk Stats C:

and delete it, when it ask's if you wish to delete all data sources say yes.. Then create a new one.
Fleabag
Posts: 8
Joined: Thu Dec 21, 2006 4:14 pm

Post by Fleabag »

ERROR: Not enough arguments

This error is related to the user/passwd.


Thanks
africanw
Cacti User
Posts: 130
Joined: Thu Mar 31, 2005 4:24 pm
Location: Sydney, Asutralia
Contact:

Post by africanw »

Ah polling a machine over the network....
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Hey there, Great script, i am having a problem though. When i try and run the script manually, it gives the following error:

Code: Select all

e:\cacti\scripts\w32_WMI_logical_disks.vbs(18, 2) SWbemLocator: Access is denied
Any thoughts on this? Here is the areas that i have edited on the scripts:

Code: Select all

 servername=WScript.Arguments.Item(0)
 Networkusername="cacti"
 Networkpassword=""
 name=WScript.Arguments.Item(1)

If servername="." Or servername="localhost" Then
	
	Set objWMIService = GetObject("winmgmts:" _
	    & "{impersonationLevel=impersonate}!\\" _
	    & servername & "\root\cimv2")
	
	Set colProcesses = objWMIService.ExecQuery( _
	    "select * from Win32_PerfFormattedData_PerfDisk_LogicalDisk Where name='" & name & "'")

Else	
 
	Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator") 
	Set objSWbemServices = objSWbemLocator.ConnectServer(servername, _ 
	    "root\CIMV2", _ 
	    Networkusername="DOMAIN\************", _
	    Networkpassword="*******", _
	    "MS_409", _ 
	    "NTLMDomain:" + servername) 
I am running this on a Windows 2003 box, against a windows 2003 R2 box. Would that have anything to do with it?

Thanks for the help.

app
africanw
Cacti User
Posts: 130
Joined: Thu Mar 31, 2005 4:24 pm
Location: Sydney, Asutralia
Contact:

Post by africanw »

Hi,

If the username and password are correct then try the fix on the link below.

http://forums.livinginoz.com/showthread.php?t=201

Grant
don-harry
Posts: 4
Joined: Wed Jul 14, 2010 4:14 pm

No such file or directory

Post by don-harry »

sh: C:/WINDOWS/system32/cscript.exe: No such file or directory

here is the error produced at the pool with a machine running Windows 7 64 bit
dsharma
Posts: 15
Joined: Thu Aug 12, 2010 1:32 am

Please explain the graph

Post by dsharma »

Thanks. The graphs are working, but iam not getting how the values are being drawn in the graph i mean how these graphs are working. What is 'Unit' in Y-axis. I understood the read time,write time,read queue,write queue values but how these values are represented in graph. Please help.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest