Nagios adds characters to SQL Data from VBS Script
Posted: Tue Jan 06, 2015 5:14 am
Hi,
I'm using a Backup Exec VBS script, http://exchange.nagios.org/directory/Pl ... ec/details, to query if a Backup Job has failed. The script works fine but the output from Nagios adds in extra characters wherever there is a space in the SQL output.
In the output below, the string 'Error on backup job' is inserted by the VBS script just as a string, while 'Job Failed' comes from a SQL query.
Running the script locally
Executing the script from Nagios
It looks like when the script is executed from Nagios it adds ' '=0 around every word which is separated by a space. Although this is only for results which are returned from SQL.
Nagios Core 4.0.8
NSClient 0.4.1.105
Thanks for any help.
I'm using a Backup Exec VBS script, http://exchange.nagios.org/directory/Pl ... ec/details, to query if a Backup Job has failed. The script works fine but the output from Nagios adds in extra characters wherever there is a space in the SQL output.
In the output below, the string 'Error on backup job' is inserted by the VBS script just as a string, while 'Job Failed' comes from a SQL query.
Running the script locally
Code: Select all
C:\Program Files\NSClient++\scripts>cscript be_test.vbs
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Error on backup job | Job FailedCode: Select all
[root@nagios sysadmin]# /usr/local/nagios/libexec/check_nrpe -H xx.xx.xx.xx -c be_test
Error on backup job |'Job'=0 'Failed'=0Nagios Core 4.0.8
NSClient 0.4.1.105
Thanks for any help.