Monitor Windows via WMI from Cacti on Linux

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

Moderators: Developers, Moderators

Post Reply
mamema
Posts: 5
Joined: Sun Oct 25, 2009 5:12 pm

Post by mamema »

Yes, you're right. Thank you for pointing me in the right direction. Problem solved
bunglega
Posts: 9
Joined: Mon Nov 12, 2007 9:06 am

Interesting Issue

Post by bunglega »

Hi ... just sharing a little problem / fix that I recently encountered using version .6 of the scripts.

I've had these in place for a couple of months and its been working great. Recently, we've been asked to enable LDAP authentication on all of our Linux boxes so we can use our Windows Active Directory services for authentication.

After enabling LDAP on the Cacti Linux host, it broke the WMI scripts. I was recieving the following error message from the command line when manually executing the script:

Code: Select all

[root@alfcactii02 scripts]# /usr/bin/php -q /var/www/cacti/scripts/wmi.php -h 'xxx.yyy.zzz' -u 'cactiwmi.pw' -w 'Win32_PerfRawData_PerfDisk_LogicalDisk' -n '' -k 'Name' -v 'C:' -c 'DiskWritesPersec,DiskWriteBytesPersec,DiskReadsPersec,DiskReadBytesPersec,CurrentDiskQueueLength'
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied


Return code non-zero, debug mode enabled!



/usr/local/bin/wmic --namespace='root\CIMV2' --authentication-file=cactiwmi.pw //xxx.yyy.zzz"SELECT DiskWritesPersec,DiskWriteBytesPersec,DiskReadsPersec,DiskReadBytesPersec,CurrentDiskQueueLength FROM Win32_PerfRawData_PerfDisk_LogicalDisk WHERE Name='C:'"
Exec Status: 1
I was still able to use WMI Explorer and the same credentials in the cactiwmi.pw file to query this data directly so I ruled out an AD / Windows permission issue.

The final solution to this error was to modify my cactiwmi.pw file and append my domain name to the username and blank the domain= line in the file.

username=serviceaccount@domain.com
password=password
domain=

Once I did that, the query would succesfully complete from the command line.

Hope it helps someone else cause I didn't find this exact issue in this massive thread :D
skycode
Posts: 7
Joined: Tue Sep 08, 2009 10:15 am

Post by skycode »

skycode, if you look at my post just before yours, is it possible you also have double data sources ? As your graph debug looks fine ?
Mmmmh apparently I have no duplicate data source ... everything looks fine there ...

I must admit I'm having trouble reading the dump from the rrd files and understanding when it wa last updated and with which value ...

Any other idea ?

Thanks
saback
Posts: 3
Joined: Fri May 01, 2009 4:31 pm

Post by saback »

Hi All,

I am using Cacti 0.8.7.e + Spine 0.8.7.c + WMIC 4.0.0alpha3-GIT-UNKNOWN

WMIC is working for some WMI Classes but not for all. Below an example with problem:

Code: Select all

/usr/bin/wmic --namespace='root\CIMV2' --authentication-file=/etc/cacti/wmic.conf //x.x.x.x "SELECT * FROM Win32_PerfRawData_PerfDisk_PhysicalDisk"
Exec Status: 134

INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)0:Please_read_the_file_BUGS.txt_in_the_distribution
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)1:=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)2:PANIC_internal_error
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)3:BACKTRACE_15_stack_frames
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)4:_#0_/usr/bin/wmic(call_backtrace+0x2d)_[0x848ac4d]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)5:_#1_/usr/bin/wmic(smb_panic+0x80)_[0x848ada0]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)6:_#2_/usr/bin/wmic_[0x848b0c6]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)7:_#3_[0xaf4400]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)8:_#4_/lib/tls/i686/cmov/libc.so.6(abort+0x182)_[0x23a932]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)9:_#5_/usr/bin/wmic(talloc_named_const+0x185)_[0x84cd2b5]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)10:_#6_/usr/bin/wmic(ndr_pull_WbemQualifiers+0x13d)_[0x80c954d]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)11:_#7_/usr/bin/wmic(ndr_pull_WbemClass+0x3e4)_[0x80c9bf4]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)12:_#8_/usr/bin/wmic(ndr_pull_DataWithStack+0xae)_[0x80c7ece]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)13:_#9_/usr/bin/wmic(ndr_pull_WbemClassObject+0x2c1)_[0x80c89b1]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)14:_#10_/usr/bin/wmic(WBEMDATA_Parse+0x8f2)_[0x80c60d2]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)15:_#11_/usr/bin/wmic(IEnumWbemClassObject_SmartNext+0x221)_[0x80c6491]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)16:_#12_/usr/bin/wmic(main+0x758)_[0x80c4988]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)17:_#13_/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)_[0x223b56]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)18:_#14_/usr/bin/wmic_[0x80c3fe1]

