[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-discuss
Subject:    [opennms-discuss] R:  extend snmp
From:       Pedocchi Luca <l.pedocchi () tsf ! it>
Date:       2011-07-26 15:50:11
Message-ID: 7FCA42933DC72840B7A0E521E3E5F3AA02A3160A8723 () TSFMAIL2K7 ! tsf ! local
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Sorry to bother you, I had to leave my poblem for a little while and now I'm picking \
it up again. Would you please be so kind to clarify your statement? I'm not familiar \
with snmp. What does it mean using the pass directive? I have my custom OID,  the \
associated monitoring is going on, but I'm not able to get the related jrb file. I'm \
sure I'm doing something wrong in data collection. thanks

Luca Pedocchi
MANAGED OPERATIONS
Application & Infrastructure Management
Infrastructural Services

ALMAVIVA TSF S.p.A.
 50129 FIRENZE - VIALE Spartaco Lavagnini, 58
 Tel. +39 055 2353180 - Fax +39 055 4620091
 cell. + 39 335 1771078
 e-mail: l.pedocchi@tsf.it<mailto:l.pedocchi@tsf.it>  - www.tsf.it<http://www.tsf.it>

Società soggetta all'attività di Direzione
e Coordinamento di AlmavivA S.p.A.

[cid:image001.png@01CC4BBC.7784F9C0]

Da: Jeremy Guarini [mailto:jeremy@yozik.org]
Inviato: giovedì 7 luglio 2011 02:07
A: General OpenNMS Discussion
Oggetto: Re: [opennms-discuss] extend snmp

FYI

I've used the pass directive in snmp and added the custom OIDs to datacollection and \
built the graph definitions, that was all that was needed IIRC

just throwing that out there as it may be a simpler method of doing the same thing

--
Jeremy Guarini

On Jul 6, 2011, at 7:58 AM, Umberto Nicoletti wrote:


Just had a look at a system where I have a similar config and it looks like you're \
missing the following line at the end of poller-configuration.xml

<monitor service="TESTcount" \
class-name="org.opennms.netmgt.poller.monitors.SnmpMonitor"/>

On Tue, Jul 5, 2011 at 10:01 AM, Pedocchi Luca \
<l.pedocchi@tsf.it<mailto:l.pedocchi@tsf.it>> wrote: Thank you, Umberto. Polling is \
ok, my error there was to use >, < or = as operators, instead of the related html \
syntax. Unfortunately, I'm not able to find my report in the Node-level Performance \
Data, so I'm looking at how-tos to produce it. Thank you very much, regards
               Luca

Luca Pedocchi
MANAGED OPERATIONS
Application & Infrastructure Management
Infrastructural Services

ALMAVIVA TSF S.p.A.
 00159 ROMA - VIA dello SCALO  PRENESTINO, 15
 Tel. +39 055 2353180<tel:%2B39%20055%202353180> - Fax +39 055 \
4629091<tel:%2B39%20055%204629091>  cell. + 39 335 \
1771078<tel:%2B%2039%20335%201771078>  e-mail: \
l.pedocchi@tsf.it<mailto:l.pedocchi@tsf.it>  - www.tsf.it<http://www.tsf.it/>

Società soggetta all'attività di Direzione
e Coordinamento di AlmavivA S.p.A.




-----Messaggio originale-----
Da: Umberto Nicoletti \
                [mailto:umberto.nicoletti@gmail.com<mailto:umberto.nicoletti@gmail.com>]
                
Inviato: lunedì 4 luglio 2011 19:31
A: General OpenNMS Discussion
Oggetto: Re: [opennms-discuss] extend snmp

Luca,
I think from what you posted that you're missing the service def at the end of \
poller-configuration.xml. To check that look in the rrd directory tree starting from \
the branch with the node id and see if there is a file with the same name as the \
service definition. If the file is not there then no datacollection is happening and \
you might want to recheck the poller and datacollection configuration.

hth,
Umberto


On Monday, July 4, 2011, Pedocchi Luca <l.pedocchi@tsf.it<mailto:l.pedocchi@tsf.it>> \
wrote:
> 
> 
> 
> 
> 
> 
> 
> Hi all.
> I'm trying to extend SNMP in order to monitor a queue. I'm following
> the example in http://www.opennms.org/wiki/Net-snmp_extend_collections, \
> unfortunately with no success. Would somebody be so kind to pint me out where I'm \
> (surely) makinga mistake. First of all my "script", a test one and very simple:
> ls -1|wc -l
> I named it testcount.sh. Tried it, it worked.
> I modified the snmpd.conf in the target machine adding the following line:
> 
> extend-sh testcount /tmp/testcount.sh
> 
> restarted snmpd, tested with the following command:
> 
> snmpwalk -v1 -c public 192.168.2.113 .1.3.6.1.4.1.8072.1.3.2
> 
> it gave me the following output, I assumed withe the correct value (3 files in the \
> monitored directory): 
> iso.3.6.1.4.1.8072.1.3.2.1.0 = INTEGER: 1
> iso.3.6.1.4.1.8072.1.3.2.2.1.2.9.116.101.115.116.99.111.117.110.116 = STRING: \
> "/tmp/testcount.sh" \
> iso.3.6.1.4.1.8072.1.3.2.2.1.3.9.116.101.115.116.99.111.117.110.116 = "" \
> iso.3.6.1.4.1.8072.1.3.2.2.1.4.9.116.101.115.116.99.111.117.110.116 = "" \
>                 iso.3.6.1.4.1.8072.1.3.2.2.1.5.9.116.101.115.116.99.111.117.110.116 \
>                 =
> INTEGER: 5
> iso.3.6.1.4.1.8072.1.3.2.2.1.6.9.116.101.115.116.99.111.117.110.116 =
> INTEGER: 2
> iso.3.6.1.4.1.8072.1.3.2.2.1.7.9.116.101.115.116.99.111.117.110.116 =
> INTEGER: 1
> iso.3.6.1.4.1.8072.1.3.2.2.1.20.9.116.101.115.116.99.111.117.110.116 =
> INTEGER: 4
> iso.3.6.1.4.1.8072.1.3.2.2.1.21.9.116.101.115.116.99.111.117.110.116 =
> INTEGER: 1
> iso.3.6.1.4.1.8072.1.3.2.3.1.1.9.116.101.115.116.99.111.117.110.116 = STRING: "3"
> iso.3.6.1.4.1.8072.1.3.2.3.1.2.9.116.101.115.116.99.111.117.110.116 = STRING: "3"
> iso.3.6.1.4.1.8072.1.3.2.3.1.3.9.116.101.115.116.99.111.117.110.116 =
> INTEGER: 1
> iso.3.6.1.4.1.8072.1.3.2.3.1.4.9.116.101.115.116.99.111.117.110.116 =
> INTEGER: 0
> iso.3.6.1.4.1.8072.1.3.2.4.1.2.9.116.101.115.116.99.111.117.110.116.1 = STRING: "3"
> 
> following the example I modified the file datacollection-config.xml, introducing a \
> new group: 
> <group name="testcount" ifType="ignore">
> <mibObj
> oid=".1.3.6.1.4.1.8072.1.3.2.3.1.1.9.116.101.115.116.99.111.117.110.11
> 6" instance="1" alias="testcountsize" type="octetstring" />
> </group>
> 
> First question: am I wrong with the oid? did I choose a wrong one?
> Going on. I included it in a system definition:
> 
> <systemDef name="Net-SNMP">
> <sysoidMask>.1.3.6.1.4.1.8072.3<tel:1.3.6.1.4.1.8072.3>.</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>openmanage-coolingdevices</includeGroup>
> <includeGroup>openmanage-temperatureprobe</includeGroup>
> <includeGroup>openmanage-powerusage</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>zxtm</includeGroup>
> <includeGroup>zxtmvs</includeGroup>
> <includeGroup>zxtmpool</includeGroup>
> <includeGroup>testcount</includeGroup>
> </collect>
> </systemDef>
> 
> Another question: is it the proper system definition?
> 
> Still going on. I modified snmp-graph.properties creating a new report:
> 
> report.netsnmp.testcount.name<http://report.netsnmp.testcount.name/>=Current Queue \
> Size report.netsnmp.testcount.columns=testcountsize
> report.netsnmp.testcount.type=nodeSnmp
> report.netsnmp.testcount.command=--title="Currently Queued"
> DEF:queue={rrd1}:testcountsize:AVERAGE \
> LINE2:queue#0000A0:"Size     " \
> GPRINT:queue:AVERAGE:"Avg   \\:<smb://:> %8.2lf " \
> GPRINT:queue:MIN:"Min   \\:<smb://:> %8.2lf " \
> GPRINT:queue:MAX:"Max   \\:<smb://:> %8.2lf \\n<smb://n>"
> 
> and put it's name in reports=.
> Restarted openNMS but I'm not able to have this report under Node-level Performance \
> Data. I modified capsd-configuration.xml:
> 
> 
> <protocol-plugin protocol="TESTcount"
> class-name="org.opennms.netmgt.capsd.plugins.SnmpPlugin" scan="on">
> <property key="vbname"
> value=".1.3.6.1.4.1.8072.1.3.2.3.1.1.9.116.101.115.116.99.111.117.110.
> 116" />
> <property key="timeout" value="2000" />
> <property key="retry" value="1" />
> </protocol-plugin>
> 
> 
> and poller-configuration.xml
> 
> 
> <service name="TESTcount" interval="300000" user-defined="false"
> status="on">
> <parameter key="retry" value="1" />
> <parameter key="timeout" value="3000" />
> <parameter key="port" value="161" />
> <parameter key="oid"
> value=".1.3.6.1.4.1.8072.1.3.2.3.1.1.9.116.101.115.116.99.111.117.110.
> 116" />
> <parameter key="operator" value="=" />
> <parameter key="operand" value="1" />
> </service>
> 
> Restarted again openNMS. Rescan of the target machine. Service has been discovered, \
> but no graph. Somebody has an idea about it? Thank you very much for al the help \
> you can provide. Luca
> 
> 
> 
> 
> 
> 
> 
> 
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security threats, \
fraudulent activity, and more. Splunk takes this data and makes sense of it. IT \
sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
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

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
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

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2_______________________________________________
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


[Attachment #5 (text/html)]

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft \
Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);} \
o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"Segoe UI";
	panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Testo fumetto Carattere";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.apple-style-span
	{mso-style-name:apple-style-span;}
