Re: [Nagios-users] Help with creating a pnp4nagios template
On 29 June 2010 22:37, Mirza Dedic wrote: > I was hoping someone out there can help me here, below is my perfdata output > for checking disk space on remote Win32/64 servers that have NSClient++ > installed. > > The perfdata received is in the format of: 'C:'=35.62G;3.99;1.99;0;39.98; > ... > Can someone give me an example of a rrd template I would use for this so > that I can build off it? I use check_nt rather than check_nrpe so this one might need some tweaking: http://www.pnp4nagios.org) # Template für check_nt -v USEDDISKSPACE -l # $Id: check_nt_disk.php 367 2008-01-23 18:10:31Z pitchfork $ # # # # RRDtool Options $opt[1] = "--vertical-label GB -u $MAX[1] -l 0 --title \"Used Diskspace for $hostname / $servicedesc\" "; # # # Graph Definitions $def[1] = "DEF:var1=$rrdfile:1:AVERAGE "; $def[1] .= "AREA:var1#c6c6c6: "; $def[1] .= "LINE1:var1#003300: "; $def[1] .= "HRULE:$MAX[1]#003300:\"Capacity $MAX[1]GB \" "; $def[1] .= "HRULE:$WARN[1]#00:\"Warning on $WARN[1]GB \" "; $def[1] .= "HRULE:$CRIT[1]#ff:\"Critical on $CRIT[1]GB \\n\" "; $def[1] .= "GPRINT:var1:LAST:\"%6.2lf GB Last \\n\" "; $def[1] .= "GPRINT:var1:MIN:\"%6.2lf GB Min \\n\" "; $def[1] .= "GPRINT:var1:MAX:\"%6.2lf GB Max \\n\" "; $def[1] .= "GPRINT:var1:AVERAGE:\"%6.2lf GB Average \" "; ?> -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Help with creating a pnp4nagios template
Hi, I was hoping someone out there can help me here, below is my perfdata output for checking disk space on remote Win32/64 servers that have NSClient++ installed. The perfdata received is in the format of: 'C:'=35.62G;3.99;1.99;0;39.98; The command used to query the C:\ is: define command{ command_name check_nrpe_disk command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -n -p 12778 -t 30 -c CheckDriveSize -a Drive=$ARG1$ ShowAll=long MinWarnFree=$ARG2$ MinCritFree=$ARG3$ } For my MinWarnFree and MinCritFree, I define a % to warn/crit for minimum allowed space. Can someone give me an example of a rrd template I would use for this so that I can build off it? It would be greatly appreciated, thank you. The Oppenheimer Group CONFIDENTIAL This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null