Any ideas?
saback
Posts: 3
Joined: Fri May 01, 2009 4:31 pm

Post by saback »

Doing more tests I suspect the the problem is with the wmic arguments size.

Code: Select all

/usr/bin/wmic --authentication-file=/etc/cacti/wmic.conf //x.x.x.x "SELECT AvgDiskBytesPerRead FROM Win32_PerfRawData_PerfDisk_PhysicalDisk"
Does not work, but

Code: Select all

/usr/bin/wmic --authentication-file=/etc/cacti/wmic.conf //x.x.x.x "SELECT * FROM Win32_PerfRawData_PerfDisk_PhysicalDisk"
Works fine. Depending of the size of the command it works or not. Am I correct about that? How can I solve that?
saback wrote:Hi All,

I am using Cacti 0.8.7.e + Spine 0.8.7.c + WMIC 4.0.0alpha3-GIT-UNKNOWN

WMIC is working for some WMI Classes but not for all. Below an example with problem:

Code: Select all

/usr/bin/wmic --namespace='root\CIMV2' --authentication-file=/etc/cacti/wmic.conf //x.x.x.x "SELECT * FROM Win32_PerfRawData_PerfDisk_PhysicalDisk"
Exec Status: 134

INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)0:Please_read_the_file_BUGS.txt_in_the_distribution
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)1:=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)2:PANIC_internal_error
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)3:BACKTRACE_15_stack_frames
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)4:_#0_/usr/bin/wmic(call_backtrace+0x2d)_[0x848ac4d]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)5:_#1_/usr/bin/wmic(smb_panic+0x80)_[0x848ada0]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)6:_#2_/usr/bin/wmic_[0x848b0c6]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)7:_#3_[0xaf4400]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)8:_#4_/lib/tls/i686/cmov/libc.so.6(abort+0x182)_[0x23a932]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)9:_#5_/usr/bin/wmic(talloc_named_const+0x185)_[0x84cd2b5]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)10:_#6_/usr/bin/wmic(ndr_pull_WbemQualifiers+0x13d)_[0x80c954d]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)11:_#7_/usr/bin/wmic(ndr_pull_WbemClass+0x3e4)_[0x80c9bf4]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)12:_#8_/usr/bin/wmic(ndr_pull_DataWithStack+0xae)_[0x80c7ece]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)13:_#9_/usr/bin/wmic(ndr_pull_WbemClassObject+0x2c1)_[0x80c89b1]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)14:_#10_/usr/bin/wmic(WBEMDATA_Parse+0x8f2)_[0x80c60d2]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)15:_#11_/usr/bin/wmic(IEnumWbemClassObject_SmartNext+0x221)_[0x80c6491]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)16:_#12_/usr/bin/wmic(main+0x758)_[0x80c4988]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)17:_#13_/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)_[0x223b56]
INTERNAL ERROR: Signal 6 in pid 17526 (4.0.0alpha3-GIT-UNKNOWN)18:_#14_/usr/bin/wmic_[0x80c3fe1]

Any ideas?
User avatar
claymen
Cacti User
Posts: 259
Joined: Mon Aug 18, 2008 4:30 am
Location: Australia
Contact:

Post by claymen »

I'd say that's more a case of a broken wmic binary. There were similar problems in earlier versions like the package that came with debian originally.

Where did you get the binary from?
User avatar
claymen
Cacti User
Posts: 259
Joined: Mon Aug 18, 2008 4:30 am
Location: Australia
Contact:

Post by claymen »

FYI the latest SVN version of my script has the updated CDEF's to suit newer versions of Cacti. Not really much else has been done other than tweak a few bits.
Mika2008
Posts: 26
Joined: Tue Dec 01, 2009 4:24 pm

Post by Mika2008 »

Hello,
i have this error message when i lunch :

MIka2008@ubuntu:/var/www/cacti/scripts$ php wmi.php -h 192.168.0.18 -u /etc/wmi.pw -w Win32_ComputerSystem -c PrimaryOwnerName,NumberOfProcessors -n ‘root\CIMV2′
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/msql.so: cannot open shared object file: No such file or directory in Unknown on line 0
sh: /usr/local/bin/wmic: not found


