If dbcheck slow mode activated, XYmon becomes purple
Hi,
I'm using dbcheck.pl to monitor my Oracle database but check them every 30min produce too much overload. I used dhcheck slow mode (every 2h) but this a way too long for my Hobbit server : the db color switch to purple. Is there a way to define the among of time before the server switch to purple? Any other ideas is also welcome on dbcheck tweaks.
Thanks by advance,
LMJ
Hi,
By default, the status lifetime is 20 or 30 minutes.
TO change it, you have to edit the dbcheck.pl script and seek the status line and add a new time: "status+XXXXX" (XXXX is in seconds). In your case 2h = 7200 seconds. You can add a little more to be sure it won't be purple ... 7400 for instance (status+7400).
Hope it will help you.
Regards, Nico
On Thu, 12 Mar 2009 20:55:23 +0100, "L.M.J" <linuxmasterjedi at free.fr> wrote:
Hi,
I'm using dbcheck.pl to monitor my Oracle database but check them every 30min produce too much overload. I used dhcheck slow mode (every 2h) but this a way too long for my Hobbit server : the db color switch to purple. Is there a way to define the among of time before the server switch to purple? Any other ideas is also welcome on dbcheck tweaks.
Thanks by advance,
LMJ
if you read the dbcheck documentation, there are values you can specify in the dbcheck.ini to specify the status lifetime.
i.e. fastcheck = 45m mediumcheck = 3h slowcheck = 18h
On Thursday 12 March 2009 17:46:12 nico wrote:
Hi,
By default, the status lifetime is 20 or 30 minutes.
TO change it, you have to edit the dbcheck.pl script and seek the status
line and add a new time: "status+XXXXX" (XXXX is in seconds).
In your case 2h = 7200 seconds. You can add a little more to be sure it
won't be purple ... 7400 for instance (status+7400).
Hope it will help you.
Regards,
Nico
On Thu, 12 Mar 2009 18:03:49 -0400, "s_aiello at comcast.net" <devurrr at gmail.com> wrote:
if you read the dbcheck documentation, there are values you can specify in the dbcheck.ini to specify the status lifetime.
i.e. fastcheck = 45m mediumcheck = 3h slowcheck = 18h
Hi,
Well, I already checked it. Thanks anyway ;)
On Thursday 12 March 2009 17:46:12 nico wrote:
Hi, By default, the status lifetime is 20 or 30 minutes.
TO change it, you have to edit the dbcheck.pl script and seek the status line and add a new time: "status+XXXXX" (XXXX is in seconds). In your case 2h = 7200 seconds. You can add a little more to be sure it won't be purple ... 7400 for instance (status+7400). Hope it will help you.
Thanks for your answers!
So far, I have this at the moment :
From my etc/hobbitlaunch.cfg [dbchecknormal] ENVFILE /foo/bar/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl LOGFILE $BBSERVERLOGS/bb-dbcheck.log INTERVAL 30m [dbcheckslow] ENVFILE /foo/bar/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl slow LOGFILE $BBSERVERLOGS/bb-dbslow.log INTERVAL 4h
My etc/dbcheck.ini [default] fastcheck = 10m mediumcheck = 30m slowcheck = 4h And finally from my etc/bb-hosts 0.0.0.0 dbfoo1 # noconn dbchecknormal 0.0.0.0 dbfoo2 # noconn dbchecknormal 0.0.0.0 dbfoo3 # noconn dbcheckslow 0.0.0.0 dbfoo4 # noconn dbcheckslow
What's wrong with my configuration? All databases checked with dbcheckslow become purple after a while. From what you said, I have to edit dbcheck.pl and modify status+XXXXX" ?
Hello.
I have a slight problem with the msgs test.
This is what shows up in the client data: [msgs:/var/log/messages] Cannot open logfile /var/log/messages : Permission denied
But these are the permissions for the /var/log/messages: -rwxr-x--- 1 root admin 216864 Mar 13 12:19 /var/log/messages
And as you see, hobbit is a member of the admin group
id hobbit
uid=504(hobbit) gid=505(hobbit) groups=505(hobbit),506(admin)
And the hobbit client is indeed running as that user (output from ps, unneccesary parts omitted) hobbit 3781 [...] /usr/libexec/hobbit/client/bin/hobbitlaunch [..]
Any ideas?
Regards, Benedikt
Hi
Could you check the rights of the directory /var/log/ Maybe hobbit can t go inside.
Regards
Nico
Le 13 mars 09 à 14:13, Benedikt Kristinsson <benedikt at utrad.is> a
écrit :
Hello.
I have a slight problem with the msgs test.
This is what shows up in the client data: [msgs:/var/log/messages] Cannot open logfile /var/log/messages : Permission denied
But these are the permissions for the /var/log/messages: -rwxr-x--- 1 root admin 216864 Mar 13 12:19 /var/log/messages
And as you see, hobbit is a member of the admin group
id hobbit
uid=504(hobbit) gid=505(hobbit) groups=505(hobbit),506(admin)
And the hobbit client is indeed running as that user (output from
ps, unneccesary parts omitted) hobbit 3781 [...] /usr/libexec/hobbit/client/bin/hobbitlaunch [..]Any ideas?
Regards, Benedikt
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Type namei -m /var/log
On 3/13/09, Nico <nico at crysto.org> wrote:
Hi
Could you check the rights of the directory /var/log/ Maybe hobbit can t go inside.
Regards
Nico
Le 13 mars 09 à 14:13, Benedikt Kristinsson <benedikt at utrad.is> a écrit :
Hello.
I have a slight problem with the msgs test.
This is what shows up in the client data: [msgs:/var/log/messages] Cannot open logfile /var/log/messages : Permission denied
But these are the permissions for the /var/log/messages: -rwxr-x--- 1 root admin 216864 Mar 13 12:19 /var/log/messages
And as you see, hobbit is a member of the admin group
id hobbit
uid=504(hobbit) gid=505(hobbit) groups=505(hobbit),506(admin)
And the hobbit client is indeed running as that user (output from ps, unneccesary parts omitted) hobbit 3781 [...] /usr/libexec/hobbit/client/bin/hobbitlaunch [..]
Any ideas?
Regards, Benedikt
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
I have a slight problem with the msgs test.
This is what shows up in the client data: [msgs:/var/log/messages] Cannot open logfile /var/log/messages : Permission denied
But these are the permissions for the /var/log/messages: -rwxr-x--- 1 root admin 216864 Mar 13 12:19 /var/log/messages
And as you see, hobbit is a member of the admin group
id hobbit
uid=504(hobbit) gid=505(hobbit) groups=505(hobbit),506(admin)
And the hobbit client is indeed running as that user (output from ps, unneccesary parts omitted) hobbit 3781 [...] /usr/libexec/hobbit/client/bin/hobbitlaunch [..]
Any ideas?
Silly question: You have tried restarting the daemon, haven't you?
By the way, you don't want execute permission on the messages file.
Malcolm
-- Technical copy-editor & proofreader
KDE Proofreading Team KDE British English Translation Team
http://l10n.kde.org/team-infos.php?teamcode=en_GB
Nur bis 16.03.! DSL-Komplettanschluss inkl. WLAN-Modem für nur 17,95 ¿/mtl. + 1 Monat gratis!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
On Fri, 2009-03-13 at 17:05 +0100, Malcolm Hunter wrote:
I have a slight problem with the msgs test.
This is what shows up in the client data: [msgs:/var/log/messages] Cannot open logfile /var/log/messages : Permission denied
But these are the permissions for the /var/log/messages: -rwxr-x--- 1 root admin 216864 Mar 13 12:19 /var/log/messages
And as you see, hobbit is a member of the admin group
id hobbit
uid=504(hobbit) gid=505(hobbit) groups=505(hobbit),506(admin)
And the hobbit client is indeed running as that user (output from ps, unneccesary parts omitted) hobbit 3781 [...] /usr/libexec/hobbit/client/bin/hobbitlaunch [..]
Any ideas?
Silly question: You have tried restarting the daemon, haven't you?
By the way, you don't want execute permission on the messages file.
Malcolm
hobbit had rights to read both into /var and /var/log
Looks like it worked after i restarted the client. But why? Doenst hobbit try to read /var/log/messages every time it sends the client data?
Benedikt
Looks like it worked after i restarted the client. But why? Doenst hobbit try to read /var/log/messages every time it sends the client data?
When you add a user to a group, the change doesn't take effect until next time the user logs in. Until the daemon was restarted, the user was still logged in using the old credentials (i.e. not a member of the admin group).
Malcolm
-- Technical copy-editor & proofreader
KDE Proofreading Team KDE British English Translation Team
http://l10n.kde.org/team-infos.php?teamcode=en_GB
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
Hi, the fast/medium/slow check are related to what check you will do (and not the time you do them).
This is my configuration on checks on the dbcheck.ini bbconncolumn = ChkConn::fast bbauditcolumn = Audit::fast bbtablespacecolumn = TblSpace::fast bbextentcolumn = Extent::slow bbhitcachecolumn = HitCache::fast bbmemreqcolumn = MemReq::fast bbrollbackcolumn = RollBack::slow bbinvobjcolumn = InvObj::fast bblockscolumn = Locks::fast bbsessioncolumn = Session::fast
For example I use them to differentiate the checks on the same databases In hobbitlaunch I have: [dbfast] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl fast LOGFILE $BBSERVERLOGS/bb-dbfast.log INTERVAL 5m [dbslow] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl slow LOGFILE $BBSERVERLOGS/bb-dbslow.log INTERVAL 120m
So [dbfast] will run only checks defined as "fast" in the dbcheck.ini files every 5 minutes while [dbslow] will run every 2 hours to check Extent and Rollback (those kind of checks are more impegnative on the Database and take a long times on some of the database I check).
On the bb-hosts file I've: group-compress Dev DB 0.0.0.0 db1 # noconn dbcheck 0.0.0.0 db2 # noconn dbcheck 0.0.0.0 db3 # noconn dbcheck 0.0.0.0 db4 # noconn dbcheck
The configuration related to how much a check is "valid" for xymon is already in the dbcheck.ini file and must be at least greater than the interval you run the checks + the duration of the test or xymon will put the check in purple.
In your case what is happening depends on how you configured the checks by default (fast/medium/slow) but it can happen that you're simply running the same checks at different interval and with different "valid" time.
The value of fastcheck = 30m mediumcheck = 2h slowcheck = 6h is put already on the status+xx (so there's no need to manually edit it) of the 3 different kind of checks (so if you're doing the slow checks you're getting status+6h for example with this value).
To check what value you're getting go to the page of the checks (for example in the tablespace check page) and go to the bottom of the page you will find something like this:
dbcheck.pl version 1.07 - column TblSpace lifetime 30m, tested in ~ 00:00:00 (max 01:00:00)
for a check defined as slow like the Rollback for me you see something like this: dbcheck.pl version 1.07 - column RollBack lifetime 6h, tested in ~ 00:02:10 (max 01:00:00)
Hoping this helped.
Francesco
-----Original Message----- From: L.M.J [mailto:linuxmasterjedi at free.fr] Sent: Friday, March 13, 2009 8:49 AM To: hobbit at hswn.dk Subject: Re: [hobbit] If dbcheck slow mode activated, XYmon becomes purple
On Thu, 12 Mar 2009 18:03:49 -0400, "s_aiello at comcast.net" <devurrr at gmail.com> wrote:
if you read the dbcheck documentation, there are values you can specify in the dbcheck.ini to specify the status lifetime.
i.e. fastcheck = 45m mediumcheck = 3h slowcheck = 18h
Hi,
Well, I already checked it. Thanks anyway ;)
On Thursday 12 March 2009 17:46:12 nico wrote:
Hi, By default, the status lifetime is 20 or 30 minutes.
TO change it, you have to edit the dbcheck.pl script and seek the status line and add a new time: "status+XXXXX" (XXXX is in seconds). In your case 2h = 7200 seconds. You can add a little more to be sure it won't be purple ... 7400 for instance (status+7400). Hope it will help you.
Thanks for your answers!
So far, I have this at the moment :
Le Fri, 13 Mar 2009 19:40:45 +0100, Francesco Duranti <fduranti at q8.it> a écrit :
Hi, the fast/medium/slow check are related to what check you will do (and not the time you do them).
This is my configuration on checks on the dbcheck.ini bbconncolumn = ChkConn::fast bbauditcolumn = Audit::fast bbtablespacecolumn = TblSpace::fast bbextentcolumn = Extent::slow bbhitcachecolumn = HitCache::fast bbmemreqcolumn = MemReq::fast bbrollbackcolumn = RollBack::slow bbinvobjcolumn = InvObj::fast bblockscolumn = Locks::fast bbsessioncolumn = Session::fast
For example I use them to differentiate the checks on the same databases In hobbitlaunch I have: [dbfast] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl fast LOGFILE $BBSERVERLOGS/bb-dbfast.log INTERVAL 5m [dbslow] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl slow LOGFILE $BBSERVERLOGS/bb-dbslow.log INTERVAL 120m
So [dbfast] will run only checks defined as "fast" in the dbcheck.ini files every 5 minutes while [dbslow] will run every 2 hours to check Extent and Rollback (those kind of checks are more impegnative on the Database and take a long times on some of the database I check).
On the bb-hosts file I've: group-compress Dev DB 0.0.0.0 db1 # noconn dbcheck 0.0.0.0 db2 # noconn dbcheck 0.0.0.0 db3 # noconn dbcheck 0.0.0.0 db4 # noconn dbcheck
The configuration related to how much a check is "valid" for xymon is already in the dbcheck.ini file and must be at least greater than the interval you run the checks + the duration of the test or xymon will put the check in purple.
In your case what is happening depends on how you configured the checks by default (fast/medium/slow) but it can happen that you're simply running the same checks at different interval and with different "valid" time.
The value of fastcheck = 30m mediumcheck = 2h slowcheck = 6h is put already on the status+xx (so there's no need to manually edit it) of the 3 different kind of checks (so if you're doing the slow checks you're getting status+6h for example with this value).
To check what value you're getting go to the page of the checks (for example in the tablespace check page) and go to the bottom of the page you will find something like this:
dbcheck.pl version 1.07 - column TblSpace lifetime 30m, tested in ~ 00:00:00 (max 01:00:00)
for a check defined as slow like the Rollback for me you see something like this: dbcheck.pl version 1.07 - column RollBack lifetime 6h, tested in ~ 00:02:10 (max 01:00:00)
Hoping this helped.
Francesco
Hi Francesco,
Thanks you for this great answer, I will custom my dbcheck.ini like you did. Thanks a bunch !
Hi,
On Fri, 13 Mar 2009 19:40:45 +0100, Francesco Duranti <fduranti at q8.it> wrote:
Hi, the fast/medium/slow check are related to what check you will do (and not the time you do them).
This is my configuration on checks on the dbcheck.ini bbconncolumn = ChkConn::fast bbauditcolumn = Audit::fast bbtablespacecolumn = TblSpace::fast bbextentcolumn = Extent::slow bbhitcachecolumn = HitCache::fast bbmemreqcolumn = MemReq::fast bbrollbackcolumn = RollBack::slow bbinvobjcolumn = InvObj::fast bblockscolumn = Locks::fast bbsessioncolumn = Session::fast
For example I use them to differentiate the checks on the same databases In hobbitlaunch I have: [dbfast] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl fast LOGFILE $BBSERVERLOGS/bb-dbfast.log INTERVAL 5m [dbslow] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl slow LOGFILE $BBSERVERLOGS/bb-dbslow.log INTERVAL 120m
So [dbfast] will run only checks defined as "fast" in the dbcheck.ini files every 5 minutes while [dbslow] will run every 2 hours to check Extent and Rollback (those kind of checks are more impegnative on the Database and take a long times on some of the database I check).
On the bb-hosts file I've: group-compress Dev DB 0.0.0.0 db1 # noconn dbcheck 0.0.0.0 db2 # noconn dbcheck 0.0.0.0 db3 # noconn dbcheck 0.0.0.0 db4 # noconn dbcheck
Did you mean something like this : group-compress Dev DB 0.0.0.0 db1 # noconn dbfast 0.0.0.0 db2 # noconn dbslow 0.0.0.0 db3 # noconn dbfast 0.0.0.0 db4 # noconn dbslow
Put dbslow or dbfast instead of dbcheck ?
I think there's some misunderstanding on how dbcheck will work (it's probably my fault I'm not really good at English and also not really good at writing documentation :).
First of all you've to use dbcheck as hobbit test and not something else like dbfast or dbslow because this will only define what host will be checked, nothing more. So you will have this in you bb-hosts file: group-compress Dev DB 0.0.0.0 db1 # noconn dbcheck 0.0.0.0 db2 # noconn dbcheck 0.0.0.0 db3 # noconn dbcheck 0.0.0.0 db4 # noconn dbcheck
Then you will define the interval you will run fast and slow check (if you want you can also run medium-length check with dbcheck.pl medium). For example you can run fast check every 5 minutes and slow check every 2 hours in this way: [dbfast] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl fast LOGFILE $BBSERVERLOGS/bb-dbfast.log INTERVAL 5m [dbslow] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl slow LOGFILE $BBSERVERLOGS/bb-dbslow.log INTERVAL 120m
In this case every 5 minutes and every 2 hours the dbcheck.pl will be called but with a different paramenters. So what's a fast or a slow check? It's something you've to define in the dbcheck.ini file (if you don't like the default). The default is: fast for ChkConn, Audit, TblSpace, HitCache, MemReq, InvObj, Locks, Sessions slow for Extent, RollBack
This implies that if you don't change the configuration every 5 minutes the fast check will run and every 2 hours only the slow check will run with the exception of ChkConn (the connection check) that will run always (because it will simply check the connection status to the database).
Normally you can define what are your fast checks and what are your slow checks in the default section of the dbcheck.ini so, if you for example want to define the InvObj as a slow check (because you don't want to run it every 5 minutes but it's ok for you tu run it every 2 hours) you can define it in the dbcheck.ini in this way:
bbinvobjcolumn = InvObj::Slow If you don't want to run the locks check on the database you can define it like: bblockscolumn = Locks::notest
The definition in the [default] section of the dbcheck.ini file is valid for all database but you can change it later for a specific database. For example you can run the MemReq as slow for db1 and db3 and don't check for InvObj for db3 in this way: [db1] dbtype = Oracle sid = dbsid username = username password = password bbmemreqcolumn = MemReq::Slow [db3] dbtype = Oracle sid = dbsid username = username password = password bbmemreqcolumn = MemReq::Slow bbinvobjcolumn = InvObj::notest
So at the end if you want to run tests only in "slow" call of dbcheck for a database you have to define all the test with "::slow" in the specific database configuration. Normally I think you would like at least to test the database for connection/tablespace/sessions every 5 minutes so that if you have a problem (connection, space problems or session running out) you're immediately informed.
The locks, extent and rollback checks can be really time and resource consuming so they can run in a slow configuration.
Remember to define the time the checks are valid in the dbcheck.ini and use a time bigger than the interval+runtime (normally at least 2 time the interval is good but also a higher interval can be good). I use this and I run fast check every 5 minutes and slow checks every 2 hours: fastcheck = 30m mediumcheck = 2h slowcheck = 6h
I think this is almost all regarding how to define the checks to be done by dbcheck.
I hope this helped to clarify a bit the lacks in the documentation of dbcheck :) Let me know if this helped :)
Francesco
-----Original Message----- From: L.M.J [mailto:linuxmasterjedi at free.fr] Sent: Monday, March 16, 2009 9:07 AM To: hobbit at hswn.dk Subject: RE: [hobbit] If dbcheck slow mode activated, XYmon becomes purple
Hi,
On Fri, 13 Mar 2009 19:40:45 +0100, Francesco Duranti <fduranti at q8.it> wrote:
Hi, the fast/medium/slow check are related to what check you will do (and not the time you do them).
This is my configuration on checks on the dbcheck.ini bbconncolumn = ChkConn::fast bbauditcolumn = Audit::fast bbtablespacecolumn = TblSpace::fast bbextentcolumn = Extent::slow bbhitcachecolumn = HitCache::fast bbmemreqcolumn = MemReq::fast bbrollbackcolumn = RollBack::slow bbinvobjcolumn = InvObj::fast bblockscolumn = Locks::fast bbsessioncolumn = Session::fast
For example I use them to differentiate the checks on the same databases In hobbitlaunch I have: [dbfast] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl fast LOGFILE $BBSERVERLOGS/bb-dbfast.log INTERVAL 5m [dbslow] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl slow LOGFILE $BBSERVERLOGS/bb-dbslow.log INTERVAL 120m
So [dbfast] will run only checks defined as "fast" in the dbcheck.ini files every 5 minutes while [dbslow] will run every 2 hours to check Extent and Rollback (those kind of checks are more impegnative on the Database and take a long times on some of the database I check).
On the bb-hosts file I've: group-compress Dev DB 0.0.0.0 db1 # noconn dbcheck 0.0.0.0 db2 # noconn dbcheck 0.0.0.0 db3 # noconn dbcheck 0.0.0.0 db4 # noconn dbcheck
Did you mean something like this : group-compress Dev DB 0.0.0.0 db1 # noconn dbfast 0.0.0.0 db2 # noconn dbslow 0.0.0.0 db3 # noconn dbfast 0.0.0.0 db4 # noconn dbslow
Put dbslow or dbfast instead of dbcheck ?
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Hooo, got it, let me try this out!
On Thu, 19 Mar 2009 01:42:59 +0100, Francesco Duranti <fduranti at q8.it> wrote:
I think there's some misunderstanding on how dbcheck will work (it's probably my fault I'm not really good at English and also not really good at writing documentation :).
First of all you've to use dbcheck as hobbit test and not something else like dbfast or dbslow because this will only define what host will be checked, nothing more. So you will have this in you bb-hosts file: group-compress Dev DB 0.0.0.0 db1 # noconn dbcheck 0.0.0.0 db2 # noconn dbcheck 0.0.0.0 db3 # noconn dbcheck 0.0.0.0 db4 # noconn dbcheck
Then you will define the interval you will run fast and slow check (if you want you can also run medium-length check with dbcheck.pl medium). For example you can run fast check every 5 minutes and slow check every 2 hours in this way: [dbfast] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl fast LOGFILE $BBSERVERLOGS/bb-dbfast.log INTERVAL 5m [dbslow] ENVFILE /home/bb/server/etc/hobbitserver.cfg NEEDS hobbitd CMD $BBHOME/ext/dbcheck.pl slow LOGFILE $BBSERVERLOGS/bb-dbslow.log INTERVAL 120m
In this case every 5 minutes and every 2 hours the dbcheck.pl will be called but with a different paramenters. So what's a fast or a slow check? It's something you've to define in the dbcheck.ini file (if you don't like the default). The default is: fast for ChkConn, Audit, TblSpace, HitCache, MemReq, InvObj, Locks, Sessions slow for Extent, RollBack
This implies that if you don't change the configuration every 5 minutes the fast check will run and every 2 hours only the slow check will run with the exception of ChkConn (the connection check) that will run always (because it will simply check the connection status to the database).
Normally you can define what are your fast checks and what are your slow checks in the default section of the dbcheck.ini so, if you for example want to define the InvObj as a slow check (because you don't want to run it every 5 minutes but it's ok for you tu run it every 2 hours) you can define it in the dbcheck.ini in this way:
bbinvobjcolumn = InvObj::Slow If you don't want to run the locks check on the database you can define it like: bblockscolumn = Locks::notest
The definition in the [default] section of the dbcheck.ini file is valid for all database but you can change it later for a specific database. For example you can run the MemReq as slow for db1 and db3 and don't check for InvObj for db3 in this way: [db1] dbtype = Oracle sid = dbsid username = username password = password bbmemreqcolumn = MemReq::Slow [db3] dbtype = Oracle sid = dbsid username = username password = password bbmemreqcolumn = MemReq::Slow bbinvobjcolumn = InvObj::notest
So at the end if you want to run tests only in "slow" call of dbcheck for a database you have to define all the test with "::slow" in the specific database configuration. Normally I think you would like at least to test the database for connection/tablespace/sessions every 5 minutes so that if you have a problem (connection, space problems or session running out) you're immediately informed.
The locks, extent and rollback checks can be really time and resource consuming so they can run in a slow configuration.
Remember to define the time the checks are valid in the dbcheck.ini and use a time bigger than the interval+runtime (normally at least 2 time the interval is good but also a higher interval can be good). I use this and I run fast check every 5 minutes and slow checks every 2 hours: fastcheck = 30m mediumcheck = 2h slowcheck = 6h
I think this is almost all regarding how to define the checks to be done by dbcheck.
I hope this helped to clarify a bit the lacks in the documentation of dbcheck :) Let me know if this helped :)
Francesco
participants (7)
-
benedikt@utrad.is
-
devurrr@gmail.com
-
fduranti@q8.it
-
josh@imaginenetworksllc.com
-
linuxmasterjedi@free.fr
-
malcolm.hunter@gmx.co.uk
-
nico@crysto.org