W32 CPU (any number of processors) Perl Script via WMI
Moderators: Developers, Moderators
win32 graph template cause a php error
Hi I encountered a script error . can you advise me. I'm using 0.86h
- Attachments
-
- Doc1.doc
- (123 KiB) Downloaded 709 times
The bad thing in that script (if used against localhost) is that it queries ProcessorLoad which is a load for the previous second. For me it doesn't give meaningful results as the load of CPU while poller is running usually alomost 100 per cent.
Is there any way to monitor load average (for last 5 min), as it's for routers via snmp?
Is there any way to monitor load average (for last 5 min), as it's for routers via snmp?
how can config wmi?
my server: cacti for windows2003
my client:windows2003
my server: cacti for windows2003
my client:windows2003
Cacti Version - 0.8.7 & spine
Plugin Architecture - 1.3
Server Info - Windows 2003 EP
Web Server -IIS6.0
PHP - 5.2.3
MySQL - 4.1.10
RRDTool - 1.2.15
SNMP - 5.4.1
--------------------------
plugins:
reportit 0.5.1|monitor 0.8.1|thold 0.3.8
Plugin Architecture - 1.3
Server Info - Windows 2003 EP
Web Server -IIS6.0
PHP - 5.2.3
MySQL - 4.1.10
RRDTool - 1.2.15
SNMP - 5.4.1
--------------------------
plugins:
reportit 0.5.1|monitor 0.8.1|thold 0.3.8
Read the FAQ in my installation guide (in signature).
| 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 |
-
- Posts: 11
- Joined: Mon Dec 24, 2007 3:39 am
- Location: Taiwan,Taipei
i got no value and the log shows:
12/25/2007 09:25:36 AM - CMDPHP: Poller[0] Host[20] DS[162] CMD: perl K:/web/default/www/cacti/scripts/w32_query_cpu.pl 192.168.0.70 get LoadPercentage 4, output: U
i run perl <path_cacti>/scripts/w32_query_cpu.pl <hostname> get LoadPercentage 2
and it shows "unable to talk to WMI for .."
so how to talk to WMI...
system:windows 2003
cacti ver:0.8.7a
get cpu information from windows 2000
thanx
12/25/2007 09:25:36 AM - CMDPHP: Poller[0] Host[20] DS[162] CMD: perl K:/web/default/www/cacti/scripts/w32_query_cpu.pl 192.168.0.70 get LoadPercentage 4, output: U
i run perl <path_cacti>/scripts/w32_query_cpu.pl <hostname> get LoadPercentage 2
and it shows "unable to talk to WMI for .."
so how to talk to WMI...
system:windows 2003
cacti ver:0.8.7a
get cpu information from windows 2000
thanx
- Attachments
-
- no value
- graph_image.jpg (33 KiB) Viewed 8445 times
Total Cpu load
Hello,
i am trying to create total of total 4 cpu sources load.
tried to create CDEF like
but i cant get any results
since i am newbie in graph can someone please advice
thanks
i am trying to create total of total 4 cpu sources load.
tried to create CDEF like
Code: Select all
a,+,b,+,c,+,d,*,100,/,4
since i am newbie in graph can someone please advice
thanks
Hello,
Actually, when I try to collect the CPU Load from a Windows 2000 Terminal Server using w32_query_cpu.pl I get empty values.
The command
w32_query_cpu.pl hostname get LoadPercentage 4
gives only
CPU0: CPU1: CPU2: CPU3:
The same command on the localhost gives:
CPU0:2 CPU1:0 CPU2:0 CPU3:24
Are there any special settings which should be set on the Windows 2000 Terminal server?
Thanks in advance for any advice.
Cheers,
B.
Actually, when I try to collect the CPU Load from a Windows 2000 Terminal Server using w32_query_cpu.pl I get empty values.
The command
w32_query_cpu.pl hostname get LoadPercentage 4
gives only
CPU0: CPU1: CPU2: CPU3:
The same command on the localhost gives:
CPU0:2 CPU1:0 CPU2:0 CPU3:24
Are there any special settings which should be set on the Windows 2000 Terminal server?
Thanks in advance for any advice.
Cheers,
B.
-
- Cacti User
- Posts: 50
- Joined: Sun Mar 09, 2008 3:57 pm
Who is online
Users browsing this forum: No registered users and 3 guests