Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Jun 18, 2019 5:52 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Windows Memory
PostPosted: Fri Sep 03, 2004 7:56 pm 
Offline

Joined: Thu Aug 26, 2004 4:19 pm
Posts: 14
Location: Ireland
Windows Memory Via Wmi


Attachments:
cacti_data_template_lit_w32_os.xml [9.59 KiB]
Downloaded 12160 times
cacti_graph_template_lit_w32_os.xml [30.45 KiB]
Downloaded 9824 times
Screen001.jpg
Screen001.jpg [ 77.92 KiB | Viewed 73186 times ]
Top
 Profile  
 
 Post subject: Perl Script
PostPosted: Fri Sep 03, 2004 8:00 pm 
Offline

Joined: Thu Aug 26, 2004 4:19 pm
Posts: 14
Location: Ireland
Script


Attachments:
Lit_W32_OS.pl.txt [5.6 KiB]
Downloaded 7053 times
ScreenHunter_004.jpg
ScreenHunter_004.jpg [ 103.99 KiB | Viewed 73186 times ]
Top
 Profile  
 
 Post subject: um linux?
PostPosted: Fri Sep 17, 2004 2:37 pm 
how do i make this script work on linux?


Top
  
 
 Post subject: Re: Windows Memory
PostPosted: Wed Sep 22, 2004 4:12 am 
Offline

Joined: Mon Apr 19, 2004 7:47 am
Posts: 33
Lit wrote:
Windows Memory Via Wmi


I have you experienced any problems with this script running against a W2K3 server? I have no problems against a W2k box but I am getting a partial results error from a W2k3 server causing now data to be collected. Just wondering if you were seeing the same.

Thanks,
Dave


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 22, 2004 10:43 am 
Offline
Cacti User

Joined: Fri Jul 16, 2004 1:59 pm
Posts: 166
Location: Oregon
Yah, I'm querying the same stuff on my Win2003 boxen and it works fine although I might have wrote my own script but it's the same WMI class and fields.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 22, 2004 11:52 pm 
Offline

Joined: Mon Apr 19, 2004 7:47 am
Posts: 33
DevilSun wrote:
Yah, I'm querying the same stuff on my Win2003 boxen and it works fine although I might have wrote my own script but it's the same WMI class and fields.


Devil,

Would you mind either posting or e-mailing me your scripts/ templates if possible?


Top
 Profile  
 
 Post subject: return no value
PostPosted: Wed Jul 06, 2005 5:24 am 
Offline

Joined: Fri Mar 18, 2005 7:33 am
Posts: 49
Location: France
Hi all,

the scripts works fine outside cacti. he returns value.
but in cacti, i graph nothing.
the configuration seems to be correct.
any idea ?


Top
 Profile  
 
 Post subject: Re: um linux?
PostPosted: Wed Jul 06, 2005 10:00 am 
Offline
Cacti User

Joined: Thu Dec 09, 2004 1:51 pm
Posts: 112
Location: Austria
helpme wrote:
how do i make this script work on linux?

You can't run WMI scripts on Linux. You have to use some "tools" as described in http://forums.cacti.net/viewtopic.php?t=5842.

HTH

_________________
Thomas Rupp


Top
 Profile  
 
 Post subject: strange..
PostPosted: Fri Jul 08, 2005 5:36 am 
Offline

Joined: Fri Mar 18, 2005 7:33 am
Posts: 49
Location: France
Could someone help me..
executing the scriopt manually works perfectly, i have all the data i need but cacti graph nothing...

help
please


Attachments:
memory.jpg
memory.jpg [ 42.01 KiB | Viewed 71991 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 08, 2005 6:41 am 
Offline
Cacti User

Joined: Thu Dec 09, 2004 1:51 pm
Posts: 112
Location: Austria
In the CACTI Manual you can find a chapter "Simplest Method of Going from Script to Graph (Walkthrough)".
This should give you a good starting point.

_________________
Thomas Rupp


Top
 Profile  
 
 Post subject: wmi problem
PostPosted: Wed Jul 13, 2005 2:01 am 
Offline

Joined: Fri Mar 18, 2005 7:33 am
Posts: 49
Location: France
Have check on cacti log :

WARNING: Result from CMD not valid. Partial Result: Unable to talk to WM
07/13/2005 08:35:22 AM - CMDPHP: Poller[0] Host[9] CMD: c:/perl/bin/perl.exe c:/apache2/htdocs/cacti/scripts/w32_query_OperatingSystem.pl yxxxx get TotalVisibleMemorySize,FreePhysicalMemory,TotalVirtualMemorySize,FreeVirtualMemory, output: U

seems that there is a problem with WMI.. any idea ?
thanks


Top
 Profile  
 
 Post subject: is it working.?
PostPosted: Fri Jul 15, 2005 1:23 pm 
Offline

Joined: Fri Mar 18, 2005 7:33 am
Posts: 49
Location: France
is the scripts working on 0.8.6.c.
don't find any anwser about this problem.
command line works perfectly but not throught cacti.

as i understand output:U mean that the script didin't return any value but WHY ?
must i install something on the pc running cacti for a WMI query ?
"Unable to talk to WM" ??!? what is that ?

any help will be welcome. :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 13, 2005 11:22 am 
Offline
Cacti User

Joined: Mon Mar 28, 2005 8:57 am
Posts: 52
The version in which Lit developed this script is different from the 0.8.6f or even ealier version. The directory has been changed from /resource/script-quriers/lit_w32_os.pl to /scripts/lit_w32_os.pl. So I imported the template and modified the Data input method and export it to this new one, you can have a try. :D


Attachments:
cacti_data_template_lit_w32_os.zip [7.29 KiB]
Downloaded 3541 times
Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 23, 2005 1:14 pm 
Offline
Cacti User

Joined: Tue Nov 15, 2005 12:14 pm
Posts: 156
I can get data back from the localhost but not remote hosts...

Here is what the log says:

Code:
WARNING: Result from CMD not valid. Partial Result: Unable to talk to WM


Any ideas?

_________________
Cacti - 0.8.6h + patches
PHP - 5.1.2
ZendOptimizer - 2.6.2
FastCGI - 0.6
MySQL - 4.1.15
Cactid - 0.8.6g
rrdtool - 1.2.x
IIS6


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 23, 2005 1:36 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 12160
Location: USA
You need to adjust WMI security. Take a read here and here.

_________________

| 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 |


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group