Retain last output

Marcel mitsuto at gmail.com
Thu Nov 19 19:24:12 CET 2009


Hi,

On Thu, Nov 19, 2009 at 4:15 PM, Flyinvap <flyinvap at orange.fr> wrote:

> I would like to use last output and last performance data from a
> service in a plugin . The $SERVICEOUTPUT$ and $SERVICEPERFDATA$ macros
> contain this but a said in the doc :
>
> " These macros are not valid for the service they are associated with
> when that service is being checked (i.e. they make no sense, as they
> haven't been determined yet). "
>
> So when the plugin is executed, these macros are empty. How can I
> retrieve these data. I would like to avoid using temporaries files.
>
> Any idea ?
>

You can setup a memcached to hold the last status information for all
services, and a perfdata command or whatever wrapper to input data to
memcache.

Cheers,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091119/2d758d16/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-------------- next part --------------
_______________________________________________
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