[HOWTO] Monitoring Windows from Unix/Linux
Moderators: Developers, Moderators
[HOWTO] Monitoring Windows from Unix/Linux
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.
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
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.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?
HTH
Thomas Rupp
WMI from Linux
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.
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.
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
Graph Debug
Any help?
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 \
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
The latest NC_Net plugin provides WMI queries.
http://sourceforge.net/projects/nc-net
http://sourceforge.net/projects/nc-net
Who is online
Users browsing this forum: No registered users and 0 guests