| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| check_esx_gw,RRD, and Groundwork http://www.steveshipway.org/forum/viewtopic.php?f=28&t=1595 |
Page 1 of 1 |
| Author: | jsipes [ Wed Jul 16, 2008 10:49 am ] |
| Post subject: | check_esx_gw,RRD, and Groundwork |
Steve First, thank you for your work with check_esx! It is much appreciated. I have been smacking my head against a brickwall for a week or so on creating graph data from the output of check_esx_gw. The command itself works fine. Here is a copy of the output: /usr/local/groundwork/nagios/libexec/check_esx_gw -N -H 192.1.1.1 -C "public" -l MEM -w "25" -c "10" -t 20 SERVICE STATUS: OK: Memory free: 8001Mb (67.72%) [Total available 11813Mb] [Console=4.18%] Memory split: pvt/shr/bal/swp = 41.68%/58.31%/0%/0%|mem_free_pc=67.72%;;;0;100 console_mem_pc=4.18%;;;0;100 allvms_mem_pvt_pc=41.68%;;;0;100 allvms_mem_shr_pc=58.31%;;;0;100 allvms_mem_bal_pc=0%;;;0;100 allvms_mem_swp_pc=0%;;;0;100 The problem is getting RRD data. Here is a copy of what I have been trying in Groundwork v5.2.1: Graph Label: check_esx3_memory Service: check_esx3_memory Use Service as a Regular Expression OFF Host: * Status Text Parsing Regular Expression: Use Status Text Parsing instead of Performance Data OFF RRD Name /usr/local/groundwork/rrd/$HOST$_$SERVICE$.rrd RRD Create Command RRDTOOL$ create $RRDNAME$ --step 300 --start n-1yr DS:mem_free_pc:GAUGE:1800:U:U DS:console_mem_pc:GAUGE:1800:U:U DS:allvms_mem_pvt_pc:GAUGE:1800:U:U DS:allvms_mem_shr_pc:GAUGE:1800:U:U DS:allvms_mem_bal_pc:GAUGE:1800:U:U DS:allvms_mem_swp_pc:GAUGE:1800:U:U RRA:AVERAGE:0.5:1:8640 RRA:AVERAGE:0.5:12:9480 RRD Update Command $RRDTOOL$ update $RRDNAME$ -t mem_free_pc:console_mem_pc:allvms_mem_pvt_pc:allvms_mem_shr_pc:allvms_mem_bal_pc:allvms_mem_swp_pc $LASTCHECK$:$VALUE1$:$VALUE2$:$VALUE3$:$VALUE4$:$VALUE5$:$VALUE6$ 2>&1 Custom RRDtool Graph Command '' Enable ON Any ideas or words of wisdom would be much appreciated. Jerry Sipes sipesjr@fotf.org |
|
| Author: | jsipes [ Thu Jul 17, 2008 1:07 am ] |
| Post subject: | Re: check_esx_gw,RRD, and Groundwork |
Update: I have been digging and see check_esx3 has Merged in GW additions. Moving to check_esx3. Also I am testing this on ESX 3.5 I am using your code from vmware-monitoring-beta2. Jerry Sipes |
|
| Author: | jsipes [ Fri Jul 18, 2008 7:09 am ] |
| Post subject: | Re: check_esx_gw,RRD, and Groundwork |
update: I have it working! I found a couple of spaces in my create RRD Update, but that did not fix it. I ran the RRD create manually and reset permissions. That created the graphs. /usr/local/groundwork/bin/rrdtool create /usr/local/groundwork/rrd/test01_check_esx3.rrd --step 300 --start n-1yr DS:mem_free_pc:GAUGE:1800:U:U DS:console_mem_pc:GAUGE:1800:U:U DS:allvms_mem_pvt_pc:GAUGE:1800:U:U DS:allvms_mem_shr_pc:GAUGE:1800:U:U DS:allvms_mem_bal_pc:GAUGE:1800:U:U DS:allvms_mem_swp_pc:GAUGE:1800:U:U RRA:AVERAGE:0.5:1:8640 RRA:AVERAGE:0.5:12:9480 I'm not sure why the Performance Configuration Administration entry did not work. It is work for all other graphs. Jerry Sipes |
|
| Page 1 of 1 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|