question regarding disk monitoring

"Loic Domaigne" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Net-SNMP gurus, 

I would like to monitor the partition of my system using the DISMAN event MIB capabilities. Here what I like to achieve:

1- for some known file systems mounted at server boot time, I want to issue two kind of traps:
    (*) if file system is > X% full, a trap corresponding to a warning situation is sent.
    (*) if file system is > Y% full, a trap corresponding to an alarm situation is sent. 
Here X, and Y depends on the file systems. 

2- for the remaining file systems known when the Agent is started, a default policy applies: 
    (*) if file system is > 90% full, a trap corresponding to a warning situation is sent.
    (*) if file system is > 95% full, a trap corresponding to an alarm situation is sent.

I could implement 1) as follows: 

####
# monitor: /tmp
# policy : warning at 90%, alarm at 95%
disk /tmp 10%
monitor -i -r 60 -o dskPath.1 -o dskErrorMsg.1 "disk1WS" dskPercent.1 >= 90
monitor -i -r 60 -o dskPath.1 -o dskErrorMsg.1 "disk1AS" dskPercent.1 >= 95

# define all given FS similarly to /tmp
# ...

where "disk1WS" means "disk partition #1, warning set"
      "disk1AS" means "disk partition #1, alarm set" 

The trap receiver knows what to do depending on the trigger name. 

Now, my question is how I implement the "default policy". I could perhaps define something like:

# define default policy
# 
includeAllDisks 10
monitor -r 60 -o dskPath -o dskErrorMsg "diskDefaultWS" dskPercent >= 90
monitor -r 60 -o dskPath -o dskErrorMsg "diskDefaultAS" dskPercent >= 95

But the question is: what does happen if 1) and 2) are combined? Will the traps be generated as wanted for the file system defined in the disk sections and the default policy shall apply for the rest?

Or will the default policy overrides the specialized policies? If so, how can I achieve the wanted results? 


Thanks in advance,
Loic.

-- 
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.