When testing a check command using the test button in ccm I found that there are characters being escaped.
when checking a soap server with the Argument -u "/api/customer?wsdl"
The ? gets replaced bij \?
I found this being done in: html/includes/components/ccm/command_test.php
bij the php command escapeshellcmd.
This test check wil return a 400 invalid request whilst the real nagios check will be executed correctly by nagioscore.
2 possible fixes:
- remove the escapeshellcmd
- remove the escaped characters in check_http
nagiosxi ccm test check command fix
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nagiosxi ccm test check command fix
I am going to have the CCM developer take a look at this
Re: nagiosxi ccm test check command fix
From doing some digging on this, it looks like the command may be able to work using escapeshellarg() instead of escapeshellcmd(). I'll update the functions calls for the next release.