Curl command does not work

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Curl command does not work

Post by kwhogster »

My curl command does not work

root@tgcs017:/usr/local/nagios/etc/objects/nasstorage# curl -d "cmd_typ=55&cmd_mod=2&host=tgcs015&com_data=TestingDowntime&trigger=0&start_time=09-15-2020 09:00:00&end_time=09-15-2020 09:40:00&fixed=1&childoptions=0&btnSubmit=Commit" "http://10.12.18.79/nagios/cgi-bin" -u "nagios:password95"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://10.12.18.79/nagios/cgi-bin/">here</a>.</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at 10.12.18.79 Port 80</address>
</body></html>


Any ideas?
Locked