I am running Nagios XI 5.7.4 and monitoring a Windows 2016 server with the NCPA 2.2.2 client. After I add the host using thw Windows Server Wizard and force all checks the status reports with the letter "b" prepended.
Example: b"WARNING: Used disk space was 73.30 % (Used: 72.88 GiB, Free: 26.61 GiB, Total: 99.49 GiB)
If I run the checks manually on the command line I get the same result for the display response. Has anyone else seen this?
NCPA agent status prepends the letter b
Re: NCPA agent status prepends the letter b
I was unable to reproduce it, but there's evidence that it's being shown because somewhere along the line, Python3 is outputting it. Python2 won't output it.
You can see this behavior in action:
It's likely due to a bug in a Python script. Possibly because it glues a Unicode string and a byte string together into a byte string.
What's the full output of the following two commands?
I know some of the plugins have problems running under Python 3, so if you're using it as your default interpreter /usr/bin/python, it'll improve compatibility if you set it back to python2.
You can see this behavior in action:
Code: Select all
$ python3 -c 'print(b"hello")'
b'hello'
$ python2 -c 'print(b"hello")'
hello
What's the full output of the following two commands?
Code: Select all
python3 /usr/local/nagios/libexec/check_ncpa.py --H YOUR-WINDOWS-IP-HERE -t '1234' -P 5693 -M 'disk/logical/C:|' -w '70' -c '90'
Code: Select all
python2 /usr/local/nagios/libexec/check_ncpa.py --H YOUR-WINDOWS-IP-HERE -t '1234' -P 5693 -M 'disk/logical/C:|' -w '70' -c '90'
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.