Return code non-zero, debug mode enabled!



/usr/local/bin/wmic --namespace='‘rootCIMV2′' --authentication-file=/etc/wmi.pw //192.168.0.18 "SELECT PrimaryOwnerName,NumberOfProcessors FROM Win32_ComputerSystem"
Exec Status: 127
And i think i need install wmi, i have get it here :
>sudo wget http://dev.zenoss.org/svn/trunk/inst/externallibs
/wmi-1.3.5.tar.bz2
> sudo tar -xvf wmi-1.3.5.tar.bz2
and for finich i have this :
Mika2008@ubuntu:/var/www/cacti/tmp$ ls
wmi-1.3.5 wmi-1.3.5.tar.bz2

Mika2008@ubuntu:/var/www/cacti/tmp$ cd wmi-1.3.5/
Mika2008@ubuntu:/var/www/cacti/tmp/wmi-1.3.5$ ls
GNUmakefile pyinclude.py pysamba Samba
and how to make this script work please?

For my graph i have this :

Image
User avatar
claymen
Cacti User
Posts: 259
Joined: Mon Aug 18, 2008 4:30 am
Location: Australia
Contact:

Post by claymen »

Ok you have a couple of issues there mate.

1. Your php.ini references the msql.so library which doesn't exist, its non fatal but would be a good idea to remove that seeing as you don't have the module on your system.

2. You haven't actually compiled the wmic binary from the source package. You are correct with grabbing the wmi-1.3.5.tar.bz2 but need to build it. You can grab the instructions in the updated readme.txt as they no longer seem to include the build instructions in the WMI source file.

Once you have done that it should start working assuming all other instructions have been followed and configs setup correctly.
Mika2008
Posts: 26
Joined: Tue Dec 01, 2009 4:24 pm

Post by Mika2008 »

hello
Thanks i think he is almost work, but i have authentication problem.

how to configure windows authentication?

on cacti i have write a foles in /etc/cacti/cactiwmi.pw

but not work.

maybe an explanation please?
User avatar
claymen
Cacti User
Posts: 259
Joined: Mon Aug 18, 2008 4:30 am
Location: Australia
Contact:

Post by claymen »

Did you create the file as per this format? And is the user you specified an admin on the box (or a user which has had the correct privelages granted)?? What exactly are you seeing happen?
AUTH FILE FORMAT

The auth file contains the username and password of the service account you are using
to run the WMI queries. Simply create the file as per the format below and set the
permissions on it so that no one else but the cacti user can read it.

username=<your username>
password=<your password>
domain=<your domain>
francl
Posts: 1
Joined: Fri Dec 04, 2009 3:44 am

Post by francl »

I was getting the following messages appearing in cacti.log when trying to use the wmi.php script. However wmi.php would run fine as root from the command line.

CMDPHP: Poller[0] Host[8] DS[87] WARNING: Result from CMD not valid. Partial Result: U

The cause was due to not having the correct permissions on the /etc/cacti/cactiwmi.pw file. I originally had the files owned by the user "cacti", but I now changed the owner permissions to "wwwrun" so they look as below

# ls -la /etc/cacti
drwxr-xr-x 2 wwwrun cacti 104 Dec 3 15:23 .
drwxr-xr-x 82 root root 6912 Dec 4 09:31 ..
-rw------- 1 wwwrun cacti 48 Dec 3 15:23 cactiwmi.pw

The "wwwrun" user on my SUSE Linux server is used by apache2 to run all the cacti php scripts and thus needs access to this password file and not the cacti user.

This problem had me stumped for a while as i couldnt figure out why no data was being added to the rrd files, even though wmi.php and wmic worked fine when tested from the command line.
Hope this helps someone.
zzhcool
Posts: 1
Joined: Thu Dec 03, 2009 6:51 am

Post by zzhcool »

why not images?work'd good
Mika2008
Posts: 26
Joined: Tue Dec 01, 2009 4:24 pm

Post by Mika2008 »

Hello, well i lunch in command line php poller.php, nd i have this, someone can explain what is wrong, on my config?

on my windows 2003 server i have user :

Code: Select all

Login : Administrator
Pass : 
Domain : WORKGROUP
and on my /etc/cacti/cacti.pw

Code: Select all

