Checking Windows Backup (ntbackup)
Anthony Montibello
amontibello at gmail.com
Tue Mar 30 00:49:50 CEST 2010
HI List,
Other option for monitoring backups:
1) if the backup lists in a director use a FIleAge check
2) if the backup lists to Event Logs, do an eventlog Check
3) custom scripts as specified before.
There are several ways to do Fileage and Eventlogs,
NC_Net and NSCLient++ should be able to provide both of these
Tony
Author of NC_Net
On Mon, Mar 29, 2010 at 7:12 AM, Joseph L. Casale <jcasale at activenetwerx.com
> wrote:
> >Care to share your scripts?
>
> Most of the scripts are rather site specific, but here
> are some relevant parts (In this script, I let the passive
> check deduce the failure, others I send a CRITICAL update,
> just test for $LastExitCode -ne "0"):
>
>
> $NTBackupDest = 'C:\Temp\Remote_SystemState.bkf'
> $NTBackupList = 'C:\Scripts\Backup\rsyncd\SystemState.bks'
> $NTBackupParam = 'backup' + ' ' + '"@' + $NTBackupList + '"' +
> ' /n "DC - SystemState" /d "DC - SytemState" /v:yes /r:no
> /rs:no /hc:off /m normal /j "DC - SystemState" /l:f /f ' +
> '"' + $NTBackupDest + '"'
>
> $NagiosSrv = '10.0.0.21'
> $TrapGenDef = 'Daily Backup - System State'
>
> Write-Host "*** Informing Nagios a backup has begun ***" -foregroundcolor
> Yellow -backgroundcolor Black
> $TrapParam = '-d' + ' ' + $NagiosSrv + ':162' + ' ' + '-c public -g 5 -s 23
> -v 1.3.6.1.4.1.1824.1.0.0.1 STRING' + ' ' +
> '"' + $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' +
> ' ' + '"' + "Running Backup - $(Get-Date)" + '"'
> cmd /c "TrapGen.exe $TrapParam"
>
> cmd /c "ntbackup.exe $NTBackupParam"
> If ($LASTEXITCODE -ne "0") { Write-Host "NTBackup Failed, LastExitCode:
> $LastExitCode" -foregroundcolor Red -backgroundcolor Black; Exit
> $LASTEXITCODE }
>
>
> My trap parsing script is a super hacked up version of this script:
> http://www.frank4dd.com/howto/nagios/windows-reboot-monitoring-nagios.htm
>
>
> Hth,
> jlc
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100329/9ec10fa1/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list