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

RE: [cobalt-developers] cube2 disk space monitor (any one) some reply be nice.



> I am looking for the place in the config that sets the threshold at which
> the status monitor for disk space triggers Yellow and later Red
>
> I have up-graded to the latest cobalt security patches etc. and now I see
> an constant yellow warning that my disk / dir is full.
>
> Filesystem         1024-blocks  Used Available Capacity Mounted on
> /dev/hda1             297508  239117    58391     80%   /
> /dev/hda3             198275    6515   191760      3%   /var
> /dev/hda4            3446834    9551  3437283      0%   /home
>
> Its annoying me.
>
> Can some one tell me the location of the config file so I can fix this
> threshold.
>
> Thanks Barry



Well Barry, demanding the answer doesn't get you very far.  But...

For your Qube2, all of the Cobalt Specific variables live here:
/usr/lib/perl5/site_perl/Cobalt/Product_wg.pm

So I found it like this:
[root@shaqfu Cobalt]# grep -n 80 Product_wg.pm
516:$DiskYel    = 80;  # If a disk is more than this percent full, yellow
alert

This shows that the relevant line # 516.
So, editing this line will change it.

But, you also must change this value in all of the autoloader files.  We set
these statically to save memory & speed up our perl modules.  So you must
also change all of these lines:

[root@shaqfu Group]# cd /usr/lib/perl5/site_perl/auto/Cobalt/Group
[root@shaqfu Group]# grep -n DiskYel `find
/usr/lib/perl5/site_perl/auto/Cobalt` 2>&1 | grep my
/usr/lib/perl5/site_perl/auto/Cobalt/Language_english/msg_get_message.al:669
:my $DiskYel = "80";
/usr/lib/perl5/site_perl/auto/Cobalt/Language_japanese/msg_get_message.al:9:
my $DiskYel = "80";
/usr/lib/perl5/site_perl/auto/Cobalt/Messages/msg_get_message.al:8:my
$DiskYel = "80";
/usr/lib/perl5/site_perl/auto/Cobalt/Messages_eng/msg_get_message.al:9:my
$DiskYel = "80";
/usr/lib/perl5/site_perl/auto/Cobalt/Messages_jpn/msg_get_message.al:9:my
$DiskYel = "80";
/usr/lib/perl5/site_perl/auto/Cobalt/Repair/repair_examine.al:12:my $DiskYel
= "80";
/usr/lib/perl5/site_perl/auto/Cobalt/Repair/repair_get_message.al:9:my
$DiskYel = "80";
/usr/lib/perl5/site_perl/auto/Cobalt/Repair/repair_get_message.al:33:    my
$DiskYel=$DiskYel;
[root@shaqfu Group]#

If you don't change these lines, you won't see any difference.  If the
output from grep above doesn't make any sense to you, don't try it.  Make
backups of all files that you alter.  This change will not be supported, so
don't ask support for help.  Do this at your own risk!

Finally you might have to restart the admin server.
[root@shaqfu Group]# /etc/rc.d/init.d/admserv.init restart
Shutting down admserv: ahttpd
Starting admserv: ahttpd
[root@shaqfu Group]#


--Stew Smith
Cobalt Networks