-->

DEVOPSZONES

  • Recent blogs

    Monitoring windows DISK IO utilization In cacti using WMI?

    Monitoring windows DISK IO utilization In cacti using WMI?

    We need to install the WMI client in the Linux Server. Please install the autoconf package first.
    yum install autoconf

    Now go to your home folder.
    cd ~

    Download the WMI zip.
    wget http://www.openvas.org/download/wmi/wmi-1.3.14.tar.bz2

    Please Install bunzip package.
    yum install bzip2

    Now Unzip the WMI compressed file.
    tar -xvf wmi-1.3.14.tar.bz2

    Now go to the wmi folder.
    cd wmi-1.3.14

    Now Edit the GNUmakefile and add following Line.
    vi GNUmakefile
    ZENHOME=../..

    Now run the make command.
     make "CPP=gcc -E -ffreestanding"

    Now create the password file in the linux Server.
    /etc/cacti/example_win_simple.pw

    The Format Should be following if it is a Local user. If it is a Domain User then add domain name in the "domain=" Field.
    Username=Admincactiwmi
    Password=testingwmi


    Test:
    Now test the setup by trying to pullout the information from the windows server. In all Probability the test will fail with a Error code: NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied.
    [root@cactiserver wmi-1.3.14]# wmic --namespace='root\cimv2' --authentication-file=/etc/cacti/example_win_simple.pw //192.168.3.56 "SELECT Name FROM Win32_ComputerSystem"
    [librpc/rpc/dcerpc_util.c:1290:dcerpc_pipe_auth_recv()] Failed to bind to uuid 4d9f4ab8-7d1c-11cf-861e-192.168.3.56 - NT_STATUS_NET_WRITE_FAULT
    [librpc/rpc/dcerpc_connect.c:790:dcerpc_pipe_connect_b_recv()] failed NT status (c0000022) in dcerpc_pipe_connect_b_recv
    [wmi/wmic.c:196:main()] ERROR: Login to remote object.
    NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied


    Now Setup the WMI user in the Windows Server.
    1. Login to the Windows server as an administrator.

    2. Go to Computer management.

    3. Click on the Local Users and Groups in the left Side and then click on Users.

    4. Now Create the user "Admincactiwmi" and add a password the which you have mentioned in the "/etc/cacti/example_win_simple.pw" file.

    5. Edit the user and go to the Member Of tab.

    6. Add the Performance Log Users and Performance Monitor Users group to the list.

    7. Now click on Apply and press OK.

    8. In the left pane right-click on WMI Control and select Properties.

    9. In the POPUP , click on the Security tab and select CIMV2 from the list.

    10. Add the Admincactiwmi user to the List and assign the Permission.

    11. Click on Apply and Click on OK.

    12. Now restart the WMI Performance service, so that changes can get effected.

    Test Again: 
     Now Test the the setup again.
     [root@cactiserver wmi-1.3.14]# wmic --namespace='root\cimv2' --authentication-file=/etc/cacti/example_win_simple.pw //192.168.3.56 "SELECT Name FROM Win32_ComputerSystem"
    CLASS: Win32_ComputerSystem
    Name
    cactiwinclient


    No comments