Re: Exclude notification for the disk /dev
Jonathan Heard <[email protected]> Wed, 5 Sep 2018 15:16:33 +0100
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Yusufdeen, You should be able to filter out alerts for /dev simply by using an amended version of the snippet I sent. I've never noticed it at 100% on any of the Ubuntu or RHEL Linux hosts I've used but it looks like it will report 100% in some scenarios - e.g. https://apple.stackexchange.com/questions/267165/why-is-devfs-full Therefore if you update the thresholds.conf file but change my snippet to it excludes all of /dev and then restart OpenNMS, you should stop receiving alerts. Thanks Jonathan On 05/09/18 14:09, Yusufdeen wrote: > Dear Jonathan, > > Thank You for your reply....it's really appreciated.... > > You can see alert message.what i am understand from your reply, we > can't exclude /dev alerts but do exclude /dev/pts.I don't want those > alerts message. Is there is any solution for this issue ? > > image.png > > image.png > > > Thank You, > > On Tue, Sep 4, 2018 at 6:25 PM Jonathan Heard > <[email protected] > <mailto:[email protected]>> wrote: > > Hi Yusufdeen, > > e.g. from my own /etc/opennms/thresholds.xml > > <group name="netsnmp" rrdRepository="/var/lib/opennms/rrd/snmp/"> > ... > <threshold > description="Trigger an alert when the percentage of inodes used on any disk (excluding the specified special paths) reaches or goes above 90% for two consecutive measurement intervals" > type="high" ds-type="dskIndex" value="90.0" rearm="75.0" > trigger="2" ds-label="ns-dskPath" filterOperator="and" ds-name="ns-dskPercentNode"> > <resource-filter field="ns-dskPath">^(?!(/proc|/sys|/dev/pts|/run|/home|/mnt/home|/var/lib/nfs/rpc_pipefs)).*$</resource-filter> > <resource-filter field="ns-dskDevice">^(?!(/dev/loop)).*$</resource-filter> > </threshold> > .... > </group> > > You should be able to modify your own thresholds in a similar way > to do a RegEx match of paths or devices to exclude... Note that we > don't exclude /dev but do exclude /dev/pts > > I'm actually a bit puzzled about your situation and wonder if > you're trying to solve the right problem... On modern Linux > systems /dev is a special 'devfs' filesystem and shouldn't be > subject to disk space problems. > > Hope this helps > > Regards > > Jonathan > > > > On 04/09/18 10:25, Yusufdeen wrote: >> Dear Friends, >> >> I want to exclude the notification for the drive "/dev".Many of >> the server have /dev storage.it <http://storage.it>'s almost >> reaches the disk percentage 95%.We have received couple of >> notification for those server. >> >> High threshold exceeded for SNMP datasource hrStorageUsed / >> hrStorageSize * 100.0 on interface 172.17.250.55, parms: >> label="/dev" ds="hrStorageUsed / hrStorageSize * 100.0" >> description="Trigger an alert when the percentage of disk space >> used reaches or goes above 90% for two consecutive measurement >> intervals (only for disks of type hrStorageFixedDisk, such as a >> locally attached or USB-attached hard disk)" value="100" >> instance="34" instanceLabel="dev" >> resourceId="node[48].hrStorageIndex[dev]" threshold="95.0" >> trigger="2" rearm="90.0" >> >> Could you please tell how to exclude/avoid /dev disks >> notification/alert. >> >> *Thanks & Regards* >> *Yusuf* >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org!http://sdm.link/slashdot >> >> >> _______________________________________________ >> Please read the OpenNMS Mailing List FAQ: >> http://www.opennms.org/index.php/Mailing_List_FAQ >> >> opennms-discuss mailing list >> >> To *unsubscribe* or change your subscription options, see the bottom of this page: >> https://lists.sourceforge.net/lists/listinfo/opennms-discuss > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! > http://sdm.link/slashdot_______________________________________________ > Please read the OpenNMS Mailing List FAQ: > http://www.opennms.org/index.php/Mailing_List_FAQ > > opennms-discuss mailing list > > To *unsubscribe* or change your subscription options, see the > bottom of this page: > https://lists.sourceforge.net/lists/listinfo/opennms-discuss > > > > -- > *Warm Regards, > > * ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-discuss mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-discuss