oh, so under such condition RRD_STORAGE_TYPE=MULTIPLE should be a good
choice:)
On Sun, Oct 24, 2010 at 6:06 PM, Joerg Linge <pitchfork@...> wrote:
> http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN201
>
> A value of "U" is not allowed.
>
> See point 8
>
> quote:
> value, min and max in class [-0-9.]. Must all be the same UOM
>
> Joerg
>
> Am 24.10.10 11:05, schrieb fancyrabbit:
> > imho the plugin should output Test is UNKNOWN|data1=U data2=0.5;2;4
> > data3=1.5;3;5
> > rrdtool update supports 'U' as unknown value, but pnp4nagios doesn't.
> > my solution is change the _parse subroutine in process_perfdata.pl, add
> the
> > match for unknown values, as below:
> >
> > $string =~
> >
> s/^([^=]+)=([\d\.\-]+|U)([\w\/%]*);?([\d\.\-:~@]+)?;?([\d\.\-:~@]+)?;?([\d\.\-]+)?;?([\d\.\-]+)?;?\s*//;
> >
> >
> > On Thu, Aug 5, 2010 at 6:59 PM, Joerg Linge <pitchfork@...>
> wrote:
> >
> >> Am 05.08.10 10:51, schrieb Marc-André Doll:
> >>> Hi all,
> >>
> >> Hi Marc-Andre
> >>
> >>> It's the first time I'm posting to this list, so please excuse me if
> I'm
> >>> doing something wrong.
> >>>
> >>> First, thank you all for the great job you're doing. Pnp4Nagios is an
> >>> amazing tool.
> >>
> >> Thank you very much!
> >>
> >>> I'm writing for a little suggestion. I don't know if it is in the dev
> >>> pipes but I think this could be useful and could make Pnp more 'error
> >>> proof'.
> >>>
> >>> Currently, when RRD files are created, the DS take some integer ID with
> >>> the same order they appear, and they are updated the same way.
> >>
> >> Correct! Thats called RRD storage type "SINGLE" and is the default
> >> behavior.
> >> http://docs.pnp4nagios.org/pnp-0.6/tpl_custom#rrd_storage_type
> >>
> >> A single RRD file per service.
> >>
> >>> The problem is that some nagios plugins just drop some perfdata
> >>> definition if they aren't able to determine their value. For example :
> >>>
> >>> $ my_plugin.sh
> >>> Test is OK | data1=1;2;3 data2=0;2;4 data3=1;3;5
> >>>
> >>> [... some time ...]
> >>>
> >>> $ my_plugin.sh
> >>> Test is UNKNOWN: no data for data1 | data2=0.5;2;4 data3=1.5;3;5
> >>>
> >>> The result is that, inside the RRD file, datais updated with the data2
> >>> value, data2 is updated with the data3 value and data3 is not updated.
> >>>
> >>> Isn't it possible to use perfdata labels instead of integer IDs for DS
> >>> names? I know RRD handles alphanumerical values as DS names and this
> >>> should provide Pnp a more error proof process for updates and graphs
> >>> generation.
> >>
> >> DS names are limited to 19 chars in RRDtool but the perfdata format is
> not
> >> limited.
> >>
> >>> That's just a suggestion. Please forgive me if I missed something that
> >>> makes it useless or redundant.
> >>
> >> IMHO a better way is to use one RRD file per DS.
> >>
> >> Cheers,
> >> Joerg
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> The Palm PDK Hot Apps Program offers developers who use the
> >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> >> of $1 Million in cash or HP Products. Visit us here for more details:
> >> http://p.sf.net/sfu/dev2dev-palm
> >> _______________________________________________
> >> Pnp4nagios-devel mailing list
> >> Pnp4nagios-devel@...
> >> https://lists.sourceforge.net/lists/listinfo/pnp4nagios-devel
> >>
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> > Create new apps & games for the Nokia N8 for consumers in U.S. and
> Canada
> > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> > http://p.sf.net/sfu/nokia-dev2dev
> >
> >
> >
> > _______________________________________________
> > Pnp4nagios-devel mailing list
> > Pnp4nagios-devel@...
> > https://lists.sourceforge.net/lists/listinfo/pnp4nagios-devel
>
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Pnp4nagios-devel mailing list
> Pnp4nagios-devel@...
> https://lists.sourceforge.net/lists/listinfo/pnp4nagios-devel
>
|