Laurikainen, Tuukka | 1 Dec 2005 10:26
Favicon

[opennms-discuss] Bad file descriptor java exception on report generation

Hello all,

Trying to generate a graphical pdf availability report on 1.3.1-1
(j2sdk1.4), I get the following exceptions on output.log:

java.io.IOException: Bad file descriptor
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(FileInputStream.java:194)
        at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)
        at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:450)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
        at java.io.InputStreamReader.read(InputStreamReader.java:167)
        at java.io.BufferedReader.fill(BufferedReader.java:136)
        at java.io.BufferedReader.readLine(BufferedReader.java:299)
        at java.io.BufferedReader.readLine(BufferedReader.java:362)
        at
org.opennms.netmgt.utils.StreamGobbler.run(StreamGobbler.java:178)
java.io.IOException: Stream closed
        at
java.io.BufferedInputStream.ensureOpen(BufferedInputStream.java:120)
        at
java.io.BufferedInputStream.read(BufferedInputStream.java:270)
        at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:408)
        at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:450)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
        at java.io.InputStreamReader.read(InputStreamReader.java:167)
(Continue reading)

Gomez, Julian Jose | 1 Dec 2005 16:54

RE: [opennms-discuss] Trouble loading New events.xml Please Help!!!

Daniel,
 
Files which are read from within the events/ directory have a specific prefix & suffix
tags. You can't use the output taken from mib2opennms directly, a few things need
to be added. Did you do that?

From: opennms-discuss-admin <at> lists.sourceforge.net [mailto:opennms-discuss-admin <at> lists.sourceforge.net] On Behalf Of tropeano, dan
Sent: Thursday, December 01, 2005 11:16 PM
To: 'opennms-discuss <at> lists.sourceforge.net'
Subject: [opennms-discuss] Trouble loading New events.xml Please Help!!!


  Greetings,

 This is my first Post! I would really appreciate any help with this.... I have been asked to monitor the sun SP interface ( Service Processor) on our Sun v40 systems

 I am able to generate unformatted events through opennms...and I now have a full SunSP.events.xml file that was created with mib2opennms.

but for some reason when it is added to the events directory and the eventconf.xml is edited. upon restarting opennms it hangs and in the logs I see this...

 DEBUG [main] Eventd: Eventconf: Loading event file: /usr/local/opennms/etc/events/SunSp.events.xml
 ERROR [main] Eventd: Failed to load eventd configuration

 If anyone has experienced anything similar I would appreciate any hints where to look for resolution,


 Thanks in advance,
 Daniel Tropeano



tropeano, dan | 1 Dec 2005 16:16

[opennms-discuss] Trouble loading New events.xml Please Help!!!


  Greetings,

 This is my first Post! I would really appreciate any help with this.... I have been asked to monitor the sun SP interface ( Service Processor) on our Sun v40 systems

 I am able to generate unformatted events through opennms...and I now have a full SunSP.events.xml file that was created with mib2opennms.

but for some reason when it is added to the events directory and the eventconf.xml is edited. upon restarting opennms it hangs and in the logs I see this...

 DEBUG [main] Eventd: Eventconf: Loading event file: /usr/local/opennms/etc/events/SunSp.events.xml
 ERROR [main] Eventd: Failed to load eventd configuration

 If anyone has experienced anything similar I would appreciate any hints where to look for resolution,


 Thanks in advance,
 Daniel Tropeano



Tarus Balog | 1 Dec 2005 22:27
Favicon

Re: [opennms-discuss] Trouble loading New events.xml Please Help!!!


tropeano, dan said:

>  DEBUG [main] Eventd: Eventconf: Loading event file:
> /usr/local/opennms/etc/events/SunSp.events.xml
>  ERROR [main] Eventd: Failed to load eventd configuration
>
>  If anyone has experienced anything similar I would appreciate any hints
> where to look for resolution,

Make sure your SunSp.events.xml file starts with an <events> tag and ends
with an </events> tag.

-T

-- 

Tarus Balog
The OpenNMS Group, Inc.
Phone: +1 919 545 2553
Fax:   +1 503-961-7746
Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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

tropeano, dan | 2 Dec 2005 14:55

[opennms-discuss] FW: Trouble loading New events.xml Please Help!!!


  Thank You very much for the quick response! That was the issue, I had not included <events> </events> at the beginning and end of the file.

   I really appreciate the help!


   Thanks again,
   -Daniel      

   

Carl Boberg | 2 Dec 2005 16:39
Picon
Favicon

[opennms-discuss] Gammu anyone?

Hi,

Trying to get ONMS to send me SMS with gammu (1.03)
I can send sms from the cmd line with:

# echo "Hello from  my ONMS box" | gammu --sendsms TEXT <recieving phonenr>

Any ideas how I can put this in a correct way to notificationCommands.xml
I have looked at the FAQ in the WIKI but no luck.
This is how it looks at the moment:

    <command>
      <name>mobilePhoneSMS</name>
      <execute>/usr/local/bin/gammu</execute>
      <comment>for sending GSM messages (SMS)</comment>
      <argument streamed="false">
         <substitution>--sendsms TEXT</substitution>
      </argument>
      <argument streamed="false">
         <switch>-np</switch>
      </argument>
      <argument streamed="false">
         <switch>-tm</switch>
      </argument>
     <argument streamed="false">
         <switch>-subject</switch>
      </argument>
     <argument streamed="false">
         <switch>-service</switch>
      </argument>
    </command>

Any help/ideas are greatly appreciated.

OpenNMS rules!
--------------------------------
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
--------------------------------  

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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

Robert Reilly | 2 Dec 2005 18:19

[opennms-discuss] upgrade to 1.3.1-1

All, I just upgraded to OpenNMS 1.3.1-1 for SUSE9. There were no errors
on install. I can log into to web app no problem. When I started OpenNMS
I got the following error:
opsmon01:/opt/OpenNMS/bin # ./opennms.sh -v start
Starting OpenNMS: Could not connect to localhost on port 8181 (OpenNMS
might not
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Started OpenNMS, but it has not finished starting up

And as I would expect after seeing this messages once in the gui I get 

OpenNMS Disconnect -- is the OpenNMS daemon running?
Last update: Fri Dec 02 12:12:18 EST 2005

Any help is appreciated.
Robert

 	Its All About the Food	
	
Robert Reilly
Sr. UNIX Admin 	Fresh Direct
23-30 Borden Ave
Long Island City, NY. 11101 	
rreilly <at> freshdirect.com
IM: MSN rreilly <at> freshdirect.com 	tel: 
mobile: 	718.928.1172
347.306.2808 	
	
Add me to your address book...	 Want a signature like this?	

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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

clightner | 2 Dec 2005 19:04
Picon

Re: [opennms-discuss] upgrade to 1.3.1-1


I found I had to use the xml format tool (under /OpenNMS/bin) before it
would start.  You can also look under the OpenNMS logs for clues.

Chris Lightner
NYS Division of Parole
Network Specialist

                                                                                                                                                 
                      "Robert Reilly"                                                                                                            
                      <rreilly <at> freshdirect.com>               To:       <opennms-discuss <at> lists.sourceforge.net>                                  
                      Sent by:                                cc:                                                                                
                      opennms-discuss-admin <at> lists.sour        Subject:  [opennms-discuss] upgrade to 1.3.1-1                                     
                      ceforge.net                                                                                                                

                                                                                                                                                 
                      12/02/2005 12:19 PM                                                                                                        
                      Please respond to                                                                                                          
                      opennms-discuss                                                                                                            

All, I just upgraded to OpenNMS 1.3.1-1 for SUSE9. There were no errors
on install. I can log into to web app no problem. When I started OpenNMS
I got the following error:
opsmon01:/opt/OpenNMS/bin # ./opennms.sh -v start
Starting OpenNMS: Could not connect to localhost on port 8181 (OpenNMS
might not
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Could not connect to localhost on port 8181 (OpenNMS might not be
running or cou
Started OpenNMS, but it has not finished starting up

And as I would expect after seeing this messages once in the gui I get

OpenNMS Disconnect -- is the OpenNMS daemon running?
Last update: Fri Dec 02 12:12:18 EST 2005

Any help is appreciated.
Robert

             Its All About the Food

Robert Reilly
Sr. UNIX Admin           Fresh Direct
23-30 Borden Ave
Long Island City, NY. 11101
rreilly <at> freshdirect.com
IM: MSN rreilly <at> freshdirect.com            tel:
mobile:            718.928.1172
347.306.2808

Add me to your address book...              Want a signature like this?

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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 | 2 Dec 2005 22:07
Favicon

Re: [opennms-discuss] Gammu anyone?

Carl Boberg wrote:
> Hi,
> 
> Trying to get ONMS to send me SMS with gammu (1.03)
> I can send sms from the cmd line with:
> 
> # echo "Hello from  my ONMS box" | gammu --sendsms TEXT <recieving phonenr>
> 
> Any ideas how I can put this in a correct way to notificationCommands.xml
> I have looked at the FAQ in the WIKI but no luck.
> This is how it looks at the moment:
> 
>     <command>
>       <name>mobilePhoneSMS</name>
>       <execute>/usr/local/bin/gammu</execute>
>       <comment>for sending GSM messages (SMS)</comment>
>       <argument streamed="false">
>          <substitution>--sendsms TEXT</substitution>
>       </argument>
>       <argument streamed="false">
>          <switch>-np</switch>
>       </argument>
>       <argument streamed="false">
>          <switch>-tm</switch>
>       </argument>
>      <argument streamed="false">
>          <switch>-subject</switch>
>       </argument>
>      <argument streamed="false">
>          <switch>-service</switch>
>       </argument>
>     </command>
> 
> Any help/ideas are greatly appreciated.

The most similar to your requirements would be the one for qpage in
notificationCommands.xml. There has been some discussion on notification
Commands.xml on this list a year or so back, but not for gammu. If gammu
expects the message on stdin, maybe you could wrap it with a shell
script to pass the message on the command line, with a suitable
substitution and switch.

You also probably want to use -subject as your switch for the SMS
content as -tm will probably overrun the maximum length for an SMS. -tm
will substitute the text-message from notifications.xml, -subject, the
subject.

This note in the wiki is a worthwhile read:

http://www.opennms.org/wiki/index.php?page=NotificationEnhancement&highlight=notificationCommands.xml.
It tells you that you need to change <command> to  <command
binary="true"> to execute a system command. It also adds the valuable
nugget that switch and substitution are actually reversed in function
and grammar.

Appropriate switch values are not well documented. You'll have to have a
dig around and experiment. Let us know how you get on....

Cheers ... Jonathan.

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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 | 6 Dec 2005 05:25
Picon

[opennms-discuss] Notification help

Hi

I notice in the official documentation there is doco for events but
none for notifications, I have OpenNMS running but have implemented
neither, my PCI-PCCARD sleeve and Option Globetrotter card just
arrived so I want to set this up to SMS me when thresholds are reached
or devices go down.

Any doco for newbies out there on how to do this?

Regards
Richard

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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