Fered | 3 Mar 17:52 2015
Picon

org.osgi.util.tracker.ServiceTracker does not take parameters

Hi;
When I try to build opennms v15.1 using java 1.7.0,  I see following error:

container/servlet/src/main/java/org/opennms/container/web/DispatcherTracker.java
    Error:Error:line (29)java: type org.osgi.util.tracker.ServiceTracker does not take parameters
    Error:Error:line (47)java: type org.osgi.framework.ServiceReference does not take parameters
    Error:Error:line (58)java: type org.osgi.framework.ServiceReference does not take parameters
    Error:Error:line (49)java: cannot find symbol
  symbol:   variable super
  location: class org.opennms.container.web.DispatcherTracker
    Error:Error:line (46)java: method does not override or implement a method from a supertype
    Error:Error:line (64)java: cannot find symbol
  symbol:   variable super
  location: class org.opennms.container.web.DispatcherTracker
    Error:Error:line (57)java: method does not override or implement a method from a supertype
/container/servlet/src/main/java/org/opennms/container/web/ProxyFilter.java
    Error:Error:line (36)java: cannot find symbol
  symbol:   method close()
  location: variable m_dispatcherTracker of type org.opennms.container.web.DispatcherTracker
    Error:Error:line (49)java: cannot find symbol
  symbol:   method open()
  location: variable m_dispatcherTracker of type org.opennms.container.web.DispatcherTracker

How can I resolve it?
Thanks.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
Gerd Mueller | 3 Mar 09:11 2015
Picon

jdbc

Hi list,

I'm struggling with the jdbc monitoring. I don't find my mistake. OpenNMS dosn't store the returned data as datacollection-group. Instead the values are stored into only one rrd. What's wrong?

The query's result is

OMRREPSITEC OMRREPSITE                  
----------- ------------------------------
          1 RG_XY


Thank you,

Gerd

jdbc-datacollection-config.xml

            <query name="Omr_repsites" ifType="ignore" instance-column="omrrepsite" resourceType="OMRrepsites">
                <statement>
                    <queryString>
                    SELECT count(*) omrrepsiteC, to_char(gname) omrrepsite FROM DBA_REPSITES WHERE my_dblink = 'Y' group by gname
                    </queryString>
                </statement>
                <columns>
                    <column name="omrrepsite" data-source-name="omrrepsite" alias="omrrepsite" type="string"/>
                    <column name="omrrepsiteC" data-source-name="omrrepsiteC" alias="omrrepsiteC" type="gauge"/>
                </columns>
             </query>

datacollection/Oracle-Repsites.xml

    <?xml version="1.0"?>
<datacollection-group name="Oracle-Repsites">

    <resourceType name="OMRrepsites" label="Oracle DBA Repsites" resourceLabel="Repsite ${omrrepsite} (index:${index})">
      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
      <storageStrategy class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
    </resourceType>

</datacollection-group>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
Michael Batz | 3 Mar 00:03 2015

slow startup of eventd

Hi everybody,

 

maybe somebody of you has an idea on the following topic. I created a fresh install of OpenNMS 15.0.1 under Ubuntu 14.04. There are no nodes in OpenNMS at the moment. When I start OpenNMS, it really takes 5 minutes. It seems, that starting Eventd takes all the time. When I look in the eventd.log, I see the following interesting lines:

 

