Re: Exclude notification for the disk /dev
Mike Kelly <[email protected]> Tue, 4 Sep 2018 07:10:13 -0400
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <CAFb0NsK_FjGVYOAQqYGCBSwfnMvrK8f3J12HK-Fy75XQ2FDUUw@mail.gmail.com> |
I see spurious alarms for FreeBSD systems; although they also use a special filesystem, it seems it may still be flagged as a "fixed disk" filesystem by Net-SNMP, and thus gets collected by OpenNMS. On Tue, Sep 4, 2018, 6:24 AM Jonathan Heard < [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'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 -- Mike Kelly ------------------------------------------------------------------------------ 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