Bluehost.com Web Hosting $6.95

Re: MSSql.MIB

This is a discussion on Re: MSSql.MIB within the SNMP Users forums, part of the Networking and Network Related category; On 26/03/2008, snmp girl <snmp.girl@gmail.com> wrote: > > OK - so what is the ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-27-2008
Dave Shield
 
Posts: n/a
Default Re: MSSql.MIB

On 26/03/2008, snmp girl <snmp.girl@gmail.com> wrote:
> > OK - so what is the MIB object that reports the size of each database?

>
> MIB : mssqlDbInfoSize
> OID: .1.3.6.1.4.1.311.1.4.1.1.6.1.5



The simplest approach is probably to write a little shell script
that does something like:

fired=0
n=3 # the index of the Db row you wish to monitor.
while true
do
size=`snmpget -Ov .... mssqkIDbInfoSize.$n`
if [ $size -gt 6000 ]
then
if [ ! $fired ]
then
snmptrap .....
fired=1
fi
else
fired=0
fi
done


There is a way to handle this from within the agent itself
(see the section on "Active Monitoring" in snmpd.conf(5)),
but there are currently problems with monitoring data
from subagents.
I suspect the script above (suitably adapted for your needs)
may be the simplest in the short term

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216...et/marketplace
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0