Mika2008@ubuntu:/var/www/cacti$ sudo nano /etc/cacti/cactiwmi.pw

username=Administrator
password=
domain=WORKGROUP
And my resut of my comand line of php poller.php

Code: Select all

Mika2008@ubuntu:/var/www/cacti$ php poller.php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/ms                               ql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/ms                               ql.so: cannot open shared object file: No such file or directory in Unknown on line 0
OK u:0.00 s:0.00 r:1.20
OK u:0.00 s:0.00 r:1.20
OK u:0.00 s:0.00 r:1.20
OK u:0.00 s:0.00 r:1.20
OK u:0.00 s:0.00 r:1.20
OK u:0.00 s:0.00 r:1.20
OK u:0.00 s:0.00 r:1.20
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/ms                               ql.so: cannot open shared object file: No such file or directory in Unknown on line 0
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/ms                               ql.so: cannot open shared object file: No such file or directory in Unknown on line 0
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/ms                               ql.so: cannot open shared object file: No such file or directory in Unknown on line 0
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/ms                               ql.so: cannot open shared object file: No such file or directory in Unknown on line 0
ERROR: opening '/var/www/cacti/rra/server_windows_2003_totalphysicalmemory_18.rrd': Permission non accordée
ERROR: Not enough arguments
ERROR: Not enough arguments
OK u:0.00 s:0.00 r:2.40
OK u:0.00 s:0.00 r:2.40
OK u:0.00 s:0.00 r:2.41
OK u:0.00 s:0.00 r:2.41
OK u:0.00 s:0.00 r:2.41
OK u:0.00 s:0.00 r:2.41
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/ms                               ql.so: cannot open shared object file: No such file or directory in Unknown on line 0
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/ms                               ql.so: cannot open shared object file: No such file or directory in Unknown on line 0
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/ms                               ql.so: cannot open shared object file: No such file or directory in Unknown on line 0
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/ms                               ql.so: cannot open shared object file: No such file or directory in Unknown on line 0
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
ERROR: Not enough arguments
ERROR: Not enough arguments
ERROR: Not enough arguments
ERROR: Not enough arguments
ERROR: Not enough arguments
12/04/2009 07:59:36 PM - SYSTEM STATS: Time:4.0783 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSource                               s:26 RRDsProcessed:21
and i have nothing on my graph, someon can help me please?
Last edited by Mika2008 on Sat Dec 05, 2009 7:10 am, edited 1 time in total.
Mika2008
Posts: 26
Joined: Tue Dec 01, 2009 4:24 pm

Post by Mika2008 »

hello,
always nothing :
Image


and on my cacti log files :
and my windows server 3 he is Host 3

Code: Select all

