Unable to curl against cmd.cgi
Posted: Thu Nov 19, 2020 3:28 am
I am running this command
when I run the command I get;
[Environmental Information]
OS: CentOS Linux release 8.2.2004 (Core)
WebServer: nginx version: nginx/1.17.8
Nagios: Ver 4.4.6
Is there any solution?
Code: Select all
curl -s -S http://nagios.example.com/nagios/cgi-bin/cmd.cgi -u nagiosadmin:nagios -d "cmd_typ=22&host=localhost&service=SSH"
Code: Select all
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.17.8</center>
</body>
</html>
OS: CentOS Linux release 8.2.2004 (Core)
WebServer: nginx version: nginx/1.17.8
Nagios: Ver 4.4.6
Is there any solution?