-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/02/08 10:16 AM, Tom Wlodek wrote:
> Ladies and gentlemen,
> 
> I have a service running on nagios server and I would like to submit
> passive test results from a client script.
> 
> I see that nagios has an interface to submit those results:
> 
> https://my.nagios.com/nagios/cgi-bin/cmd.cgi?
> cmd_typ=30&host=my.host.com&service=nagios+test+service&
> 
> I go there and I see a form. All it takes is to fill this form and then
> clic submit.
> 
> So I figured out that if I embed the form fields in URL and then load
> the URL then I will effectively submit the form. So I do:
> 
> https://my.nagios.com/nagios/cgi-bin/cmd.cgi?
> cmd_typ=30&host=my.host.com&service=nagios+test
> +service&plugin_state=3&plugin_output=pluginOuttput&performance_data=test&btnSubmit=Commit
> 
> I load this page - and nothing happens.

The reason it doesn't work if because it is a POST request. You actually
have to send the fields in the content of the request (and the url may
be different, usually without any URL fields as they can go in the
request body). You should read more about the HTTP protocol if you want
to understand how it works.

Although, as other have already said, NSCA is likely what you want...

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHqpkz6dZ+Kt5BchYRArKEAKCjGkmyp9DvLm52C0W+E1qo/8lGxQCfc6pN
HZITp+4yO8j2S6Ts/DDny2w=
=F3/q
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to