[Xymon] Best way to monitor for configuration value?
Ralph Mitchell
ralphmitchell at gmail.com
Sat Sep 22 03:47:39 CEST 2012
Xymon already tracks how long a test has been yellow, red, green, etc.
Just mouse over the colored dot... You can also get that info from the
xymon server. Check the xymon(1) man page for the "xymondboard" command.
Ralph Mitchell
On Fri, Sep 21, 2012 at 4:32 PM, Betsy Schwartz <betsy.schwartz at gmail.com>wrote:
> Thanks, that is very interesting, I did not know the features could be
> put together like that!
> don't think that will work though because it's not going to clear when
> the variable changes
>
> (I'm starting to imagine something sick and twisted that *would*....)
>
> anyway just for fun the requestor added a third requirement which is
> to track how long it's been yellow, so I am definitely doing a custom
> test (in anticipation of requirements #4...#n...)
>
>
> On Thu, Sep 20, 2012 at 7:45 PM, Jeremy Laidman
> <jlaidman at rebel-it.com.au> wrote:
> > On 21 September 2012 01:25, Betsy Schwartz <betsy.schwartz at gmail.com>
> wrote:
> >>
> >> To clarify:
> >>
> >> We are OK with having the configuration file changing, we are just
> >
> >
> > No problem.
> >
> >>
> >> New requirement:
> >> var=ON may or may not exist, this is the default state.
> >> we just need to go yellow if var=OFF
> >
> >
> > No problem.
> >
> >>
> >> Sounds like a custom test is what I need.
> >
> >
> > Nah, then you gotta deploy and manage the custom test on each of your
> client
> > hosts, and be sure to install it on any new hosts that come along. I
> hate
> > that.
> >
> > In client-local.cfg, add the following:
> > [name-of-client]
> > file:`grep -i "^var=OFF$" /path/to/file >/tmp/varcheck; echo
> > /tmp/varcheck`
> >
> > Then, in analysis.cfg, add the following:
> > HOST=name-of-client
> > FILE /tmp/varcheck YELLOW SIZE>0
> >
> > Won't that do what you need?
> >
> > J
> >
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120921/cff46cdb/attachment.html>
More information about the Xymon
mailing list