|
|
| Author |
Message |
Lit
Joined: 26 Aug 2004 Posts: 14 Location: Ireland
|
Posted: Fri Sep 03, 2004 7:56 pm Post subject: Windows Memory |
|
|
Windows Memory Via Wmi
| Description: |
|
| Filesize: |
77.92 KB |
| Viewed: |
24702 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
cacti_data_template_lit_w32_os.xml |
| Filesize: |
9.59 KB |
| Downloaded: |
4214 Time(s) |
| Description: |
|
 Download |
| Filename: |
cacti_graph_template_lit_w32_os.xml |
| Filesize: |
30.45 KB |
| Downloaded: |
3094 Time(s) |
|
|
| Back to top |
|
 |
Lit
Joined: 26 Aug 2004 Posts: 14 Location: Ireland
|
Posted: Fri Sep 03, 2004 8:00 pm Post subject: Perl Script |
|
|
Script
| Description: |
|
| Filesize: |
103.99 KB |
| Viewed: |
24702 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
Lit_W32_OS.pl.txt |
| Filesize: |
5.6 KB |
| Downloaded: |
2582 Time(s) |
|
|
| Back to top |
|
 |
helpme Guest
|
Posted: Fri Sep 17, 2004 2:37 pm Post subject: um linux? |
|
|
| how do i make this script work on linux?
|
|
| Back to top |
|
 |
guerra6880
Joined: 19 Apr 2004 Posts: 33
|
Posted: Wed Sep 22, 2004 4:12 am Post subject: Re: Windows Memory |
|
|
| 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
|
Posted: Wed Sep 22, 2004 10:43 am Post subject: |
|
|
| 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
|
Posted: Wed Sep 22, 2004 11:52 pm Post subject: |
|
|
| 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
|
Posted: Wed Jul 06, 2005 5:24 am Post subject: return no value |
|
|
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
|
Posted: Wed Jul 06, 2005 10:00 am Post subject: Re: um linux? |
|
|
| 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
|
Posted: Fri Jul 08, 2005 5:36 am Post subject: strange.. |
|
|
Could someone help me..
executing the scriopt manually works perfectly, i have all the data i need but cacti graph nothing...
help
please
| Description: |
|
| Filesize: |
42.01 KB |
| Viewed: |
23504 Time(s) |

|
|
|
| Back to top |
|
 |
Thomas Cacti User
Joined: 09 Dec 2004 Posts: 112 Location: Austria
|
Posted: Fri Jul 08, 2005 6:41 am Post subject: |
|
|
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
|
Posted: Wed Jul 13, 2005 2:01 am Post subject: wmi problem |
|
|
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
|
Posted: Fri Jul 15, 2005 1:23 pm Post subject: is it working.? |
|
|
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
|
|
| Back to top |
|
 |
jengstro Cacti User
Joined: 15 Nov 2005 Posts: 156
|
Posted: Wed Nov 23, 2005 1:14 pm Post subject: |
|
|
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: 6662 Location: WA, USA
|
Posted: Wed Nov 23, 2005 1:36 pm Post subject: |
|
|
| You need to adjust WMI security. Take a read here and here.
|
|
| Back to top |
|
 |
|