Here is the tests based on what you've reported:
I'm on the Nagios XI host 192.168.1.142.
Code: Select all
./check_http -H 192.168.1.142 -u /nagiosxi/login.php -s login -f follow
HTTP OK: HTTP/1.1 200 OK - 17387 bytes in 0.093 second response time |time=0.092827s;;;0.000000 size=17387B;;;0
I have another Nagios XI host on 192.168.1.11. I'm still logged onto 192.168.1.142 so lets try 192.168.1.11 testing 192.168.1.142.
Code: Select all
./check_http -H 192.168.1.11 -u http://192.168.1.142/nagiosxi/login.php -s login -f follow
HTTP OK: HTTP/1.1 200 OK - 17169 bytes in 0.134 second response time |time=0.133549s;;;0.000000 size=17169B;;;0
And for one last test I have a third Nagios XI server on 192.168.1.123.
So from 192.168.1.142 I issue a check to 192.168.1.11 to test the url on 192.168.1.123
Code: Select all
./check_http -H 192.168.1.11 -u http://192.168.1.123/nagiosxi/login.php -s login -f follow
HTTP OK: HTTP/1.1 200 OK - 17169 bytes in 0.136 second response time |time=0.136324s;;;0.000000 size=17169B;;;0
Everything seems to be working as expected.