BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} bbgen RSS alert on yellow?



In <200407271043.20693.misty@borkholder.com> Misty Stanley-Jones <misty@borkholder.com> writes:

>Can I make yellow alerts show up in the RSS as well as red ones?

Short answer: No.

Longer answer: Yes, but you will have to modify bbgen's "rssgen.c"
file to pick up the yellow hosts. Around line 109-111 of that file
looks like this:

    109                 if (h->hostentry->color == COL_RED) {
    110                         for (e=h->hostentry->entries; (e); e=e->next) {
    111                                 if (e->color == COL_RED) {

You must change that to

    109                 if ((h->hostentry->color >= COL_YELLOW) {
    110                         for (e=h->hostentry->entries; (e); e=e->next) {
    111                                 if (e->color >= COL_YELLOW) {

Rebuild bbgen, and you should have the red and yellow hosts in
the rss feed.
-- 
Henrik Storner
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index