Hello,
well you could do a
ALLCLIENTS=$HOBBITSERVERHOME/bin/bb 127.0.0.1 "hobbitdboard"|awk -F\| '{print $1}'|sort -u|wc -l
to get all clients that actually report to your server.
As second step do a INSTCLIENTS=$HOBBITSERVERHOME/bin/bb 127.0.0.1 "hobbitdboard test=cpu"|awk -F\| '{print $1}'|sort -u|wc -l
to get all clients that have client installed monitoring. I assume if a client is installed then it also reports a cpu status.
Finally do CLIENTLESS=$((ALLCLIENTS-INSTCLIENTS)).
However, clients polled via SNMP are also show the cpu status but have no client installed. But I hope to have helped you a bit.
Cheers Torsten Hi, Is there better way of reporting this?
Purpose: to report how many active client and client-less monitoring are done by hobbit.
My method: 1. for client installed monitoring, count the number of /home/hobbit/data/rrd/*/vmstat.rrd that are recent (ie. newer than a date file created earlier, say 5am)
2. for client-less monitoring, count the number of latest /home/hobbit/data/histlogs/*/conn/ or /home/hobbit/data/histlogs/*/http/ (if both exist, then count only one) that are recent (see def. above). (some clients may not be pingable; multiple web pages on the same server should be counted only once).
Thanks, Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free!
Hi.
For some customers, we use the html_mail.pl script from Xymonton. But we have problems with the background color being wrong quite often. The subject and icons are correct, but sometimes the background color is, for example, clear or blue when it should be red. Is anyone else using this script and experiencing the same problem? Do you know what the cause might be? I'm no perl guru, but I cannot find any problems in the script.
Regards, Johan Sjöberg
Johan Sjöberg schrieb:
Hi.
For some customers, we use the html_mail.pl script from Xymonton. But we have problems with the background color being wrong quite often. The subject and icons are correct, but sometimes the background color is, for example, clear or blue when it should be red. Is anyone else using this script and experiencing the same problem? Do you know what the cause might be? I'm no perl guru, but I cannot find any problems in the script.
Regards, Johan Sjöberg
Hi,
change the message type to multipart/related (line 83)
Regards, Alex
Thanks for the tip.
I have, however, found another problem with the script. The message that is stored in the $BBALPHAMSG is truncated to a limited number of characters. That means, that if the red icon is too far down on the page, the script will not find it, and the color of the mail will be the "worst" one in the message that it receives.
So, is there any way to increase the size limit of the $BBALPHAMSG?
/Johan
-----Original Message----- From: Alexander Bech [mailto:alex at bakarasse.de] Sent: den 25 augusti 2009 11:00 To: hobbit at hswn.dk Subject: Re: [hobbit] Wrong color with html_mail.pl
Johan Sjöberg schrieb:
Hi.
For some customers, we use the html_mail.pl script from Xymonton. But we have problems with the background color being wrong quite often. The subject and icons are correct, but sometimes the background color is, for example, clear or blue when it should be red. Is anyone else using this script and experiencing the same problem? Do you know what the cause might be? I'm no perl guru, but I cannot find any problems in the script.
Regards, Johan Sjöberg
Hi,
change the message type to multipart/related (line 83)
Regards, Alex
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Thanks for the tip.
I have, however, found another problem with the script. The message that is stored in the $BBALPHAMSG is truncated to a limited number of characters. That means, that if the red icon is too far down on the page, the script will not find it, and the color of the mail will be the "worst" one in the message that it receives.
So, is there any way to increase the size limit of the $BBALPHAMSG?
I'm not sure if this can be done any other way, but you could increase the value of MAX_ALERTMSG_SCRIPTS in hobbitd/do_alert.c then recompile.
Regards,
Malcolm
-- Technical copy-editor & proofreader
KDE Proofreading Team KDE British English Translation Team
http://l10n.kde.org/team-infos.php?teamcode=en_GB
Facebook: http://www.facebook.com/FriendlyAtheist
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
participants (4)
-
alex@bakarasse.de
-
bb4@richter-it.net
-
johan.sjoberg@deltamanagement.se
-
malcolm.hunter@gmx.co.uk