How to submit passive test results from a script?
Aaron M. Segura
aaron.segura at cabelas.com
Wed Feb 6 16:23:31 CET 2008
On Wed, 2008-02-06 at 10:16 -0500, 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.
>
> How do you submit passive test results to nagios from scripts?
>
> Tom
Either via NSCA or External Commands.
Since you're local to the nagios server with this script, external
commands would probably be the way to go.
http://www.nagios.org/developerinfo/externalcommands/commandlist.php
Specifically:
http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=114
-------------------------------------------------------------------------
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 at 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
More information about the Users
mailing list