Issue with special characters
Posted: Sun Mar 27, 2016 1:33 am
Hi,
I'm experiencing a strange issue with one of my service checks.
I need to search for a pattern inside a file. The patter is "[]" .
If I execute the plugin locally on the machine - it works.
Running it from Nagios is returns an error: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
I'm pretty sure its related some how to special characters issue. For some reason it looks like using NRPE it doesn't allow special characters.
I tried to use '\' to escape the special charachters but it didn't really help. Is there another way to handle this issue?
check_nrpe_file_content2!/home/log/production.log!\[\]!0!1
I'm experiencing a strange issue with one of my service checks.
I need to search for a pattern inside a file. The patter is "[]" .
If I execute the plugin locally on the machine - it works.
Running it from Nagios is returns an error: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
I'm pretty sure its related some how to special characters issue. For some reason it looks like using NRPE it doesn't allow special characters.
I tried to use '\' to escape the special charachters but it didn't really help. Is there another way to handle this issue?
check_nrpe_file_content2!/home/log/production.log!\[\]!0!1