From: Jensen, P. L <c-p...@ve...> - 2007-06-04 20:44:31
|
Fedora Core 6 - Nagios-2.9 - Nagios-Plugins-1.4.8 - NagiosGrapher 1.6.1-rc3 - NSClient 0.2.7 Hi, I recently installed nagiosgrapher and I am monitoring windows host. I would like to get graphs on the services, but I can't find any templates or documentation of how to create the ncfg files for the windows hosts. If anyone could help with this, I would be so happy. Thanks, - Palle Below are my attempts to modify the linux file check_disk.ncfg, not very successful. ngraph.log looks like this: 2007-06-04 15:55:15 PIPE: winserver Filesystems c:\ - total: 135.63 Gb - used: 10.23 Gb (8%) - free 125.40 Gb (92%) c:\ Used Space=3D10.23Gb;108.51;122.07;0.00;135.63 2007-06-04 15:55:15 REGEX: No blocks for 'Filesystems' foun Check_disks.ncfg looks like this: define ngraph { graph_legend Used Space # graph_perf_regex ([0-9]+)MB graph_perf_regex ([0-9]+.+([0-9]))MB graph_value MBused hide yes rrd_color 00a000 rrd_plottype AREA service_name Filesystems } define ngraph { graph_legend Total Space graph_perf_regex ([0-9]+)$ graph_value MBtotal hide yes rrd_color 00ff00 rrd_plottype AREA service_name Filesystems } define ngraph { graph_legend Warning graph_perf_regex [0-9]*MB;([0-9]+); graph_value MBwarning hide yes rrd_color 00a000 rrd_plottype HRULE service_name Filesystems } define ngraph { graph_legend Critical graph_perf_regex [0-9]+MB;[0-9]+;([0-9]+); graph_value MBcritical hide yes rrd_color 00a000 rrd_plottype HRULE service_name Filesystems } define ngraph { graph_calc MBtotal,MBused,- graph_legend Free Space graph_value MBfree hide yes rrd_color ff0000 rrd_plottype AREA service_name Filesystems type CDEF } define ngraph { graph_calc MBused,100,*,MBtotal,/ graph_legend Used Space graph_units Percent (%) graph_value percentused hide yes rrd_color 1C2B53 rrd_plottype LINE service_name Filesystems type CDEF } define ngraph { graph_calc MBwarning,100,*,MBtotal,/ graph_legend Warning graph_units Percent (%) graph_value percentwarning hide yes rrd_color FF7700 rrd_plottype LINE service_name Filesystems type CDEF } define ngraph { graph_calc MBcritical,100,*,MBtotal,/ graph_legend Critical graph_units Percent (%) graph_value percentcritical hide yes rrd_color FF0000 rrd_plottype LINE service_name Filesystems type CDEF } define ngraph { graph_calc percentused,UN,0,percentused,percentwarning,GT,percentwarning,percentuse d,IF,IF graph_legend Used Disk Space graph_value Regular hide no rrd_color AABBFF rrd_plottype AREA service_name Filesystems type CDEF } define ngraph { graph_calc percentused,UN,0,percentused,percentwarning,-,0,LE,0,percentused,percent critical,GE,100,percentcritical,-,percentused,percentwarning,-,IF,IF,IF graph_units Percent (%) graph_upper_limit 100 graph_value Warning hide no rrd_color FFDD66 rrd_plottype STACK service_name Filesystems type CDEF } define ngraph { graph_calc percentused,UN,0,percentused,percentcritical,-,0,LE,0,percentused,percen tcritical,-,IF,IF graph_units Percent (%) graph_upper_limit 100 graph_value Critical hide no rrd_color FF0000 rrd_plottype STACK service_name Filesystems type CDEF } define ngraph { graph_calc percentused,AVERAGE graph_legend Average Usage graph_units Percent (%) graph_value vdef_disk_average hide no rrd_color 66CC33 rrd_plottype LINE1 service_name Filesystems type VDEF } define ngraph { graph_calc percentwarning,AVERAGE graph_legend Warning graph_units Percent (%) graph_value vdef_warning_average hide no rrd_color FF7700 rrd_plottype LINE1 service_name Filesystems type VDEF } define ngraph { graph_calc percentcritical,AVERAGE graph_legend Critical graph_legend_eol LEFT graph_units Percent (%) graph_value vdef_critical_average hide no rrd_color FF0000 rrd_plottype LINE1 service_name Filesystems type VDEF } define ngraph { print_eol justify service_name Filesystems type COMMENT } define ngraph { print_description Latest Usage: print_format %11.2lf MB print_function LAST print_source MBused service_name Filesystems type GPRINT } define ngraph { print_format (%3.2lf %%) print_function LAST print_source percentused service_name Filesystems type GPRINT } #define ngraph { # print_description This is a comment # service_name Filesystems # type COMMENT #} #define ngraph { # print_description This is another comment # service_name Filesystems # type COMMENT #} define ngraph { print_description Free Space: print_eol justify print_format %11.2lf MB print_function LAST print_source MBfree service_name Filesystems type GPRINT } define ngraph { print_description Average Usage: print_format %11.2lf MB print_function AVERAGE print_source MBused service_name Filesystems type GPRINT } define ngraph { print_format (%3.2lf %%) print_function AVERAGE print_source percentused service_name Filesystems type GPRINT } #define ngraph { # print_description More comment # service_name Filesystems # type COMMENT #} #define ngraph { # print_description And comment # service_name Filesystems # type COMMENT #} define ngraph { print_description Used Space: print_eol justify print_format %11.2lf MB print_function LAST print_source MBused service_name Filesystems type GPRINT } define ngraph { print_description Maximum Usage: print_format %11.2lf MB print_function MAX print_source MBused service_name Filesystems type GPRINT } define ngraph { print_format (%3.2lf %%) print_function MAX print_source percentused service_name Filesystems type GPRINT } #define ngraph { # print_description Tired of comments? # service_name Filesystems # type COMMENT #} #define ngraph { # print_description A comment # service_name Filesystems # type COMMENT #} define ngraph { print_description Total Space: print_eol justify print_format %11.2lf MB print_function LAST print_source MBtotal service_name Filesystems type GPRINT } |