Monitor Windows via WMI from Cacti on Linux

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

Moderators: Developers, Moderators

Post Reply
Jh0nh
Posts: 3
Joined: Wed Nov 27, 2013 9:59 am

Re: Monitor Windows via WMI from Cacti on Linux

Post by Jh0nh »

Hi guys,
I am having trouble with this Plugin, the installation process has been success but when cacti graph nothing appear.
When issue the command from terminal work perfect but the script that appear from cacti GUI not work (state of all graphs is -nan)
Thanks for you help
Attachments
3.jpg
3.jpg (105.27 KiB) Viewed 6720 times
2.jpg
2.jpg (40.32 KiB) Viewed 6720 times
Untitled.jpg
Untitled.jpg (270.97 KiB) Viewed 6720 times
artiflo
Cacti User
Posts: 76
Joined: Wed Dec 19, 2007 2:00 pm

Re: Monitor Windows via WMI from Cacti on Linux

Post by artiflo »

Jh0nh
Posts: 3
Joined: Wed Nov 27, 2013 9:59 am

Re: Monitor Windows via WMI from Cacti on Linux

Post by Jh0nh »

Hi artiflo,

Thanks for you help, thanks to your suggestion is working now.

So many thanks
Attachments
wmiworking.jpg
wmiworking.jpg (281.56 KiB) Viewed 6681 times
neclimdul
Posts: 3
Joined: Wed Feb 12, 2014 1:55 pm

Re: Monitor Windows via WMI from Cacti on Linux

Post by neclimdul »

Cloned this into github where I could hack on it some. Updated readme with some more up to date links and cleaned up some notices and made some error messages clearer to make getting this working a bit easier for me.

https://github.com/neclimdul/CactiWMI
psabadim
Posts: 2
Joined: Fri Apr 18, 2014 10:45 am

Re: Monitor Windows via WMI from Cacti on Linux

Post by psabadim »

I have a question about Disk Usage...

My server has 4 Disk (C:\, E:\; F:\; I:\)...there is a way to monitor all these disks? My cacti monitor only C:\

Thanks
mauricio330
Posts: 6
Joined: Mon Jun 02, 2014 10:00 pm

Re: Monitor Windows via WMI from Cacti on Linux

Post by mauricio330 »

Hi Claymen,

there is a way to install and install this plugin into a windows based cacti ?

[quote="claymen"]Whats your cacti output look like at the time its being polled?
twinkiman
Posts: 10
Joined: Mon Mar 17, 2014 2:33 pm

Re: Monitor Windows via WMI from Cacti on Linux

Post by twinkiman »

I've issued a pull request which fixes some issues around Server 2008 domain controllers and Server 2012. As a bonus I've added a new script that can pull windows network info via WMI instead of SNMP. The windows network WMI counters are still 32-bit, but there is a total traffic counter, which is 64-bit and not exposed via SNMP (to the best of my knowledge).
twinkiman
Posts: 10
Joined: Mon Mar 17, 2014 2:33 pm

Re: Monitor Windows via WMI from Cacti on Linux

Post by twinkiman »

psabadim,

You can monitor more than one drive, but you'll have to readd the graph multiple times and change the filtered drive.
twinkiman
Posts: 10
Joined: Mon Mar 17, 2014 2:33 pm

Re: Monitor Windows via WMI from Cacti on Linux

Post by twinkiman »

mauricio330 wrote:Hi Claymen,

there is a way to install and install this plugin into a windows based cacti ?
Not currently because it relies on the linux wmic tool. That being said, it's open source and not terribly hard to work through. It could be tweaked to use windows tools with some work.
skorzen
Posts: 1
Joined: Tue Oct 20, 2015 12:04 pm

Re: Monitor Windows via WMI from Cacti on Linux

Post by skorzen »

Hello everyone,

My graphs are not being generated. I just see a blank space instead of the graph itself.

I am having the following record in the log:

Code: Select all

10/20/2015 06:06:12 PM - SPINE: Poller[0] Host[23] TH[1] DS[632] SCRIPT: /usr/bin/php -q /usr/share/cacti/scripts/wmi.php -h 'someserver' -u '/etc/cacti/cactiwmi.pw' -w 'Win32_ComputerSystem' -n '' -k '' -v '' -c 'TotalPhysicalMemory', output: U
When running the command from shell I get the following:

Code: Select all

[root@monitoringserver wmi]# /usr/bin/php -q /usr/share/cacti/scripts/wmi.php -h 'someserver' -u '/etc/cacti/cactiwmi.pw' -w 'Win32_PerfRawData_PerfOS_Memory' -n '' -k '' -v '' -c 'CommittedBytes,AvailableBytes,CommitLimit'

/bin/wmic --namespace='root\CIMV2' --authentication-file=/etc/cacti/cactiwmi.pw //someserver "SELECT CommittedBytes,AvailableBytes,CommitLimit FROM Win32_PerfRawData_PerfOS_Memory"
Exec Status: 0

AvailableBytes:36340912128
CommitLimit:141697503232
CommittedBytes:84073422848
I have tried both cmd.php and spine pollers with no luck.

How can I further troubleshoot this?

Thank you!

Cheers,

Bruno Martins
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Monitor Windows via WMI from Cacti on Linux

Post by phalek »

Do you have some debugging enabled within the wmi script?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
davidochobits
Posts: 1
Joined: Thu Aug 31, 2017 2:19 am

Re: Monitor Windows via WMI from Cacti on Linux

Post by davidochobits »

Hi everybody,

It's my first post! I have a problem with Cacti and WMI Monitor.

It works perfectly, but I have not been able to create separate graphs for different instances of the same service.

Please see the attached file.

any ideas?

Thks!!!
Attachments
Instancias SQL WS 2008 R2
Instancias SQL WS 2008 R2
instances-ws-cacti.JPG (19.57 KiB) Viewed 2400 times
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests