My version of Win32 Disk Stats

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

Moderators: Moderators, Developers

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

#16 Post by africanw » Sat Dec 23, 2006 2:31 am

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

#17 Post by Fleabag » Tue Dec 26, 2006 8:31 pm

ERROR: Not enough arguments

This error is related to the user/passwd.


Thanks

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

#18 Post by africanw » Tue Dec 26, 2006 8:33 pm

Ah polling a machine over the network....

apperrault
Cacti User
Posts: 372
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

#19 Post by apperrault » Fri Feb 16, 2007 6:26 pm

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: 124
Joined: Thu Mar 31, 2005 4:24 pm
Location: Sydney, Asutralia
Contact:

#20 Post by africanw » Fri Feb 16, 2007 11:16 pm

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

#21 Post by don-harry » Thu Jul 15, 2010 4:26 pm

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

#22 Post by dsharma » Wed Aug 18, 2010 4:27 am

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