From: Schmidt P. <Pat...@mu...> - 2010-01-29 08:54:29
|
Ok thanks for this advice. I expected something like that. I changed the service names via regedit now and it seems to work with this shorter versions. Maybe someone is able to increase the length of service names or better educate the software engineers to use shorter names for their services :) -----Ursprüngliche Nachricht----- Von: Ronny Trommer [mailto:r.t...@op...] Gesendet: Donnerstag, 28. Januar 2010 19:40 An: General OpenNMS Discussion Betreff: Re: [opennms-discuss] monitoring windows-service fails if service name is too long The maximum char-length for a service name is 32 characters. Your Service EASY for mySAP HTTP-Content-Server is 35 characters long, this is the problem. Hint: Don´t use spaces in your monitor names, without spaces you can use rules like this isEASY-mySAP-HTTP-Content-Server the "is" prefix will not work with spaces in your service name. Hope it helps -- Ronny Trommer (Germany) Web: http://www.open-factory.org IRC: irc.freenode.org - #opennms PGP key: 7ED9 1A00 0BD9 EB84 9F63 5808 B1BC E829 E383 98A0 Keyserver: keyserver.pgp.com On Jan 28, 2010, at 3:52 PM, Schmidt Patrick wrote: > Im trying to monitor a windows service with Win32ServiceMonitor. This works fine for nearly every windows service, but if the display-name of the service is too long it fails. > > Example of service which works: > > <monitor service="EASY Portal-Manager" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor"/> > > Example of a service which does not work: > > <monitor service="EASY for mySAP HTTP-Content-Server" class-name="org.opennms.netmgt.poller.monitors.Win32ServiceMonitor"/> > > In the /opt/opennms/logs/daemon/output.log I get the following error-message: > > org.springframework.dao.DataIntegrityViolationException: ConnectionCallback; SQL []; FEHLER: Wert zu lang f?r Typ character varying(32); nested exception is org.postgresql.util.PSQLException: FEHLER: Wert zu lang f?r Typ character varying(32) > > Which means in english: "Error: Value to long for type character varying(32)...." > > The error is occuring while restarting the opennms-service. > > Does anyone getting the same error or maybe got a solution for this? > > Cheers, > > Patrick > > > > ____________________________________________________________________________________________________________ > Amtsgericht Wittlich GnR 30261 > > Vorstand: Manfred Graff, Alphonse Ferber, Patrick Krings, Ignaz Hontheim, Ludwig Jung, Karl-Heinz Steffens, Rainer Sievers > Vorsitzender des Aufsichtsrates: Klaus Land > > ------------------------------------------------------------------------------ > > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com_______________________________________________ > 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 ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ 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 ____________________________________________________________________________________________________________ Amtsgericht Wittlich GnR 30261 Vorstand: Manfred Graff, Alphonse Ferber, Patrick Krings, Ignaz Hontheim, Ludwig Jung, Karl-Heinz Steffens, Rainer Sievers Vorsitzender des Aufsichtsrates: Klaus Land |