How to configure sending traps

James McGuire <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <94CDF89822C43D43AD5965687C204719983DD8@SRV10000EX01.intechnology.co.uk>
Hi there,

I've been trying to configure net-snmp to send a trap when the disk utilisation on any mount point reaches a certain threshold, say 80% of total capacity.

I've read the documentation here:

https://access.redhat.com/documentation ... eving.html<https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sect-System_Monitoring_Tools-Net-SNMP-Retrieving.html>

but when I attempt to review the available parameters in HOST-RESOURCES-MIB::hrStorage by issuing the following command, I get an error suggesting the table is not recognised:

> snmptable -Cb localhost HOST-RESOURCES-MIB::hrStorage
Was that a table? HOST-RESOURCES-MIB::hrStorage

Can anyone advise how I go about doing this with a 'monitor' statement inside of /etc/snmp/snmpd.conf? I also read the wiki here:

http://www.net-snmp.org/wiki/index.php/ ... Monitoring<http://www.net-snmp.org/wiki/index.php/TUT:DisMan_Monitoring>

But although there is a subsection on disk montioring, there is no related content to explain how to do this!

Eventually I need to get traps working for:


·         memory utilisation (send trap when memory utilisation > 80%)

·         cpu load averages (send trap when 5 minute load average is >= 100%)

·         process not running (send trap when httpd is no longer running).

·         Disk utilisation (send trap when any mount point is utilised > 80%)

Would appreciate some advice on how to do this as information online appears to be surprisingly scant and I'd expect this would be a very common requirement?

Many thanks,

James

====
Versions:

CentOS Linux release 7.1.1503 (Core)

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
net-snmp.x86_64 1:5.7.2-20.el7 @0-base
net-snmp-agent-libs.x86_64 1:5.7.2-20.el7 @0-base
net-snmp-libs.x86_64 1:5.7.2-20.el7 @0-base
net-snmp-utils.x86_64 1:5.7.2-20.el7 @0-base
Available Packages
net-snmp-agent-libs.i686 1:5.7.2-20.el7 0-base
net-snmp-devel.i686 1:5.7.2-20.el7 0-base
net-snmp-devel.x86_64 1:5.7.2-20.el7 0-base
net-snmp-gui.x86_64 1:5.7.2-20.el7 0-base
net-snmp-libs.i686 1:5.7.2-20.el7 0-base
net-snmp-perl.x86_64 1:5.7.2-20.el7 0-base
net-snmp-python.x86_64 1:5.7.2-20.el7 0-base
net-snmp-sysvinit.x86_64 1:5.7.2-20.el7 0-base

James McGuire
Infrastructure Support Engineer

redcentric
business technology. managed

Support: 0345 120 7070 or +44 1189 711582 from abroad
Email: [email protected]
Website: www.redcentricplc.com<http://www.redcentricplc.com>
Blog: www.redcentricplc.com/blog<http://www.redcentricplc.com/blog>

Redcentric, Central House, Beckwith Knowle, Harrogate, HG3 1UG.
Main Switchboard: 01423 85 00 00


<http://www.redcentricplc.com>



DISCLAIMER:
This message is intended only for the use of the person(s) ("the intended recipient(s)") to whom it is addressed. 
It may contain information which is privileged, proprietary and/or confidential within the meaning of applicable law. 
If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this message (including any attachments) is strictly prohibited. 
If you have received this message in error, please contact the sender of this message as soon as possible. 
The views or opinions expressed in this message are those of the author and may not necessarily be the views held by Redcentric.

Redcentric Solutions Limited trading as Redcentric. Registered office: Central House, Beckwith Knowle, Harrogate, HG3 1UG.
Registered in England no. 08322856.

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF

_______________________________________________
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.