Re: Monitoring disk & CPU usage on FreeBSD systems

Yusufdeen <[email protected]> Sat, 15 Sep 2018 20:28:55 +0800
Newsgroups gmane.network.opennms.general
Message-ID <CAGRa2GvS9BXmQKdw2QgjzpTcGFpmL8dAEhtw644uUBnQegH_hg@mail.gmail.com>
Dear Jonathan,

I am waiting for your help to fix this issue.

Thank You,

On Wed, Sep 12, 2018 at 10:47 AM Yusufdeen <[email protected]> wrote:

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

-- 


*Warm Regards,*

_______________________________________________
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