<div>HI List,</div>
<div> </div>
<div>Other option for monitoring backups:</div>
<div>1) if the backup lists in a director use a FIleAge check</div>
<div>2) if the backup lists to Event Logs, do an eventlog Check</div>
<div>3) custom scripts as specified before.</div>
<div> </div>
<div>There are several ways to do Fileage and Eventlogs,</div>
<div>NC_Net and NSCLient++ should be able to provide both of these </div>
<div> </div>
<div>Tony</div>
<div>Author of NC_Net<br><br></div>
<div class="gmail_quote">On Mon, Mar 29, 2010 at 7:12 AM, Joseph L. Casale <span dir="ltr"><<a href="mailto:jcasale@activenetwerx.com">jcasale@activenetwerx.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">>Care to share your scripts?<br><br></div>Most of the scripts are rather site specific, but here<br>are some relevant parts (In this script, I let the passive<br>check deduce the failure, others I send a CRITICAL update,<br>
just test for $LastExitCode -ne "0"):<br><br><br>$NTBackupDest = 'C:\Temp\Remote_SystemState.bkf'<br>$NTBackupList = 'C:\Scripts\Backup\rsyncd\SystemState.bks'<br>$NTBackupParam = 'backup' + ' ' + '"@' + $NTBackupList + '"' +<br>
                ' /n "DC - SystemState" /d "DC - SytemState" /v:yes /r:no /rs:no /hc:off /m normal /j "DC - SystemState" /l:f /f ' +<br>                '"' + $NTBackupDest + '"'<br>
<br>$NagiosSrv = '10.0.0.21'<br>$TrapGenDef = 'Daily Backup - System State'<br><br>Write-Host "*** Informing Nagios a backup has begun ***" -foregroundcolor Yellow -backgroundcolor Black<br>$TrapParam = '-d' + ' ' + $NagiosSrv + ':162' + ' ' + '-c public -g 5 -s 23 -v 1.3.6.1.4.1.1824.1.0.0.1 STRING' + ' ' +<br>
            '"' + $TrapGenDef + '"' + ' ' + '-v 1.3.6.1.4.1.1824.1.0.0.2 STRING WARNING -v 1.3.6.1.4.1.1824.1.0.0.3 STRING' +<br>                    ' ' + '"' + "Running Backup - $(Get-Date)" + '"'<br>
cmd /c "TrapGen.exe $TrapParam"<br><br>cmd /c "ntbackup.exe $NTBackupParam"<br>If ($LASTEXITCODE -ne "0") { Write-Host "NTBackup Failed, LastExitCode: $LastExitCode"  -foregroundcolor Red -backgroundcolor Black; Exit $LASTEXITCODE }<br>
<br><br>My trap parsing script is a super hacked up version of this script:<br><a href="http://www.frank4dd.com/howto/nagios/windows-reboot-monitoring-nagios.htm" target="_blank">http://www.frank4dd.com/howto/nagios/windows-reboot-monitoring-nagios.htm</a><br>
<br><br>Hth,<br><font color="#888888">jlc<br></font>
<div>
<div></div>
<div class="h5"><br>------------------------------------------------------------------------------<br>Download Intel&#174; Parallel Studio Eval<br>Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>See why Intel Parallel Studio got high marks during beta.<br><a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></div></div></blockquote></div><br>