Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Windows Memory
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
Lit



Joined: 26 Aug 2004
Posts: 14
Location: Ireland

PostPosted: Fri Sep 03, 2004 7:56 pm    Post subject: Windows Memory Reply with quote

Windows Memory Via Wmi


Screen001.jpg
 Description:
 Filesize:  77.92 KB
 Viewed:  25906 Time(s)

Screen001.jpg



cacti_data_template_lit_w32_os.xml
 Description:

Download
 Filename:  cacti_data_template_lit_w32_os.xml
 Filesize:  9.59 KB
 Downloaded:  4415 Time(s)


cacti_graph_template_lit_w32_os.xml
 Description:

Download
 Filename:  cacti_graph_template_lit_w32_os.xml
 Filesize:  30.45 KB
 Downloaded:  3235 Time(s)

Back to top
Lit



Joined: 26 Aug 2004
Posts: 14
Location: Ireland

PostPosted: Fri Sep 03, 2004 8:00 pm    Post subject: Perl Script Reply with quote

Script


ScreenHunter_004.jpg
 Description:
 Filesize:  103.99 KB
 Viewed:  25906 Time(s)

ScreenHunter_004.jpg



Lit_W32_OS.pl.txt
 Description:

Download
 Filename:  Lit_W32_OS.pl.txt
 Filesize:  5.6 KB
 Downloaded:  2687 Time(s)

Back to top
helpme
Guest





PostPosted: Fri Sep 17, 2004 2:37 pm    Post subject: um linux? Reply with quote

how do i make this script work on linux?
Back to top
guerra6880



Joined: 19 Apr 2004
Posts: 33

PostPosted: Wed Sep 22, 2004 4:12 am    Post subject: Re: Windows Memory Reply with quote

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
Back to top
DevilSun
Cacti User


Joined: 16 Jul 2004
Posts: 166
Location: Oregon

PostPosted: Wed Sep 22, 2004 10:43 am    Post subject: Reply with quote

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.
Back to top
guerra6880



Joined: 19 Apr 2004
Posts: 33

PostPosted: Wed Sep 22, 2004 11:52 pm    Post subject: Reply with quote

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?
Back to top
scavenger67



Joined: 18 Mar 2005
Posts: 49
Location: France

PostPosted: Wed Jul 06, 2005 5:24 am    Post subject: return no value Reply with quote

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 ?
Back to top
Thomas
Cacti User


Joined: 09 Dec 2004
Posts: 112
Location: Austria

PostPosted: Wed Jul 06, 2005 10:00 am    Post subject: Re: um linux? Reply with quote

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
Back to top
scavenger67



Joined: 18 Mar 2005
Posts: 49
Location: France

PostPosted: Fri Jul 08, 2005 5:36 am    Post subject: strange.. Reply with quote

Could someone help me..
executing the scriopt manually works perfectly, i have all the data i need but cacti graph nothing...

help
please



memory.jpg
 Description:
 Filesize:  42.01 KB
 Viewed:  24708 Time(s)

memory.jpg


Back to top
Thomas
Cacti User


Joined: 09 Dec 2004
Posts: 112
Location: Austria

PostPosted: Fri Jul 08, 2005 6:41 am    Post subject: Reply with quote

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.
Back to top
scavenger67



Joined: 18 Mar 2005
Posts: 49
Location: France

PostPosted: Wed Jul 13, 2005 2:01 am    Post subject: wmi problem Reply with quote

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
Back to top
scavenger67



Joined: 18 Mar 2005
Posts: 49
Location: France

PostPosted: Fri Jul 15, 2005 1:23 pm    Post subject: is it working.? Reply with quote

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.
Back to top
ioiioi
Cacti User


Joined: 28 Mar 2005
Posts: 51

PostPosted: Tue Sep 13, 2005 11:22 am    Post subject: Reply with quote

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.


cacti_data_template_lit_w32_os.zip
 Description:

Download
 Filename:  cacti_data_template_lit_w32_os.zip
 Filesize:  7.29 KB
 Downloaded:  1329 Time(s)

Back to top
jengstro
Cacti User


Joined: 15 Nov 2005
Posts: 156

PostPosted: Wed Nov 23, 2005 1:14 pm    Post subject: Reply with quote

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?
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6771
Location: WA, USA

PostPosted: Wed Nov 23, 2005 1:36 pm    Post subject: Reply with quote

You need to adjust WMI security. Take a read here and here.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group