2015-03-02 23:52:10,299 INFO  [Main] o.s.o.h.HibernateTransactionManager: Using DataSource [org.opennms.core.db.C3P0ConnectionFactory <at> 59205b35] of Hibernate SessionFactory for HibernateTransactionManager
2015-03-02 23:52:11,981 INFO  [Main] o.s.c.s.ClassPathXmlApplicationContext: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext <at> 4018b750: startup date [Mon Mar 02 23:52:11 CET 2015]; root of context hierarchy
2015-03-02 23:52:11,982 INFO  [Main] o.s.b.f.x.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [org/opennms/netmgt/rrd/rrd-configuration.xml]
2015-03-02 23:52:12,023 INFO  [Main] o.s.b.f.s.DefaultListableBeanFactory: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory <at> 3c5c2ce7: defining beans [rrdConfigurationPropertiesDefaults,rrdConfigurationProperties,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,rrdFileExtension,useQueue,useTcp,tcpRrdStrategy,basicRrdStrategy,queuingRrdStrategy,tcpAndBasicRrdStrategy,tcpAndQueuingRrdStrategy]; root of factory hierarchy
2015-03-02 23:55:02,111 INFO  [Main] o.s.c.s.ClassPathXmlApplicationContext: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext <at> 19747c42: startup date [Mon Mar 02 23:55:02 CET 2015]; parent: ApplicationContext 'daoContext'
2015-03-02 23:55:02,117 INFO  [Main] o.s.b.f.x.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [META-INF/opennms/applicationContext-eventDaemon.xml]
2

 

 

So it seems, the step " defining beans [rrdConfigurationPropertiesDefaults,rrdConfigurationProperties,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"

 takes around 3minutes. After this is completed, all the other daemons were loaded very quickly. Does anybody have an idea on this topic?

 

Best regards

Michael

 

Michael Batz - Professional Services & Solutions

 

NETHINKS GmbH | Bahnhofstraße 16 | 36037 Fulda

T +49 661 25 000 0 | F +49 661 25 000 49 | michael.batz <at> nethinks.com

Geschäftsführer: Uwe Bergmann | Vorsitzender des Aufsichtsrats: Garry Glendown | AG Fulda HRB 2546

 



SAVE THE DATE! Unsere kommenden Veranstaltungen:


04. Mrz. 2015 | Seminar: ISDN-Abschaltung Chancen & Risiken fuer Ihr Unternehmen
16. - 20. Mrz. 2015 | OpenNMS-Intensiv-Schulung


Eine Uebersicht ueber unsere Veranstaltungen erhalten Sie unter: http://veranstaltung.nethinks.com


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
Alan Landucci-Ruiz | 25 Feb 23:02 2015

Threshold alerts on historical data

Hi,

 

I’ve been looking at Threshold alerts and I haven’t exactly found a way to do what I want, so I’m not even sure if it’s possible with OpenNMS.  I have an algorithm that approximates the date when a filesystem will be full, so rather than alerting based on a disk percentage, which is what I have now, I want to alert if the filesystem will be full within 90 days or less.  The algorithm uses historical data, so that means I have to know what the past disk space was before I do the calculations.  Is there a way to set up a threshold expression that can calculate from historical data?  And if so, how do I get to the data?

CONFIDENTIALITY NOTICE: This E-mail is the property of the Arizona Department of Health Services and contains information that may be PRIVILEGED, CONFIDENTIAL or otherwise exempt from disclosure by applicable law. It is intended only for the person(s) to whom it is addressed. If you receive this communication in error, please do not retain or distribute it. Please notify the sender immediately by E-mail at the address shown above and delete the original message. Thank you.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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

Problem deleting node and data

Hi there,

We are facing problems deleting some nodes. When we try to delete a node, and its data, from admin page, we see that data is still in rrd folders, but node isn't in Node List. In addition if we try to add the deleted node again it isn't added.

We have been reviewing logs and we have found in poller.log a lot of errors like this:

2015-02-19 13:53:45,037 ERROR [Poller:PollerEventProcessor-Thread] PollerEventProcessor: Interface 93/10.240.16.29 does not exist in pollable node map, unable to delete node.
2015-02-19 13:53:45,037 ERROR [Poller:PollerEventProcessor-Thread] PollerEventProcessor: Interface 93/93.191.137.13 does not exist in pollable node map, unable to delete node.

With all IP interfaces of deleted node.

We are testing upgrade to version 15 in a lab machine and this problem is present in the new version too.

Please, can you help us?

Thank you very much.
Regards.

Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informaci confidencial, siendo para uso exclusivo del destinatario, quedando prohibida su divulgación copia o distribución a terceros sin la autorización expresa del remitente. Si Vd. ha recibido este mensaje erróneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboración. This message (including any attachments) may contain confidential information. It is intended for use by the recipient only. Any dissemination, copying or distribution to third parties without the express consent of the sender is strictly prohibited. If you have received this message in error, please delete it immediately and notify the sender. Thank you for your collaboration.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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

