Monitoring disk & CPU usage on FreeBSD systems

Yusufdeen <[email protected]> Wed, 12 Sep 2018 10:47:42 +0800
Newsgroups gmane.network.opennms.general
Message-ID <CAGRa2Guq3yuks6jTT8WtH6JAh5WW514_i38pqh9Br=eg8nOA2A@mail.gmail.com>
Dear Friends,

We have an FreeBSD Operating System,i want to monitor disk & CPU usage.

i).First i have enable netsnmp to one of my FreeBSD operating
system.OpenNMS seems to be calculate incorrect disk percentage value Eg:if
the harddisk is full ,opennms shows/calculate  *92 %*  (8 %
difference).Received thresholds alert as normal.
ii) i have disable netsnmp and enable BSNMP to  FreeBSD  OS. OpenNMS
calculate accurate disk percentage .

*The problem is unable to get disk alert,if the HDD met above the
thresholds.*

Here i have list out some setting i did in the OpenNMS

a)First,I just created a new *systemDef* in
*/usr/share/opennms/etc/datacollection/netsnmp.xml*

 <systemDef name="BSNMP">
        <sysoidMask>.1.3.6.1.4.1.12325.1.</sysoidMask>
        <collect>
        <includeGroup>mib2-host-resources-system</includeGroup>
        <includeGroup>mib2-host-resources-memory</includeGroup>
        <includeGroup>mib2-X-interfaces</includeGroup>
        <includeGroup>net-snmp-disk</includeGroup>
        <includeGroup>net-snmp-disk-more</includeGroup>
        <includeGroup>net-snmp-disk-highlow</includeGroup>
        <includeGroup>ucd-loadavg</includeGroup>
        <includeGroup>ucd-memory</includeGroup>
        <includeGroup>ucd-sysstat</includeGroup>
        <includeGroup>ucd-sysstat-raw</includeGroup>
        <includeGroup>ucd-sysstat-raw-more</includeGroup>
        <includeGroup>ucd-diskio</includeGroup>
        </collect>
      </systemDef>
</datacollection-group>

b)Second,i have created thresholds in /
*usr/share/opennms/etc/thresholds.xml*

<group name="BSNMP" rrdRepository="/var/lib/opennms/rrd/snmp/">
      <threshold description="Trigger an alert when the percentage of disk
space" type="high" ds-type="hrStorageFBSD" value="90.0" rearm="85.0"
trigger="2" ds-label=" ns-dskPat$
      <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 consecut$
         <resource-filter
field="ns-dskPath">^(?:(?!(/proc|/sys|/dev/pts)).)+$</resource-filter>
      </threshold>
      <expression description="Trigger an alert when the amount of unused
real/physical memory expressed as a percentage of total system memory
reaches or goes below 5% for two$
   </group>
</thresholding-config>


Kindly assist me to get alert.

Thanks & Regards,
     Yusuf

_______________________________________________
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