Nagios for Windows DPM

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
sc_
Posts: 1
Joined: Mon Oct 05, 2020 9:46 am

Nagios for Windows DPM

Post by sc_ »

Hi,

Im currently trying to use nagios for monitoring a DPM Windows Server 2012 R2, but i recieve this when i run the check:


***> One or more problems was encountered while running the pre-flight check...

Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

im using a powershell script with nsclient:

import-module DataProtectionManager
$dpmserver = connect-dpmserver (&hostname) -WarningAction:SilentlyContinue
$dpmserver.alertcontroller.refreshalerts()
Wait-Event -timeout 15
$alerts = @($dpmserver.AlertController.ActiveAlerts.Values)
$warnings = $alerts | where-object {$_.Severity -eq "Warning"} | Measure-Object | select count
$errors = $alerts | where-object {$_.Severity -like "Error"} | Measure-Object | select count
if ($errors.count -ne 0) {
$status = "Error - One or more error conditions exist and backups need to be checked."
$returnCode = 2
}
elseif ($warnings.count -ne 0) {
$status = "Warning - One or more warning conditions exist. Log onto DPM server to check the status."
$returnCode = 1
}
else {
$status = "OK"
$returnCode = 0
}
write-host $status
exit $returnCode

Does anybody have an idea of what can i do to fix the error?
Thanxs!
Locked