Can KSC Reports be sent by mail?

Hi there,

Maybe it´s a silly question, but since we are not familiar with them, we don´t know if they can be sent by mail.

We usually schedule "Database Reports" and it is easy to send them, any way to do the same with KSC?


Thanks a lot.

Best Regards.



Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener información confidencial, siendo para uso exclusivo del destinatario, quedando prohibida su divulgación copia o distribución a terceros sin la autorización expresa del remitente. Si Vd. ha recibido este mensaje erróneamente, se ruega lo notifique al remitente y proceda a su borrado. Gracias por su colaboración. This message (including any attachments) may contain confidential information. It is intended for use by the recipient only. Any dissemination, copying or distribution to third parties without the express consent of the sender is strictly prohibited. If you have received this message in error, please delete it immediately and notify the sender. Thank you for your collaboration.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
Chiu Hsia Peng | 2 Mar 15:17 2015
Picon

Context initialization failed

Hi,
After I git pull on 3/2 (the branch is develop), I encountered a problem: the web service is unavailable (net::ERR_CONNECTION_REFUSED)

web.log:
2015-03-02 12:57:52,862 ERROR [Main] o.s.w.c.ContextLoader: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext-common.xml]; nested exception is java.net.ConnectException: Connection timed out

I guess this problem is concerned with proxy setting, because the opennms runs behind the firewall and it fails to connect www.springframework.org at run time.

After I modified the two applicationContext-common.xml files, replacing DTD with xsd (check *modification* in the following for details), it is o.k. to run when build with "./assemble.pl -Dopennms.home=/opt/opennms".
However, if I use "./assemble.pl -p dir" to build, the log-in page still cannot display! 

In this case, building with "./assemble.pl -p dir", the ERROR in web.log is as follows:
2015-03-02 20:33:38,082 WARN  [qtp1935576164-1081 - /opennms/login.jsp;jsessionid=1mt2y56tx25mz1n4otv9xbrqzs] o.e.j.s.ServletHandler:
org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.runtime.ELContextImpl
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) ~[org.apache.jasper.glassfish-2.2.2.v201112011158.jar:?]
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) ~[org.apache.jasper.glassfish-2.2.2.v201112011158.jar:?]
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378) ~[org.apache.jasper.glassfish-2.2.2.v201112011158.jar:?]

Question:
Does anyone know why "./assemble.pl -p dir" fails? (the default.xml and dir.xml are almost same!)
 
Thanks in advance!

sincerely,
jane#

ps.
*modification*
opennms-assemblies/http-remoting/src/main/webapp/WEB-INF/applicationContext-common.xml
opennms-webapp/src/main/webapp/WEB-INF/applicationContext-common.xml


- <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> 
branch is <develop>, git pull around on 2015/3/2

+  xsi:schemaLocation="



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
Jun_Tseng | 2 Mar 06:44 2015

Re: Category contains node with IPv6 address will cause the PDF report hang up and does not show anything

Dear Sir,

 

In my test environment, the surveillance Category “Server” contains one node “jun-VirtualBox” with IPv6 address and will cause the PDF report hang up.

(Below test with “Response-Time-Summary-Report” )

It is OK, if I remove this node. I guess it is possible because of this node has IPv6 address with it.

 

Please help me to identify this issue.

 

My testing result as below:

 

***Check Data base for Category ***“
[Servers]   
ß Contain IPv6 address node: jun-VirtualBox

opennms=# select  categories.categoryname,

opennms-#         node.nodelabel,

opennms-#         ifservices.ipaddr

opennms-# FROM

opennms-#         node

opennms-# JOIN

opennms-#         ifservices

opennms-# ON

opennms-#         (ifservices.nodeid = node.nodeid)

opennms-# JOIN

opennms-#         service

opennms-# ON

opennms-#         (service.serviceid = ifservices.serviceid)

opennms-# JOIN

opennms-#         category_node

opennms-# ON

