Nagiosxi 2024R1.1.5 will not upgrade on OL7.9, so I built a new server, configured OL9.4, restored/migrated from the original server backup file. All of the other service checks appear to be working normally. The check_x224 is currently the only one that is not working.
The RDP check - /usr/local/nagios/libexec/check_x224 fails with the following error message:
# /usr/local/nagios/libexec/check_x224 -h
File "/usr/local/nagios/libexec/check_x224", line 90
if l_setup_received <> l_expected_short and l_setup_received <> l_expected_long:
^
SyntaxError: invalid syntax
I can run the same -help command on the original server, received the following output:
# /usr/local/nagios/libexec/check_x224 -h
Usage: check_x224 [-h|--help] -H hostname [-p|--port port] [-w|--warning seconds] [-c|--critical seconds]
port : tcp port to connect to; default: 3389
warning seconds : number of seconds that an RDP response may take without
emitting a warning; default: 3
critical seconds: number of seconds that an RDP response may take without
emitting status=critical; default: 50
The original server (OL7.x) is using python 2.7.5 and the new server (OL9.X) has python 3.9.18 installed.
Nagiosxi 2024R1.1.5 check_x224 failing after migration to OL9
-
- Posts: 199
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Nagiosxi 2024R1.1.5 check_x224 failing after migration to OL9
Hi @fieldsa,
OL 7 has python 2, OL 9 has python 3.
The version of the plugin you are using works for python 2, but not python 3. The author offers this version compatible with python 3. https://github.com/tart/tart-monitoring ... ck_x224.py . In your shoes I would replace the existing with the new, after appropriate testing of course.
If you are curious about the history of python operators https://stackoverflow.com/questions/167 ... -in-python
Aaron
OL 7 has python 2, OL 9 has python 3.
The version of the plugin you are using works for python 2, but not python 3. The author offers this version compatible with python 3. https://github.com/tart/tart-monitoring ... ck_x224.py . In your shoes I would replace the existing with the new, after appropriate testing of course.
If you are curious about the history of python operators https://stackoverflow.com/questions/167 ... -in-python
Aaron
Re: Nagiosxi 2024R1.1.5 check_x224 failing after migration to OL9
@DoubleDoubleA - Thank you! I will give this a try.