check_http with limits
Christoph Maser
cm at financial.com
Fri Nov 21 14:48:44 CET 2003
Hi,
i wrote a http-post-module which we use to call a remote program via a
jsp and return STDOUT and STDERR. i attached a basic skeleton of it you
can easily modefiy to do exactly what you want. just check for
$query_string and modify the if ($result = "blablabl") at the top to
match your conditions.
chris
Steve wrote:
> I posted this to the user list without any response sorry for the cross
> post but this list seems more suitable for this request..
>
> Hello,
>
> Searching now for a way to use nagios to monitor a http post command
> which returns a numeric value (memory) to be exact its a java component
> that I can monitor via a http admin, a link within the admin returns
> just a single value for each topic..
>
> I would like the response viewable within the nagios web and if it
> exceeds the numeric value of x would then shoot a error, a plus would be
> able to have nagios monitor/log the levels. Considering MRTG to graph
> results..
>
> Example:
>
> http://ip:port/query?component=memory
>
> returns me
>
> 100
>
> if anything > than 500 returns I get an alert.
>
> Again a plus would be to log the level at every check.
>
> -steve
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
--
financial.com AG
Maria-Probst-Straße 19 Tel.: ++49(0)89/318528-44
D- 80939 München Fax.: ++49(0)89/318528-28
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: http_check.pl
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20031121/dbd067f4/attachment.pl>
More information about the Developers
mailing list