opennms-#         (category_node.nodeid = node.nodeid)

opennms-# JOIN

opennms-#         categories

opennms-# ON

opennms-#         (categories.categoryid = category_node.categoryid)

opennms-# WHERE

opennms-#         ifservices.status = 'A' AND

opennms-#         service.servicename = 'ICMP' AND

opennms-#         categories.categoryname like 'Servers'

opennms-# ORDER BY

opennms-#         categories.categoryname,

opennms-#         node.nodelabel,

opennms-#         ifservices.ipaddr ;       

 categoryname |    nodelabel    |                 ipaddr                 

--------------+-----------------+-----------------------------------------

Servers      | D-Link DAP-2695 | 10.39.77.99

Servers      | jun-VirtualBox  | 10.39.77.102

Servers      | jun-VirtualBox  | 192.168.56.101

Servers      | jun-VirtualBox  | 2001:0470:0024:03c3:0a00:27ff:feeb:b154

Servers      | jun-VirtualBox  | 2001:0470:0024:03c3:d4cb:25da:2e4d:8add

Servers      | LAP-200         | 10.79.61.26

(6 rows)

 

 

[Production]

opennms=# select  categories.categoryname,

opennms-#         node.nodelabel,

opennms-#         ifservices.ipaddr

opennms-# FROM

opennms-#         node

opennms-# JOIN

opennms-#         ifservices

opennms-# ON

opennms-#         (ifservices.nodeid = node.nodeid)

opennms-# JOIN

opennms-#         service

opennms-# ON

opennms-#         (service.serviceid = ifservices.serviceid)

opennms-# JOIN

opennms-#         category_node

opennms-# ON

opennms-#         (category_node.nodeid = node.nodeid)

opennms-# JOIN

opennms-#         categories

opennms-# ON

opennms-#         (categories.categoryid = category_node.categoryid)

opennms-# WHERE

opennms-#         ifservices.status = 'A' AND

opennms-#         service.servicename = 'ICMP' AND

opennms-#         categories.categoryname like 'Production'

opennms-# ORDER BY

opennms-#         categories.categoryname,

opennms-#         node.nodelabel,

opennms-#         ifservices.ipaddr ;

opennms=#

categoryname |     nodelabel     |     ipaddr     

--------------+-------------------+-----------------

Production   | 10.1.1.254        | 10.1.1.254

Production   | 10.1.1.254        | 192.168.249.145

Production   | 10.1.1.254        | 192.168.249.161

Production   | 10.1.1.254        | 2.1.1.254

Production   | 10.1.1.254        | 5.1.1.254

Production   | Fifth-Floor-A-151 | 10.1.1.151

Production   | Fifth-Floor-A-161 | 10.1.1.161

Production   | Fifth-Floor-A-162 | 10.1.1.162

Production   | Fifth-Floor-A-163 | 10.1.1.163

Production   | Fifth-Floor-A-164 | 10.1.1.164

Production   | Fifth-Floor-A-165 | 10.1.1.165

Production   | Fifth-Floor-A-166 | 10.1.1.166

Production   | Fifth-Floor-A-167 | 10.1.1.167

Production   | Fifth-Floor-A-168 | 10.1.1.168

Production   | Fifth-Floor-A-169 | 10.1.1.169

(15 rows)

 

[PDF report]

Under Home/Reports/ Database/ List Reports

Run report for “Response Time Summary for node”

Category name: Servers

   The browser will hang up with continue “loading” and show nothing. It is OK, if I remove the IPv6 address node: jun-VirtualBox

Category name: Production

   It is OK.

 

***My OpenNMS version***

OpenNMS Web Console

Version:   16.0.0-SNAPSHOT

Server Time:   Fri Feb 13 17:12:33 CST 2015

Client Time:    Fri Feb 13 2015 17:13:14 GMT+0800 (台北標準時間)

Java Version:   1.7.0_55 (Oracle Corporation)

Java Runtime: OpenJDK Runtime Environment (1.7.0_55-b14)

Java Specification:  Java Platform API Specification (Oracle Corporation, 1.7)

