More decimal strangeness

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

More decimal strangeness

Post by WillemDH »

Hello,

Noticed today some strange perfdata results for some my services. I'm 100 % sure I pass a number with three decimals with a Powershell script to the perfdata and the description. In the description, the variable has three decimals. In the perfdata advanced tab this same datasource which is sent through Powershell has sometimes 3, sometimes 5 decimals. See attached screenshot where you can clearly see three of the 5 enclosures giving 5 decimals and two 3 decimals, while they use the same plugin and have the same service config.
NAGIOS XI Advanced tab enclosure 1:

Code: Select all

'Total Power'=2.761kW, 'PSU1'=696W, 'PSU2'=686W, 'PSU3'=690W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=689W
NAGIOS XI Advanced tab enclosure 1, 15 minutes later:

Code: Select all

'Total Power'=2.76399kW, 'PSU1'=696W, 'PSU2'=661W, 'PSU3'=690W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=717W
As I use this datasource in a NagVis map, i'm sometimes getting 5 decimals, while I sent 3 decimals, which is very confusing.... I aslo attached a screenshot of Troy's perfdata tool with a snapshot of one of the enclosure power service rrd.

Wouldn't it be logical to put the decision of how many decimals are used in the plugin and not in Nagios? At this time I seem to have no control about how many decimals are used....

Please advice.

Grtz

Willem
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: More decimal strangeness

Post by tgriep »

Can you provide which plugin you are using and how it is setup?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: More decimal strangeness

Post by Box293 »

WillemDH wrote:In the perfdata advanced tab this same datasource which is sent through Powershell has sometimes 3, sometimes 5 decimals.
It this is happening then I believe it's the powershell script that is sending 3 or 5 decimals as the output on the Advanced tab is from the last run of the plugin (it has not be altered by Nagios or the performance data operations).

Data using the Performance Data Tool will always have lots of decimals as thats what happens to the data as it's inserted into the RRD files, calculations go on.

Check your powershell scrip and make sure it's formatting the numbers before sending the results:

https://technet.microsoft.com/en-us/lib ... 92795.aspx

Code: Select all

$a = 5.136353463
$a = "{0:N3}" -f $a

$a will now equal 5.136
If you still have problems post your script here.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: More decimal strangeness

Post by WillemDH »

Hey Troy,

It's a script that connects to a Fujitsu blade enclosure, gets all the power consumption values of each psu, and returns the sum of them all. it is not on the Nagios Exchange as I doubt a lot of people would need it. The offical Fujitsu plugin does not return power consumption correctly, so I made this as a workaround.

Code: Select all

# Script name:   	check_fts_enclosure_power.ps1
# Version:			0.15.01.16
# Created on:    	16/01/2015																			
# Author:        	D'Haese Willem
# Purpose:       	Queries FTS enclosure for power consumption on BX900S1
# Recent History:       	
# 	16/01/2015 => Creation date
#	17/01/2015 => Cleanup, using credential file
# Copyright:
#	This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published
#	by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed 
#	in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
#	PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public 
#	License along with this program.  If not, see <http://www.gnu.org/licenses/>.

#Requires –Version 3.0

# check Pscx PowerShell Module
If ((Import-Module Pscx -MinimumVersion 3.1 -PassThru) -eq $null) {
	Throw "Prereq: Pscx PowerShell Module 3.1 missing"
}

Import-Module "C:\Program Files\NSClient++\modules\Posh-SSH\Posh-SSH.psd1" -force

$PowerStruct = New-Object PSObject -Property @{
    Hostname = [string]"Unknown";
    ExitCode = [int]3;
	Psu1State = [string]"Unknown";
	Psu2State = [string]"Unknown";
	Psu3State = [string]"Unknown";
	Psu4State = [string]"Unknown";
	Psu5State = [string]"Unknown";
	Psu6State = [string]"Unknown";
	Psu1CurCons = [int]0;
	Psu2CurCons = [int]0;
	Psu3CurCons = [int]0;
	Psu4CurCons = [int]0;
	Psu5CurCons = [int]0;
	Psu6CurCons = [int]0;
	PsuTotalCons = [int]0;
    OutputString = [string]"UNKNOWN: Error processing, no data returned"
}


#region Functions

# Function to for illegal arguments

Function Process-Args {
    Param ( 
        [Parameter(Mandatory=$True)]$Args
    )
	
    try {
        For ( $i = 0; $i -lt $Args.count; $i++ ) { 
		    $CurrentArg = $Args[$i].ToString()
            if ($i -lt $Args.Count-1) {
				$Value = $Args[$i+1];
				If ($Value.Count -ge 2) {
					foreach ($Item in $Value) {
						Check-Strings $Item | Out-Null
					}
				}
				else {
	                $Value = $Args[$i+1];
					Check-Strings $Value | Out-Null
				}	                             
            } else {
                $Value = ""
            };

            switch -regex -casesensitive ($CurrentArg) {
                "^(-E|--Enclosure)$" {
					& ping -n 1 $Value | out-null
					if($? -eq $true) {				
						$PowerStruct.Hostname = $Value
						$i++
					}
					else {
						Write-Host "CRITICAL: Ping to $Value failed! Please provide valid reachable hostname!"
						exit 3
					}						
                }
                "^(-h|--Help)$" {
                    Write-Help
                }
                default {
                    throw "Illegal arguments detected: $_"
                }
            }
        }
    } catch {
		Write-Host "UNKNOWN: $_"
        Exit $TaskStruct.ExitCode
	}	
}

# Function to check strings for invalid and potentially malicious chars

Function Check-Strings {
    Param ( [Parameter(Mandatory=$True)][string]$String )
    # `, `n, |, ; are bad, I think we can leave {}, @, and $ at this point.
    $BadChars=@("``", "|", ";", "`n")
    $BadChars | ForEach-Object {
        If ( $String.Contains("$_") ) {
            Write-Host "Unknown: String contains illegal characters."
            Exit $TaskStruct.ExitCode
        }
    }
    Return $true
} 

function get-powerconsumption {
	$pw = Get-Content "C:\Program Files\NSCLient++\security\fts_user_pw.pw" | ConvertTo-SecureString
	
	$user = "ftsuser"
#	$ChassisCredentials = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $user, $pw
#	Write-Host "Password: $($ChassisCredentials.GetNetworkCredential().password)"
	
#	$pw = "password" | ConvertTo-SecureString -AsPlainText -Force
	$ChassisCredentials = New-Object System.Management.Automation.PSCredential($user,$pw)
	
#	Write-Host "User: 1) $user 2) $($ChassisCredentials.GetNetworkCredential().username) , Password: 1) $pw 2) $($ChassisCredentials.GetNetworkCredential().password)"
	try {
		$SSHs = New-SshSession -ComputerName $PowerStruct.Hostname -Credential $ChassisCredentials
	}
	catch {
		Write-Host "CRITICAL: SSH Connection failed!"
		exit 3
	}
	$Command = "show powerconsumption"
	$ShowPowerConsumption = (Invoke-SSHCommand -SSHSession $SSHs -Command $Command).Output.Split("`n")

	$PowerStruct.Psu1CurCons = [int](($ShowPowerConsumption | ? {$_ -match "PwrConsumptionPowerSupplyUnit1Current"}).Split("=")[1].split('W')[0])
	$PowerStruct.Psu2CurCons = [int](($ShowPowerConsumption | ? {$_ -match "PwrConsumptionPowerSupplyUnit2Current"}).Split("=")[1].split('W')[0])
	$PowerStruct.Psu3CurCons = [int](($ShowPowerConsumption | ? {$_ -match "PwrConsumptionPowerSupplyUnit3Current"}).Split("=")[1].split('W')[0])
	$PowerStruct.Psu4CurCons = [int](($ShowPowerConsumption | ? {$_ -match "PwrConsumptionPowerSupplyUnit4Current"}).Split("=")[1].split('W')[0])
	$PowerStruct.Psu5CurCons = [int](($ShowPowerConsumption | ? {$_ -match "PwrConsumptionPowerSupplyUnit5Current"}).Split("=")[1].split('W')[0])
	$PowerStruct.Psu6CurCons = [int](($ShowPowerConsumption | ? {$_ -match "PwrConsumptionPowerSupplyUnit6Current"}).Split("=")[1].split('W')[0])		
	
	$PowerStruct.PsuTotalCons = "{0:N3}" -f (([int]$PowerStruct.Psu1CurCons + [int]$PowerStruct.Psu2CurCons + [int]$PowerStruct.Psu3CurCons + [int]$PowerStruct.Psu4CurCons + [int]$PowerStruct.Psu5CurCons + [int]$PowerStruct.Psu6CurCons) / 1000)
	$PowerStruct.Outputstring = "OK: {Powerconsumption Enclosure $($PowerStruct.Hostname): (Total: $($PowerStruct.PsuTotalCons)kW)(PSU1: $($PowerStruct.Psu1CurCons)W)(PSU2: $($PowerStruct.Psu2CurCons)W)(PSU3: $($PowerStruct.Psu3CurCons)W)(PSU4: $($PowerStruct.Psu4CurCons)W)(PSU5: $($PowerStruct.Psu5CurCons)W)(PSU6: $($PowerStruct.Psu6CurCons)W)}"
	$PowerStruct.Outputstring += " | 'Total Power'=$($PowerStruct.PsuTotalCons)kW, 'PSU1'=$($PowerStruct.Psu1CurCons)W, 'PSU2'=$($PowerStruct.Psu2CurCons)W, 'PSU3'=$($PowerStruct.Psu3CurCons)W, 'PSU4'=$($PowerStruct.Psu4CurCons)W, 'PSU5'=$($PowerStruct.Psu5CurCons)W, 'PSU6'=$($PowerStruct.Psu6CurCons)W"

	Write-Host "$($PowerStruct.Outputstring)"	
		
	Remove-SSHSession -SSHSession $SSHs | Out-Null	
	exit 0
}

#endregion Functions

# Main block

# Reuse threads

if ($PSVersionTable){$Host.Runspace.ThreadOptions = 'ReuseThread'}

# Main function

if($Args.count -ge 1){
	Process-Args $Args
}
else {
	Write-Host "UNKNOWN: No parameters provided. Enclosure hostname or ip obligated!"
	exit $PowerStruct.ExitCode
}
	
get-powerconsumption

Write-Host "UNKNOWN: Script exited in an abnormal way! Please debug..."
exit $PowerStruct.ExitCode
As you can see in the code I am using "$PowerStruct.PsuTotalCons = "{0:N3}" -f (([int]$PowerStruct.Psu1CurCons + [int]$PowerStruct.Psu2CurCons + [int]$PowerStruct.Psu3CurCons + [int]$PowerStruct.Psu4CurCons + [int]$PowerStruct.Psu5CurCons + [int]$PowerStruct.Psu6CurCons) / 1000)"

and use this result in the description and in the perfdata. The output is always correct, with three decimals, the perfdata is sometimes three, sometimes 5 decimals. SO i reall doubt the issue is in the powershell script. Please correct me if I'm wrong. :)

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: More decimal strangeness

Post by lgroschen »

If the advanced tab in Nagios XI is displaying those it is the exact data that is return from the plugin output. So I'm guessing it's the plugin that needs to be adjusted.

Also I would check to make sure that "{0:N3}" is not just checking to ensure there are at least 3 decimals instead of limiting to 3.
/Luke
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: More decimal strangeness

Post by scottwilkerson »

Luke is correct, according to this doc
https://technet.microsoft.com/en-us/lib ... 92795.aspx

{0:N3} would be a MINIMUM level of precision, not limit the plugin from producing more than 3 decimal places
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: More decimal strangeness

Post by WillemDH »

Luke,

But how on earth can you explain that the output in the description of the service is correct? The same variable is used... :?:
If you are sure it is the plugin, I'll try debug some more and will write the output to a file for a few hours. I'll let you know how it goes.

Grtz
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: More decimal strangeness

Post by scottwilkerson »

Ya, let us know, I'd be interested to see the full "Outputstring" pushed to file for each check for a bit to see how many decimals are showing...

I'm certainly not a powershell guru, but I know that the results on the advanced tab on the service detail page should be exactly as nagios received the perfdata
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: More decimal strangeness

Post by Box293 »

This does look correctly formatted.

Code: Select all

$PowerStruct.PsuTotalCons = "{0:N3}" -f (([int]$PowerStruct.Psu1CurCons + [int]$PowerStruct.Psu2CurCons + [int]$PowerStruct.Psu3CurCons + [int]$PowerStruct.Psu4CurCons + [int]$PowerStruct.Psu5CurCons + [int]$PowerStruct.Psu6CurCons) / 1000)
Sometimes I like to break things up a bit instead of trying to make it all one command.

Give this a try:

Code: Select all

$PowerStructCalculatedPsuTotalCons = ([int]$PowerStruct.Psu1CurCons + [int]$PowerStruct.Psu2CurCons + [int]$PowerStruct.Psu3CurCons + [int]$PowerStruct.Psu4CurCons + [int]$PowerStruct.Psu5CurCons + [int]$PowerStruct.Psu6CurCons) / 1000
$PowerStruct.PsuTotalCons = "{0:N3}" -f $PowerStructCalculatedPsuTotalCons
Or even:

Code: Select all

$PowerStructCalculatedPsuTotalCons = [int]$PowerStruct.Psu1CurCons + [int]$PowerStruct.Psu2CurCons + [int]$PowerStruct.Psu3CurCons + [int]$PowerStruct.Psu4CurCons + [int]$PowerStruct.Psu5CurCons + [int]$PowerStruct.Psu6CurCons
$PowerStructCalculatedPsuTotalCons = $PowerStructCalculatedPsuTotalCons / 1000
$PowerStructCalculatedPsuTotalCons = "{0:N3}" -f $PowerStructCalculatedPsuTotalCons
$PowerStruct.PsuTotalCons = $PowerStructCalculatedPsuTotalCons
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: More decimal strangeness

Post by WillemDH »

Hey,

I'm truly sorry guys, but as I expected, the output of my script only has three decimals. Here is the log it created the last days:

Code: Select all

2015-01-25 13:52:55 : Outputstring: OK: {Powerconsumption Enclosure EnclSg04: (Total: 2,516kW)(PSU1: 835W)(PSU2: 857W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 824W)} | 'Total Power'=2,516kW, 'PSU1'=835W, 'PSU2'=857W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=824W
2015-01-25 13:55:27 : Outputstring: OK: {Powerconsumption Enclosure EnclOg01: (Total: 0,800kW)(PSU1: 255W)(PSU2: 265W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 280W)} | 'Total Power'=0,800kW, 'PSU1'=255W, 'PSU2'=265W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=280W
2015-01-25 13:57:59 : Outputstring: OK: {Powerconsumption Enclosure EnclOg02: (Total: 1,228kW)(PSU1: 395W)(PSU2: 423W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 410W)} | 'Total Power'=1,228kW, 'PSU1'=395W, 'PSU2'=423W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=410W
2015-01-25 13:58:13 : Outputstring: OK: {Powerconsumption Enclosure EnclSg03: (Total: 2,722kW)(PSU1: 693W)(PSU2: 715W)(PSU3: 622W)(PSU4: 0W)(PSU5: 0W)(PSU6: 692W)} | 'Total Power'=2,722kW, 'PSU1'=693W, 'PSU2'=715W, 'PSU3'=622W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=692W
2015-01-25 14:01:07 : Outputstring: OK: {Powerconsumption Enclosure EnclSg01: (Total: 2,736kW)(PSU1: 667W)(PSU2: 690W)(PSU3: 690W)(PSU4: 0W)(PSU5: 0W)(PSU6: 689W)} | 'Total Power'=2,736kW, 'PSU1'=667W, 'PSU2'=690W, 'PSU3'=690W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=689W
2015-01-25 14:02:53 : Outputstring: OK: {Powerconsumption Enclosure EnclSg04: (Total: 2,581kW)(PSU1: 876W)(PSU2: 857W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 848W)} | 'Total Power'=2,581kW, 'PSU1'=876W, 'PSU2'=857W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=848W
2015-01-25 14:05:26 : Outputstring: OK: {Powerconsumption Enclosure EnclOg01: (Total: 0,806kW)(PSU1: 258W)(PSU2: 266W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 282W)} | 'Total Power'=0,806kW, 'PSU1'=258W, 'PSU2'=266W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=282W
2015-01-25 14:07:57 : Outputstring: OK: {Powerconsumption Enclosure EnclOg02: (Total: 1,228kW)(PSU1: 395W)(PSU2: 423W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 410W)} | 'Total Power'=1,228kW, 'PSU1'=395W, 'PSU2'=423W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=410W
2015-01-25 14:08:11 : Outputstring: OK: {Powerconsumption Enclosure EnclSg03: (Total: 2,730kW)(PSU1: 697W)(PSU2: 719W)(PSU3: 622W)(PSU4: 0W)(PSU5: 0W)(PSU6: 692W)} | 'Total Power'=2,730kW, 'PSU1'=697W, 'PSU2'=719W, 'PSU3'=622W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=692W
2015-01-25 14:11:06 : Outputstring: OK: {Powerconsumption Enclosure EnclSg01: (Total: 2,707kW)(PSU1: 667W)(PSU2: 661W)(PSU3: 690W)(PSU4: 0W)(PSU5: 0W)(PSU6: 689W)} | 'Total Power'=2,707kW, 'PSU1'=667W, 'PSU2'=661W, 'PSU3'=690W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=689W
2015-01-25 14:12:53 : Outputstring: OK: {Powerconsumption Enclosure EnclSg04: (Total: 2,546kW)(PSU1: 870W)(PSU2: 857W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 819W)} | 'Total Power'=2,546kW, 'PSU1'=870W, 'PSU2'=857W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=819W
2015-01-25 14:15:25 : Outputstring: OK: {Powerconsumption Enclosure EnclOg01: (Total: 0,802kW)(PSU1: 257W)(PSU2: 265W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 280W)} | 'Total Power'=0,802kW, 'PSU1'=257W, 'PSU2'=265W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=280W
2015-01-25 14:17:58 : Outputstring: OK: {Powerconsumption Enclosure EnclOg02: (Total: 1,228kW)(PSU1: 393W)(PSU2: 425W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 410W)} | 'Total Power'=1,228kW, 'PSU1'=393W, 'PSU2'=425W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=410W
2015-01-25 14:18:10 : Outputstring: OK: {Powerconsumption Enclosure EnclSg03: (Total: 2,722kW)(PSU1: 693W)(PSU2: 715W)(PSU3: 622W)(PSU4: 0W)(PSU5: 0W)(PSU6: 692W)} | 'Total Power'=2,722kW, 'PSU1'=693W, 'PSU2'=715W, 'PSU3'=622W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=692W
2015-01-25 14:21:04 : Outputstring: OK: {Powerconsumption Enclosure EnclSg01: (Total: 2,768kW)(PSU1: 696W)(PSU2: 661W)(PSU3: 690W)(PSU4: 0W)(PSU5: 0W)(PSU6: 721W)} | 'Total Power'=2,768kW, 'PSU1'=696W, 'PSU2'=661W, 'PSU3'=690W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=721W
2015-01-25 14:22:53 : Outputstring: OK: {Powerconsumption Enclosure EnclSg04: (Total: 2,609kW)(PSU1: 870W)(PSU2: 886W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 853W)} | 'Total Power'=2,609kW, 'PSU1'=870W, 'PSU2'=886W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=853W
2015-01-25 14:25:23 : Outputstring: OK: {Powerconsumption Enclosure EnclOg01: (Total: 0,805kW)(PSU1: 257W)(PSU2: 266W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 282W)} | 'Total Power'=0,805kW, 'PSU1'=257W, 'PSU2'=266W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=282W
2015-01-25 14:27:57 : Outputstring: OK: {Powerconsumption Enclosure EnclOg02: (Total: 1,228kW)(PSU1: 393W)(PSU2: 425W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 410W)} | 'Total Power'=1,228kW, 'PSU1'=393W, 'PSU2'=425W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=410W
2015-01-25 14:28:09 : Outputstring: OK: {Powerconsumption Enclosure EnclSg03: (Total: 2,726kW)(PSU1: 693W)(PSU2: 715W)(PSU3: 622W)(PSU4: 0W)(PSU5: 0W)(PSU6: 696W)} | 'Total Power'=2,726kW, 'PSU1'=693W, 'PSU2'=715W, 'PSU3'=622W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=696W
2015-01-25 14:31:02 : Outputstring: OK: {Powerconsumption Enclosure EnclSg01: (Total: 2,732kW)(PSU1: 696W)(PSU2: 657W)(PSU3: 690W)(PSU4: 0W)(PSU5: 0W)(PSU6: 689W)} | 'Total Power'=2,732kW, 'PSU1'=696W, 'PSU2'=657W, 'PSU3'=690W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=689W
2015-01-25 14:32:50 : Outputstring: OK: {Powerconsumption Enclosure EnclSg04: (Total: 2,521kW)(PSU1: 840W)(PSU2: 857W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 824W)} | 'Total Power'=2,521kW, 'PSU1'=840W, 'PSU2'=857W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=824W
2015-01-25 14:35:21 : Outputstring: OK: {Powerconsumption Enclosure EnclOg01: (Total: 0,802kW)(PSU1: 257W)(PSU2: 265W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 280W)} | 'Total Power'=0,802kW, 'PSU1'=257W, 'PSU2'=265W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=280W
2015-01-25 14:37:54 : Outputstring: OK: {Powerconsumption Enclosure EnclOg02: (Total: 1,230kW)(PSU1: 395W)(PSU2: 425W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 410W)} | 'Total Power'=1,230kW, 'PSU1'=395W, 'PSU2'=425W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=410W
2015-01-25 14:38:07 : Outputstring: OK: {Powerconsumption Enclosure EnclSg03: (Total: 2,722kW)(PSU1: 693W)(PSU2: 715W)(PSU3: 622W)(PSU4: 0W)(PSU5: 0W)(PSU6: 692W)} | 'Total Power'=2,722kW, 'PSU1'=693W, 'PSU2'=715W, 'PSU3'=622W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=692W
2015-01-25 14:41:02 : Outputstring: OK: {Powerconsumption Enclosure EnclSg01: (Total: 2,741kW)(PSU1: 696W)(PSU2: 661W)(PSU3: 695W)(PSU4: 0W)(PSU5: 0W)(PSU6: 689W)} | 'Total Power'=2,741kW, 'PSU1'=696W, 'PSU2'=661W, 'PSU3'=695W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=689W
2015-01-25 14:42:47 : Outputstring: OK: {Powerconsumption Enclosure  EnclSg04: (Total: 2,521kW)(PSU1: 840W)(PSU2: 857W)(PSU3: 0W)(PSU4: 0W)(PSU5: 0W)(PSU6: 824W)} | 'Total Power'=2,521kW, 'PSU1'=840W, 'PSU2'=857W, 'PSU3'=0W, 'PSU4'=0W, 'PSU5'=0W, 'PSU6'=824W
Attached you can find a screenshot of the perfdata... The last line in the logfile is the log from the check in the screenshot. It says Total Power = 2,521, but in the perfdata it says 2,52099....

IPlease advice how to continue troubleshooting this.

Something must be causing this..., but it's not the Powershell plugin.. (as always please correct me if I'm wrong)

Grtz

Willem
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
Locked