check_nrpe strange interpretation of output string
Posted: Thu Nov 27, 2014 9:24 am
I use Nagios XI 2014R2 on CentOS to monitor Windows server host using NSClient+ 4.1.105. I develop my own diagnostics scripts in PowerShell and I've discovered strange thing...
If my script writes output message:
then check_nrpe called from the command line returns correct
BUT if my script writes output message that contains pipe symbol ''|' for performance data:
then check_nrpe called from the command line returns strange result:
Does anybody knows what is wrong? Thank you for help.
If my script writes output message:
Code: Select all
Write-Host "Warn:dfdsfd dfsf`n dffd""Code: Select all
Warn:dfdsfd dfsf
dffdCode: Select all
Write-Host "Warn:dfdsfd | dfsf`n dffd"Code: Select all
Warn:dfdsfd |'dfsf
'=0 'dffd'=0