12/05/2009 11:45:26 AM - SYSTEM STATS: Time:23.8933 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:82 RRDsProcessed:80
12/05/2009 11:45:26 AM - CMDPHP: Poller[0] Host[4] DS[97] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:24 AM - CMDPHP: Poller[0] Host[3] DS[88] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:24 AM - CMDPHP: Poller[0] Host[3] DS[87] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:23 AM - CMDPHP: Poller[0] Host[3] DS[86] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:23 AM - CMDPHP: Poller[0] Host[3] DS[85] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:22 AM - CMDPHP: Poller[0] Host[3] DS[84] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:22 AM - CMDPHP: Poller[0] Host[3] DS[83] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:22 AM - CMDPHP: Poller[0] Host[3] DS[82] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:21 AM - CMDPHP: Poller[0] Host[3] DS[81] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:21 AM - CMDPHP: Poller[0] Host[3] DS[80] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:21 AM - CMDPHP: Poller[0] Host[3] DS[79] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:20 AM - CMDPHP: Poller[0] Host[3] DS[78] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:20 AM - CMDPHP: Poller[0] Host[3] DS[77] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:20 AM - CMDPHP: Poller[0] Host[3] DS[76] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:19 AM - CMDPHP: Poller[0] Host[3] DS[75] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:19 AM - CMDPHP: Poller[0] Host[3] DS[74] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:19 AM - CMDPHP: Poller[0] Host[3] DS[73] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:18 AM - CMDPHP: Poller[0] Host[3] DS[72] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:18 AM - CMDPHP: Poller[0] Host[3] DS[71] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:18 AM - CMDPHP: Poller[0] Host[3] DS[70] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:18 AM - CMDPHP: Poller[0] Host[3] DS[69] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:17 AM - CMDPHP: Poller[0] Host[3] DS[68] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:17 AM - CMDPHP: Poller[0] Host[3] DS[67] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:17 AM - CMDPHP: Poller[0] Host[3] DS[66] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:17 AM - CMDPHP: Poller[0] Host[3] DS[65] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:16 AM - CMDPHP: Poller[0] Host[3] DS[64] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:16 AM - CMDPHP: Poller[0] Host[3] DS[63] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:16 AM - CMDPHP: Poller[0] Host[3] DS[62] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:15 AM - CMDPHP: Poller[0] Host[3] DS[61] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:15 AM - CMDPHP: Poller[0] Host[3] DS[60] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:15 AM - CMDPHP: Poller[0] Host[3] DS[59] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:14 AM - CMDPHP: Poller[0] Host[3] DS[58] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:14 AM - CMDPHP: Poller[0] Host[3] DS[57] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:14 AM - CMDPHP: Poller[0] Host[3] DS[56] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:13 AM - CMDPHP: Poller[0] Host[3] DS[55] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:13 AM - CMDPHP: Poller[0] Host[3] DS[54] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:13 AM - CMDPHP: Poller[0] Host[3] DS[53] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:13 AM - CMDPHP: Poller[0] Host[3] DS[52] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:12 AM - CMDPHP: Poller[0] Host[3] DS[51] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:12 AM - CMDPHP: Poller[0] Host[3] DS[50] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:12 AM - CMDPHP: Poller[0] Host[3] DS[49] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:11 AM - CMDPHP: Poller[0] Host[3] DS[48] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:11 AM - CMDPHP: Poller[0] Host[3] DS[47] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:11 AM - CMDPHP: Poller[0] Host[3] DS[46] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:11 AM - CMDPHP: Poller[0] Host[3] DS[45] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:10 AM - CMDPHP: Poller[0] Host[3] DS[44] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:10 AM - CMDPHP: Poller[0] Host[3] DS[43] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:10 AM - CMDPHP: Poller[0] Host[3] DS[42] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:09 AM - CMDPHP: Poller[0] Host[3] DS[41] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:09 AM - CMDPHP: Poller[0] Host[3] DS[40] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:08 AM - CMDPHP: Poller[0] Host[3] DS[39] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:08 AM - CMDPHP: Poller[0] Host[3] DS[38] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:08 AM - CMDPHP: Poller[0] Host[3] DS[37] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:07 AM - CMDPHP: Poller[0] Host[3] DS[36] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:07 AM - CMDPHP: Poller[0] Host[3] DS[35] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:07 AM - CMDPHP: Poller[0] Host[3] DS[34] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:07 AM - CMDPHP: Poller[0] Host[3] DS[33] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:06 AM - CMDPHP: Poller[0] Host[3] DS[32] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:06 AM - CMDPHP: Poller[0] Host[3] DS[31] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:06 AM - CMDPHP: Poller[0] Host[3] DS[30] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:05 AM - CMDPHP: Poller[0] Host[3] DS[29] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:05 AM - CMDPHP: Poller[0] Host[3] DS[28] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:05 AM - CMDPHP: Poller[0] Host[3] DS[27] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:04 AM - CMDPHP: Poller[0] Host[3] DS[26] WARNING: Result from CMD not valid. Partial Result: U
12/05/2009 11:45:04 AM - CMDPHP: Poller[0] Host[3] DS[25] WARNING: Result from CMD not valid. Partial Result: U 
if someone understand, please?


Edit:
I m looknig since Morning, and i think the problem come from the authentication files :

Code: Select all

 Mika2008@ubuntu:~$ /usr/bin/php -q /var/www/cacti/scripts/wmi.php -h '192.168.0.11' -u '/etc/cacti/cactiwmi.pw' -w 'Win32_LogicalDisk' -n '' -k 'DeviceID' -v 'C:' -c 'Size,FreeSpace'
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/msql.so' - /usr/lib/php5/20060613+lfs/msql.so: cannot open shared object file: No such file or directory in Unknown on line 0
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied


Return code non-zero, debug mode enabled!



/usr/local/bin/wmic --namespace='root\CIMV2' --authentication-file=/etc/cacti/cactiwmi.pw //192.168.0.11 "SELECT Size,FreeSpace FROM Win32_LogicalDisk WHERE DeviceID='C:'"
Exec Status: 1
but i have tried many option ont this files nothing works :'(
Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests