Miles Taylor | 1 Nov 01:15 2005
Picon

[opennms-discuss] mib2opennms 'voiss_trapV1.my' contains errors, output may be flawed

I am trying to run mib2opennms against a MIB, and I am only receiving
the error "'voiss_trapV1.my' contains errors, output may be flawed".  
 The command I am running is mib2opennms -v  -f /tmp/out.xml
voiss_trapV1.my.

The xml file only contains
<!-- Start of auto generated data from MIB: OPENNMS-MIB -->
<!-- End of auto generated data from MIB: OPENNMS-MIB -->

Can anyone tell me what is  wrong with the the MIB I am trying to convert?
I apologize if it is not proper netiquette to paste the MIB at the
bottom I didnt see anything mentioning it.

Thanks for the help.

Start MIB:
------------------------

   VOISS-TRAP-MIB DEFINITIONS ::= BEGIN

   IMPORTS
     enterprises FROM RFC1155-SMI
     OBJECT-TYPE FROM RFC-1212
     TRAP-TYPE FROM RFC-1215
     voissTraps FROM VOISS-MIB;

   severity OBJECT-TYPE
       SYNTAX INTEGER (0..3)
       ACCESS read-only
       STATUS mandatory
(Continue reading)

Marios Fotiou | 1 Nov 09:43 2005

[opennms-discuss] SNMP trap & Events

Dear friends,

 

I have recently configured my OpenNMS system to collect traps from a server at our network. These traps are generated by the service software run by this server and have the following difference to all the others that I have come across. Instead of having a number of varbinds it only has 1 and it is a long string of the format

 

“DESCRIPTION=.....|DATE=...|LEVEL=major|SERVICE=...|APPLI=...”

 

The contents of the sting are programmed from the software.

 

Is there any way to filter out so as to program the eventd to recognize the different contents of the string?

 

For now I have imported an entry at event.cfg for distinguishing these traps and display only the string but they all come as “normal” as this is the static severity that I have assigned to this event.

 

Does anyone have any ideas on how to solve this problem and create proper structured events using the info in these traps?

 

Regards,

Marios

Carl Boberg | 1 Nov 17:11 2005
Picon

[opennms-discuss] Squid anyone?

Hi people,
Has anyone managed to graph a squid server? If so how?
I found a howto on the web but I cant get it to work:
http://www.inzense.com/blog/archives/2004/08/opennms_iii_1.html

Its a sortof unclear howto (at least to me) but a few people claim to have got it up and running with this...

Im running ONMS 1.3 which might add to the problem...

Cheers
--------------------------------
Carl Boberg 
System & Network Administrator
Swedish Museum of Naturalhistory
Frescativägen 40
104 05 Stockholm Sweden
Tel nr: 08-5195 5116
Mobile: 0701-82 4055
E-mail: carl.boberg <at> nrm.se
--------------------------------  

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq

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

jonathan sartin | 1 Nov 21:32 2005

Re: [opennms-discuss] Squid anyone?

Carl Boberg wrote:
> Hi people,
> Has anyone managed to graph a squid server? If so how?
> I found a howto on the web but I cant get it to work:
> http://www.inzense.com/blog/archives/2004/08/opennms_iii_1.html

You may want to take a look at this page:
http://www.opennms.org/wiki/index.php?page=SnmpInformantHowTo. I found
it to be a very useful tutorial when adding new devices. Quickly looking
at the link you posted shows that there's at least one place where you
might run into trouble. Some of the oid aliases in
datacollection-config.xml are more than 19 characters (which will cause
problems if you're using RRDtool).

> Its a sortof unclear howto (at least to me) but a few people claim to have got it up and running with this...

It's often easier to approach the task in two stages:

1. Get the agent running and responding and the net-snmp proxy config
working. Use snmpwalk on your OpenNMS box to check this from the command
line.

2. Get OpenNMS to collect the data. You may even want to split this in
two, by setting up the collection and verifying that the RRDs are being
created, then setting up snmp-graph.properties to graph them.

Cheers ... Jonathan.

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq

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

jonathan sartin | 1 Nov 21:46 2005

Re: [opennms-discuss] mib2opennms 'voiss_trapV1.my' contains errors, output may be flawed

Miles Taylor wrote:
> I am trying to run mib2opennms against a MIB, and I am only receiving
> the error "'voiss_trapV1.my' contains errors, output may be flawed".  
>  The command I am running is mib2opennms -v  -f /tmp/out.xml
> voiss_trapV1.my.
> 
> The xml file only contains
> <!-- Start of auto generated data from MIB: OPENNMS-MIB -->
> <!-- End of auto generated data from MIB: OPENNMS-MIB -->
> 
> 
> Can anyone tell me what is  wrong with the the MIB I am trying to convert?

Well, not immediately ;-), it's kinda long for these tired eyes.

First thing I notice is that it imports voissTraps from VOISS-MIB. As
you've not included any other mibs in your mib2opennms invocation that
may cause problems.

At the risk of being tedious, there's a pretty good tutorial on
mib2opennms here: http://www.opennms.org/wiki/index.php?page=mib2opennms

If you genuinely think that the MIB is flawed you can do some limited
syntax checking using smilint, which is part of the libsmi distribution
(not OpenNMS).

Cheers .. Jonathan.

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq

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

jonathan sartin | 1 Nov 22:11 2005

Re: [opennms-discuss] SNMP trap & Events

Marios Fotiou wrote:
> 
> 
> Dear friends,
> 
>  
> 
> I have recently configured my OpenNMS system to collect traps from a
> server at our network. These traps are generated by the service software
> run by this server and have the following difference to all the others
> that I have come across. Instead of having a number of varbinds it only
> has 1 and it is a long string of the format
> 
>  
> 
> “DESCRIPTION=.....|DATE=...|LEVEL=major|SERVICE=...|APPLI=...”
> 
>  
> 
> The contents of the sting are programmed from the software.

Dontya just love those vendors.

> 
>  
> 
> Is there any way to filter out so as to program the eventd to recognize
> the different contents of the string?
> 
>  
> 
> For now I have imported an entry at event.cfg for distinguishing these
> traps and display only the string but they all come as “normal” as this
> is the static severity that I have assigned to this event.
> 
>  
> 
> Does anyone have any ideas on how to solve this problem and create
> proper structured events using the info in these traps?
> 

Yes, but I don't have an immediate answer. One way would be to use
scriptd to invoke an external script to parse the single varbind and
return an appropriate event to OpenNMS.

There's quite a lot on scriptd in the release notes and in the discuss
list archives.

Cheers ... Jonathan.

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq

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

Miles Taylor | 2 Nov 01:37 2005
Picon

Re: [opennms-discuss] mib2opennms 'voiss_trapV1.my' contains errors, output may be flawed

I did as you suggested and ran the smilint command against the MIB and
it came back 225 errors.    From the 30 or so that I checked they all
appear to center around two lines in each trap definition:

VARIABLES { severity, infoString }
DESCRIPTION
"TCP/IP connection to other Call Agent Server(s) has been lost or
re-established.
This includes Conference Boards and Gateways as well"

This is beginning of the output of smilint

voiss_trapV1.my:52: syntax error, unexpected '{', expecting
UPPERCASE_IDENTIFIER or LOWERCASE_IDENTIFIER or NUMBER
voiss_trapV1.my:53: syntax error, unexpected VARIABLES
voiss_trapV1.my:54: syntax error, unexpected DESCRIPTION
voiss_trapV1.my:61: syntax error, unexpected VARIABLES

I checked some of the other mibs that come with net-snmp and VARIABLES
and DESCRIPTION appear to be valid keywords.   What am I missing?

Thanks for the help.

Here is the VOISS-MIB.txt

   VOISS-MIB DEFINITIONS ::= BEGIN

   IMPORTS
     enterprises FROM RFC1155-SMI
     OBJECT-TYPE FROM RFC-1212
     DisplayString FROM RFC1158-MIB
     TRAP-TYPE FROM RFC-1215;

   vocaldata                    OBJECT IDENTIFIER ::= { enterprises 6463 }
   voissMibs                    OBJECT IDENTIFIER ::= { vocaldata 1 }
   voissTraps                   OBJECT IDENTIFIER ::= { voissMibs 1 }
   voissCallAgent               OBJECT IDENTIFIER ::= { voissMibs 2 }
   voissGateway                 OBJECT IDENTIFIER ::= { voissMibs 3 }
   voissConfBridge              OBJECT IDENTIFIER ::= { voissMibs 4 }
   voissAgentCaps               OBJECT IDENTIFIER ::= { voissMibs 5 }
   voissDiscoveryMibs           OBJECT IDENTIFIER ::= { voissCallAgent 1 }
   voissMeasurements            OBJECT IDENTIFIER ::= { voissCallAgent 2 }
   voissSystemStates            OBJECT IDENTIFIER ::= { voissCallAgent 3 }
   voissSIPMib                  OBJECT IDENTIFIER ::= { voissCallAgent 4 }
   voissSIPMibCaps              OBJECT IDENTIFIER ::= { voissAgentCaps 1 }

--************************************************************************

--                 Textual conventions
-- ***********************************************************************

StartTime ::= DisplayString(SIZE(1..64))
-- DESCRIPTION:      A value in the format of a character string.
-- The start time is when a device is started.
-- It is represented like  Fry Mar 23 2001 00:00:00: "

DeviceName ::= DisplayString(SIZE(0..64))
-- DESCRIPTION: Any given name of the the device or system.
--  It could be an Ip host name or a name just describes the type of device

SWVersion ::= DisplayString(SIZE(1..32))
--DESCRIPTION:  The software release version
-- The format is based on the type of device/system

PhoneNumber ::=  DisplayString(SIZE(20))
--DESCRIPTION: the complete 10 disgits of a phone number.

DisplayTime ::=  DisplayString(SIZE(1..64))
-- DESCRIPTION:      A value in the format of a character string.
-- It is represented like  Fry Mar 23 2001 00:00:00: "
-- ***************************End of Texual conventions *****************

END

On 11/1/05, jonathan sartin <jonathan <at> opennms.org> wrote:
> Miles Taylor wrote:
> > I am trying to run mib2opennms against a MIB, and I am only receiving
> > the error "'voiss_trapV1.my' contains errors, output may be flawed".
> >  The command I am running is mib2opennms -v  -f /tmp/out.xml
> > voiss_trapV1.my.
> >
> > The xml file only contains
> > <!-- Start of auto generated data from MIB: OPENNMS-MIB -->
> > <!-- End of auto generated data from MIB: OPENNMS-MIB -->
> >
> >
> > Can anyone tell me what is  wrong with the the MIB I am trying to convert?
>
> Well, not immediately ;-), it's kinda long for these tired eyes.
>
> First thing I notice is that it imports voissTraps from VOISS-MIB. As
> you've not included any other mibs in your mib2opennms invocation that
> may cause problems.
>
> At the risk of being tedious, there's a pretty good tutorial on
> mib2opennms here: http://www.opennms.org/wiki/index.php?page=mib2opennms
>
> If you genuinely think that the MIB is flawed you can do some limited
> syntax checking using smilint, which is part of the libsmi distribution
> (not OpenNMS).
>
> Cheers .. Jonathan.
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/wiki/index.php?page=MailingListFaq
>
> 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
>

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq

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

Richard Thornton | 2 Nov 05:01 2005
Picon

[opennms-discuss] My collectd-configuration.xml is messed up, is this normal?

Hi

All the linefeeds are gone from my collectd-configuration.xml making
it hard to read and edit, is this normal?

Regards
Richard

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq

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

Pedram Messri | 2 Nov 06:33 2005

[opennms-discuss] Notifications Come in all at Once

Hey Guys,

 

I receive notifications all at once usually about POP3 and FTP in a matter of
one or two minutes I may receive somewhere between 30 to 100 notifications that
the service is down on a node, although it is not.

I have tried changing the configuration for initial-delay in the destinationPaths.xml file
to 1m for 1minute before it sends a response to the admin, and have also changed the
parameter key="retry" to value="3" on all of the services which had a 1 or a 2 before in
the poller-configuration.xml file.

Anyone have any idea of what may be causing this?

 

 

Thanks,

Pedram

jonathan sartin | 2 Nov 08:29 2005

Re: [opennms-discuss] My collectd-configuration.xml is messed up, is this normal?

--------- Original Message --------
From: opennms-discuss <at> lists.sourceforge.net
To: opennms-discuss <at> lists.sourceforge.net
<opennms-discuss <at> lists.sourceforge.net>
Subject: [opennms-discuss] My collectd-configuration.xml is messed up, is
this normal?

Yes.

$OPENNMS_HOME/bin/xml.reader.pl -w <filename> will sort the machine written
xml files out so that they are easier to edit.

.... Jonathan

________________________________________________
Message sent using UebiMiau 2.7.2

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq

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