Java Virtual Machine:     OpenJDK 64-Bit Server VM (Oracle Corporation, 24.51-b03)

Java Virtual Machine Specification:       Java Virtual Machine Specification (Oracle Corporation, 1.7)

Operating System:  Linux 3.13.0-24-generic (amd64)

Servlet Container:   jetty/8.1.10.v20130312 (Servlet Spec 3.0)

User Agent:     Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36

Database Type:       PostgreSQL

Database Version:   9.3.5

 

 

Best regard,

Jun

 

This electronic mail transmission is intended only for the named recipient. It contains information which may be privileged,confidential and exempt from disclosure under applicable law. Dissemination, distribution, or copying of this communication by anyone other than the recipient or the recipient's agent is strictly prohibited. If this electronic mail transmission is received in error, Please notify us immediately and delete the message and all attachments of it from your computer system. Thank you for your cooperation.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
Anthony Moon | 27 Feb 19:05 2015

Can someone please look into this?

I’m trying to build the JRB to RRD converter and it just shits the bed on me, I’ve included a bug report here:

 

http://issues.opennms.org/browse/JRRD-4

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
George Tetterton | 25 Feb 23:37 2015

OpenNMS and SAML integration

We need to support authentication with SAML based security. Has anyone successfully integrated OpenNMS with SAML based security. I have found that Spring Security has a SAML package but my Java Web experience is quite weak and I do not know how to integrate it into the existing security. Currently we are using a combination of login page and LDAP. I did a search for SAML on the mailing list and it did not return anything.

I am hoping someone here can help.

 

Thanks in advance.

 

George Tetterton

Mavenir Systems

 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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
robert.4.hughes | 25 Feb 14:59 2015

Net-SNMP extend collection

Hi,

 

I am looking to run some scripts remotely using the Net-SNMP extend function, I am following the Wiki page below:

 

http://www.opennms.org/wiki/Net-snmp_extend_collections

 

So just to see if I can get this working I have created a simple script freemem.sh which just gives me the free memory on a centos server.

 

#!/bin/bash

vmstat | tail –n 1 | awk ‘{if (NF > 4) {print $4} else {print 0}}’

 

So I get one value back when I run it, eg: 1597164

 

I have added the following entry to /etc/snmp/snmpd.conf and restarted the snmpd service

 

extend freemem /usr/bin/freemem.sh

 

So far so good, I can now snmpwalk to the oid from my opennms server:

 

snmpwalk –v 2c –c public 192.168.1.16 .1.3.6.1.4.1.8072.1.3.2.3.1.1.7.102.114.101.101.109.101.109

NET-SNMP-EXTEND-MIB::nsExtendOutput1Line.”freemem” = STRING: 1597380

 

Now the Wiki says edit datacollection-config.xml but it looks like there is now a datacollection directory with various config files, so I have put the following config in the netsnmp.xml file.

 

<group name="freemem" ifType="ignore">

   <mibObj oid=".1.3.6.1.4.1.8072.1.3.2.3.1.1.7.102.114.101.101.109.101.109"

      instance="1" alias="freemem" type="octetstring" />

</group>

 

I also added this line in the systemDef name=”Net-SNMP” section

 

<includeGroup>freemem</includeGroup>

 

report.netsnmp.freemem.name=Amount of Free Memory via net-snmp Extend

report.netsnmp.freemem.columns=freemem

report.netsnmp.freemem.type=nodeSnmp

report.netsnmp.freemem.command=--title="Amount of Free memory via net-snmp Extend" \

DEF:queue={rrd1}:freemem:AVERAGE \

LINE2:queue#0000A0:"Size    " \

GPRINT:queue:AVERAGE:"Avg  \\: %8.2lf " \

GPRINT:queue:MIN:"Min  \\: %8.2lf " \

GPRINT:queue:MAX:"Max  \\: %8.2lf \\n"

 

I restarted OpenNMS, but I am not seeing the new graph and also I am not seeing data for freemem being collected in /opt/opennms/share/rrd/snmp/111

 

Have I got something wrong with the datacollection?

 

Regards

Rob

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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

Gmane