span.StileMessaggioDiPostaElettronica18
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.TestofumettoCarattere
	{mso-style-name:"Testo fumetto Carattere";
	mso-style-priority:99;
	mso-style-link:"Testo fumetto";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=IT link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Sorry to \
bother you, I had to leave my poblem for a little while and now I&#8217;m picking it \
up again. Would you please be so kind to clarify your statement? I&#8217;m not \
familiar with snmp. What does it mean using the pass directive? I have my custom OID, \
the associated monitoring is going on, but I&#8217;m not able to get the related jrb \
file.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I&#8217;m \
sure I&#8217;m doing something wrong in data collection.<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>thanks<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span \
lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif";color:teal'>Luca \
Pedocchi</span></b><span lang=EN-US \
style='font-size:7.0pt;font-family:"Arial","sans-serif";color:#1F497D'><br></span><span \
lang=EN-US style='font-size:7.0pt;font-family:"Arial","sans-serif";color:teal'>MANAGED \
OPERATIONS<br>Application &amp; Infrastructure Management </span><span lang=EN-US \
style='font-size:7.5pt;font-family:"Arial","sans-serif";color:teal'><br></span><span \
lang=EN-US style='font-size:7.0pt;font-family:"Arial","sans-serif";color:teal'>Infrastructural \
Services<br></span><span lang=EN-US \
style='font-size:7.0pt;font-family:"Arial","sans-serif";color:blue'><br></span><b><span \
lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif";color:teal'>ALMAVIVA \
TSF S.p.A.</span></b><span lang=EN-US \
style='font-size:8.0pt;font-family:"Arial","sans-serif";color:blue'><br></span><span \
lang=EN-US style='font-size:7.0pt;font-family:"Arial","sans-serif";color:teal'>&nbsp;</span><span \
style='font-size:7.0pt;font-family:"Arial","sans-serif";color:teal'>50129 FIRENZE \
&#8211; VIALE Spartaco Lavagnini, 58 </span><span \
style='font-size:7.0pt;font-family:"Arial","sans-serif";color:blue'><br>&nbsp;</span><span \
style='font-size:7.0pt;font-family:"Arial","sans-serif";color:teal'>Tel. +39 055 \
2353180 - Fax +39 055 4620091<br>&nbsp;cell. + 39 335 1771078</span><span \
style='font-size:7.0pt;font-family:"Arial","sans-serif";color:blue'>&nbsp;<br></span><span \
style='font-size:7.0pt;font-family:"Arial","sans-serif";color:teal'>&nbsp;e-mail: <a \
href="mailto:l.pedocchi@tsf.it">l.pedocchi@tsf.it</a>&nbsp; - <b><a \
href="http://www.tsf.it">www.tsf.it</a></b><br><br>Società soggetta all'attività di \
Direzione <br>e Coordinamento di AlmavivA S.p.A.<br><br><img border=0 width=187 \
height=64 id="Immagine_x0020_16" src="cid:image001.png@01CC4BBC.7784F9C0" \
alt="Descrizione: Descrizione: Descrizione: \
pied_mail_almaTSF"><o:p></o:p></span></p></div><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div \
style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p \
class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Segoe \
UI","sans-serif"'>Da:</span></b><span style='font-size:10.0pt;font-family:"Segoe \
UI","sans-serif"'> Jeremy Guarini [mailto:jeremy@yozik.org] <br><b>Inviato:</b> \
giovedì 7 luglio 2011 02:07<br><b>A:</b> General OpenNMS \
Discussion<br><b>Oggetto:</b> Re: [opennms-discuss] extend \
snmp<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>FYI&nbsp;<o:p></o:p></p><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>I've used the pass \
directive in snmp and added the custom OIDs to datacollection and built the graph \
definitions, that was all that was needed IIRC<o:p></o:p></p></div><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>just throwing that \
out there as it may be a simpler method of doing the same \
thing<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p \
class=MsoNormal>--<o:p></o:p></p></div><div><p class=MsoNormal>Jeremy \
Guarini<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><p \
class=MsoNormal>On Jul 6, 2011, at 7:58 AM, Umberto Nicoletti \
wrote:<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><p \
class=MsoNormal>Just had a look at a system where I have a similar config and it \
looks like you're missing the following line at the end \
of&nbsp;poller-configuration.xml<o:p></o:p></p><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>&lt;monitor \
service=&quot;<span class=apple-style-span><span \
style='font-family:"Tahoma","sans-serif"'>TESTcount</span></span>&quot; \
class-name=&quot;org.opennms.netmgt.poller.monitors.SnmpMonitor&quot;/&gt;<o:p></o:p></p></div><div><p \
class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p \
class=MsoNormal>On Tue, Jul 5, 2011 at 10:01 AM, Pedocchi Luca &lt;<a \
href="mailto:l.pedocchi@tsf.it">l.pedocchi@tsf.it</a>&gt; wrote:<o:p></o:p></p><p \
class=MsoNormal>Thank you, Umberto. Polling is ok, my error there was to use &gt;, \
&lt; or = as operators, instead of the related html syntax. Unfortunately, I'm not \
able to find my report in the Node-level Performance Data, so I'm looking at how-tos \
to produce it.<br>Thank you very much, regards<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp;Luca<br><br>Luca Pedocchi<br>MANAGED OPERATIONS<br>Application \
&amp; Infrastructure Management<br>Infrastructural Services<br><br>ALMAVIVA TSF \
S.p.A.<br>&nbsp;00159 ROMA - VIA dello SCALO &nbsp;PRENESTINO, 15<br>&nbsp;Tel. <a \
href="tel:%2B39%20055%202353180">+39 055 2353180</a> - Fax <a \
href="tel:%2B39%20055%204629091">+39 055 4629091</a><br>&nbsp;cell. <a \
href="tel:%2B%2039%20335%201771078">+ 39 335 1771078</a>&nbsp;<br>&nbsp;e-mail: <a \
href="mailto:l.pedocchi@tsf.it">l.pedocchi@tsf.it</a> &nbsp;- <a \
href="http://www.tsf.it/" target="_blank">www.tsf.it</a><br><br>Società soggetta \
all'attività di Direzione<br>e Coordinamento di AlmavivA \
S.p.A.<br><br><br><br><br>-----Messaggio originale-----<br>Da: Umberto Nicoletti \
[mailto:<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>]<br>Inviato: \
lunedì 4 luglio 2011 19:31<br>A: General OpenNMS Discussion<br>Oggetto: Re: \
[opennms-discuss] extend snmp<o:p></o:p></p><div><div><p class=MsoNormal \
style='margin-bottom:12.0pt'><br>Luca,<br>I think from what you posted that you're \
missing the service def at the end of poller-configuration.xml.<br>To check that look \
in the rrd directory tree starting from the branch with the node id and see if there \
is a file with the same name as the service definition.<br>If the file is not there \
then no datacollection is happening and you might want to recheck the poller and \
datacollection configuration.<br><br>hth,<br>Umberto<br><br><br>On Monday, July 4, \
2011, Pedocchi Luca &lt;<a href="mailto:l.pedocchi@tsf.it">l.pedocchi@tsf.it</a>&gt; \
wrote:<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; Hi \
all.<br>&gt; I'm trying to extend SNMP in order to monitor a queue. I'm \
following<br>&gt; the example in <a \
href="http://www.opennms.org/wiki/Net-snmp_extend_collections" \
target="_blank">http://www.opennms.org/wiki/Net-snmp_extend_collections</a>, \
unfortunately with no success. Would somebody be so kind to pint me out where I'm \
(surely) makinga mistake.<br>&gt; First of all my &quot;script&quot;, a test one and \
very simple:<br>&gt; ls -1|wc -l<br>&gt; I named it testcount.sh. Tried it, it \
worked.<br>&gt; I modified the snmpd.conf in the target machine adding the following \
line:<br>&gt;<br>&gt; extend-sh testcount /tmp/testcount.sh<br>&gt;<br>&gt; restarted \
snmpd, tested with the following command:<br>&gt;<br>&gt; snmpwalk -v1 -c public \
192.168.2.113 .1.3.6.1.4.1.8072.1.3.2<br>&gt;<br>&gt; it gave me the following \
output, I assumed withe the correct value (3 files in the monitored \
directory):<br>&gt;<br>&gt; iso.3.6.1.4.1.8072.1.3.2.1.0 = INTEGER: 1<br>&gt; \
iso.3.6.1.4.1.8072.1.3.2.2.1.2.9.116.101.115.116.99.111.117.110.116 = STRING: \
&quot;/tmp/testcount.sh&quot;<br>&gt; \
iso.3.6.1.4.1.8072.1.3.2.2.1.3.9.116.101.115.116.99.111.117.110.116 = \
&quot;&quot;<br>&gt; \
iso.3.6.1.4.1.8072.1.3.2.2.1.4.9.116.101.115.116.99.111.117.110.116 = \
&quot;&quot;<br>&gt; \
iso.3.6.1.4.1.8072.1.3.2.2.1.5.9.116.101.115.116.99.111.117.110.116 =<br>&gt; \
INTEGER: 5<br>&gt; iso.3.6.1.4.1.8072.1.3.2.2.1.6.9.116.101.115.116.99.111.117.110.116 \
=<br>&gt; INTEGER: 2<br>&gt; \
iso.3.6.1.4.1.8072.1.3.2.2.1.7.9.116.101.115.116.99.111.117.110.116 =<br>&gt; \
INTEGER: 1<br>&gt; iso.3.6.1.4.1.8072.1.3.2.2.1.20.9.116.101.115.116.99.111.117.110.116 \
=<br>&gt; INTEGER: 4<br>&gt; \
iso.3.6.1.4.1.8072.1.3.2.2.1.21.9.116.101.115.116.99.111.117.110.116 =<br>&gt; \
INTEGER: 1<br>&gt; iso.3.6.1.4.1.8072.1.3.2.3.1.1.9.116.101.115.116.99.111.117.110.116 \
= STRING: &quot;3&quot;<br>&gt; \
iso.3.6.1.4.1.8072.1.3.2.3.1.2.9.116.101.115.116.99.111.117.110.116 = STRING: \
&quot;3&quot;<br>&gt; \
iso.3.6.1.4.1.8072.1.3.2.3.1.3.9.116.101.115.116.99.111.117.110.116 =<br>&gt; \
INTEGER: 1<br>&gt; iso.3.6.1.4.1.8072.1.3.2.3.1.4.9.116.101.115.116.99.111.117.110.116 \
=<br>&gt; INTEGER: 0<br>&gt; \
iso.3.6.1.4.1.8072.1.3.2.4.1.2.9.116.101.115.116.99.111.117.110.116.1 = STRING: \
&quot;3&quot;<br>&gt;<br>&gt; following the example I modified the file \
datacollection-config.xml, introducing a new group:<br>&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;group name=&quot;testcount&quot; \
ifType=&quot;ignore&quot;&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mibObj<br>&gt; \
oid=&quot;.1.3.6.1.4.1.8072.1.3.2.3.1.1.9.116.101.115.116.99.111.117.110.11<br>&gt; \
6&quot; instance=&quot;1&quot; alias=&quot;testcountsize&quot; \
type=&quot;octetstring&quot; /&gt;<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/group&gt;<br>&gt;<br>&gt; First question: am I wrong with the oid? did I choose \
a wrong one?<br>&gt; Going on. I included it in a system definition:<br>&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;systemDef name=&quot;Net-SNMP&quot;&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sysoidMask&gt;.<a \
href="tel:1.3.6.1.4.1.8072.3">1.3.6.1.4.1.8072.3</a>.&lt;/sysoidMask&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;collect&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;mib2-host-resources-system&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;mib2-host-resources-memory&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;mib2-X-interfaces&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;net-snmp-disk&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;net-snmp-disk-more&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;net-snmp-disk-highlow&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;openmanage-coolingdevices&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;openmanage-temperatureprobe&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;openmanage-powerusage&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;ucd-loadavg&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;ucd-memory&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;ucd-sysstat&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;ucd-sysstat-raw&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;ucd-sysstat-raw-more&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;zxtm&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;zxtmvs&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;zxtmpool&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;includeGroup&gt;testcount&lt;/includeGroup&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/collect&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/systemDef&gt;<br>&gt;<br>&gt; Another question: \
is it the proper system definition?<br>&gt;<br>&gt; Still going on. I modified \
snmp-graph.properties creating a new report:<br>&gt;<br>&gt; <a \
href="http://report.netsnmp.testcount.name/" \
target="_blank">report.netsnmp.testcount.name</a>=Current Queue Size<br>&gt; \
report.netsnmp.testcount.columns=testcountsize<br>&gt; \
report.netsnmp.testcount.type=nodeSnmp<br>&gt; \
report.netsnmp.testcount.command=--title=&quot;Currently Queued&quot;<br>&gt; \
&nbsp;DEF:queue={rrd1}:testcountsize:AVERAGE \<br>&gt; \
&nbsp;LINE2:queue#0000A0:&quot;Size&nbsp;&nbsp;&nbsp;&nbsp; &quot; \<br>&gt; \
&nbsp;GPRINT:queue:AVERAGE:&quot;Avg&nbsp;&nbsp; <a href="smb://:">\\:</a> %8.2lf \
&quot; \<br>&gt; &nbsp;GPRINT:queue:MIN:&quot;Min&nbsp;&nbsp; <a \
href="smb://:">\\:</a> %8.2lf &quot; \<br>&gt; \
&nbsp;GPRINT:queue:MAX:&quot;Max&nbsp;&nbsp; <a href="smb://:">\\:</a> %8.2lf <a \
href="smb://n">\\n</a>&quot;<br>&gt;<br>&gt; and put it's name in reports=.<br>&gt; \
Restarted openNMS but I'm not able to have this report under Node-level Performance \
Data.<br>&gt; I modified capsd-configuration.xml:<br>&gt;<br>&gt;<br>&gt; \
&nbsp;&nbsp;&nbsp; &lt;protocol-plugin protocol=&quot;TESTcount&quot;<br>&gt; \
class-name=&quot;org.opennms.netmgt.capsd.plugins.SnmpPlugin&quot; \
scan=&quot;on&quot;&gt;<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;property key=&quot;vbname&quot;<br>&gt; \
value=&quot;.1.3.6.1.4.1.8072.1.3.2.3.1.1.9.116.101.115.116.99.111.117.110.<br>&gt; \


["image001.png" (image/png)]
[Attachment #7 (--===============1422373608882219940==)]
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/

_______________________________________________
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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic