[HOWTO] Monitoring Windows from Unix/Linux

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Post Reply
Thomas
Cacti User
Posts: 112
Joined: Thu Dec 09, 2004 1:51 pm
Location: Austria

[HOWTO] Monitoring Windows from Unix/Linux

Post by Thomas »

I've found so many scripts gathering information from Windows boxes using WMI. Unfortunately WMI is only available for Windows so this scripts can't be used from CACTI on Unix/Linux.
The discussion on this forum on how this limitation could be removed left me a bit confused. There seem to be tools/programs like NSclient, NRPE_NT, Netsaint_statd, WSC, Nagios_proxy ... you get the picture.
I tried to put it all together on one page - the result (Version 1.0) can be found attached.
If there is anything incorrect, missing or should be expanded please don't hesitate to correct the Excel-File.
Attachments
Cacti-Nagios.zip
(4.42 KiB) Downloaded 6765 times
Thomas Rupp
noskill
Posts: 32
Joined: Mon Feb 21, 2005 12:32 am

Post by noskill »

Please Fix download link...
Thomas
Cacti User
Posts: 112
Joined: Thu Dec 09, 2004 1:51 pm
Location: Austria

Post by Thomas »

noskill wrote:Please Fix download link...
What download link do you mean? The link in my above post works - are there any problems with a link in my document? If yes, which cell?
Thomas Rupp
Acidfire
Posts: 4
Joined: Fri Jul 08, 2005 1:57 am

Post by Acidfire »

Just a question,

with the above do you need to have Nagios installed or can you simply use the proxy server to query with the appropriate templates?
Thomas
Cacti User
Posts: 112
Joined: Thu Dec 09, 2004 1:51 pm
Location: Austria

Post by Thomas »

Acidfire wrote:Just a question,

with the above do you need to have Nagios installed or can you simply use the proxy server to query with the appropriate templates?
I haven't tried it myself - just compiled all possible ways to get info from windows to a linux box. If I understand the docu correctly you just need "check_np". Then you would have to install a part on the cacti server and the other part on the windows machine.

HTH
Thomas Rupp
sacedoa
Posts: 2
Joined: Tue Nov 15, 2005 5:04 am

WMI from Linux

Post by sacedoa »

There is another GPL'd great project for network monitoring named NINO at Sourceforge.
NINO takes advantage of WMI and SNMP on Windows machines without any installed agent using perl scripts.

It should be nice taking code from this nice project to add cacti wmi support in Linux.
jokerz
Posts: 13
Joined: Thu Oct 26, 2006 11:57 am

Post by jokerz »

So i d.l your zip put the .pl files in my cacti scripts dir and imported the host template. Setup a graph.

I go a graph with no data points my Debug out is as follows
Data Source Debug

Code: Select all

/usr/bin/rrdtool create \
/var/www/html/rra/pdc_cpu_load_71.rrd \
--step 300  \
DS:cpu_load:GAUGE:600:0:101 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
Graph Debug

Code: Select all


/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="PDC - CPU Load" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=100 \
--lower-limit=0 \
--vertical-label="CPU Load %" \
--slope-mode \
DEF:a="/var/www/html/rra/pdc_cpu_load_71.rrd":cpu_load:AVERAGE \
AREA:a#005199:"CPU Load\n"  \
GPRINT:a:LAST:"Current\:%8.2lf%s"  \
GPRINT:a:MIN:"Minimum\:%8.2lf%s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf%s" 

RRDTool Says:

OK

Any help?
pheezy
Cacti User
Posts: 61
Joined: Thu Oct 26, 2006 5:30 pm

Post by pheezy »

The latest NC_Net plugin provides WMI queries.
http://sourceforge.net/projects/nc-net
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests