|
|
| Author |
Message |
Thomas Cacti User
Joined: 09 Dec 2004 Posts: 112 Location: Austria
|
Posted: Sun Dec 19, 2004 9:52 am Post subject: [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.
| Description: |
|
 Download |
| Filename: |
Cacti-Nagios.zip |
| Filesize: |
4.42 KB |
| Downloaded: |
5298 Time(s) |
|
|
| Back to top |
|
 |
noskill
Joined: 21 Feb 2005 Posts: 32
|
Posted: Mon Feb 21, 2005 12:35 am Post subject: |
|
|
| Please Fix download link...
|
|
| Back to top |
|
 |
Thomas Cacti User
Joined: 09 Dec 2004 Posts: 112 Location: Austria
|
Posted: Mon Feb 21, 2005 3:01 am Post subject: |
|
|
| 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?
|
|
| Back to top |
|
 |
Acidfire
Joined: 08 Jul 2005 Posts: 4
|
Posted: Fri Jul 08, 2005 2:08 am Post subject: |
|
|
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?
|
|
| Back to top |
|
 |
Thomas Cacti User
Joined: 09 Dec 2004 Posts: 112 Location: Austria
|
Posted: Fri Jul 08, 2005 2:46 am Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
sacedoa
Joined: 15 Nov 2005 Posts: 2
|
Posted: Tue Nov 15, 2005 5:08 am Post subject: 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.
|
|
| Back to top |
|
 |
jokerz
Joined: 26 Oct 2006 Posts: 13
|
Posted: Mon Jul 09, 2007 2:56 pm Post subject: |
|
|
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: |
/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: |
/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?
|
|
| Back to top |
|
 |
pheezy Cacti User
Joined: 26 Oct 2006 Posts: 54
|
|
| Back to top |
|
 |
|