Re: Monitoring disk & CPU usage on FreeBSD systems

Jonathan Heard <[email protected]> Wed, 12 Sep 2018 10:47:29 +0100
Newsgroups gmane.network.opennms.general
Message-ID <[email protected]>
Hi Yusufdeen,

    The extract you've provided from thresholds.xml seems to be 
incomplete - please can you try resending it, or share the whole file?

Regarding the NetSNMP calculations - I believe you can adjust the 
calculation used in the Thresholds config, but my guess is that this 
could be similar to Solaris (which is closely related to BSD) which 
reserves a bit of disk space and reports 100% full to non-root users 
when the disk actually has a little bit of space left which root is able 
to use.

Regards

Jonathan


On 12/09/18 03:47, Yusufdeen 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
>

_______________________________________________
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