Forum Linux.debian/ubuntu Mise en service de openNMS

Posté par  .
Étiquettes :
0
10
juin
2006

Bonjour à toutes et à tous.

Je suis presque à la fin de la mise en place de OPENNMS sous debian mais un problème persiste.

Je n'arrive pas à exécuter le script de création des bases.

J'ai eu des résulta différents :


Quand j'exécute le script en tant que root :


OpenNMS:~# /usr/share/opennms/bin/install -disU  
==========================================================================  
OpenNMS Installer Version `{mathjax} Id: Installer.java,v 1.35.2.1 2005/03/13 03:57:20 djgregor Exp `  
==========================================================================  

Configures PostgreSQL tables, users, and other miscellaneous settings.  

Exception in thread "main" org.postgresql.util.PSQLException: A connection error has occurred: org.postgresql.util.PSQLException: FATAL: IDENT authentication ?chou?e pour l'utilisateur "postgres"  

at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV3(AbstractJdbc1Connection.java:337)  
at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:214)  
at org.postgresql.Driver.connect(Driver.java:139)  
at java.sql.DriverManager.getConnection(DriverManager.java:512)  
at java.sql.DriverManager.getConnection(DriverManager.java:171)  
at org.opennms.install.Installer.databaseConnect(Installer.java:616)  
at org.opennms.install.Installer.install(Installer.java:195)  
at org.opennms.install.Installer.main(Installer.java:2453)  

Donc le lance le script en tant que postgres et voila le résultat :



OpenNMS:~# su - postgres  

postgres@OpenNMS:~$ /usr/share/opennms/bin/install -disU  
==============================================================================  
OpenNMS Installer Version `{mathjax} Id: Installer.java,v 1.35.2.1 2005/03/13 03:57:20 djgregor Exp `  
==============================================================================  

Configures PostgreSQL tables, users, and other miscellaneous settings.  

- checking database version... 7.4  
- Full version string: PostgreSQL 7.4.7 on i386-pc-linux-gnu, compiled by GCC i386-linux-gcc (GCC) 3.3.5 (Debian 1:3.3.5-12)  
* using 'opennms' as the PostgreSQL user for OpenNMS  
* using 'opennms' as the PostgreSQL password for OpenNMS  
* using 'opennms' as the PostgreSQL database name for OpenNMS  
- using SQL directory... /usr/share/opennms/etc  
- using create.sql... /usr/share/opennms/etc/create.sql  
- using iplike module... /usr/lib/postgresql/lib/opennms/iplike.so  
- checking database for old backup tables... NONE  
- checking for rows that violate constraints... NONE  
- creating tables...  
- checking table "serverMap"... UPTODATE  
- checking table "serviceMap"... UPTODATE  
- checking table "distPoller"... UPTODATE  
- checking table "node"... UPTODATE  
- checking table "ipInterface"... UPTODATE  
- checking table "snmpInterface"... UPTODATE  
- checking table "service"... UPTODATE  
- checking table "ifServices"... UPTODATE  
- checking table "events"... UPTODATE  
- checking table "outages"... UPTODATE  
- checking table "vulnerabilities"... UPTODATE  
- checking table "vulnPlugins"... UPTODATE  
- checking table "notifications"... UPTODATE  
- checking table "usersNotified"... UPTODATE  
- checking table "assets"... UPTODATE  
- creating tables... DONE  
- creating sequences...  
- checking "nodeNxtId" minimum value... 1  
- removing sequence "nodeNxtId"... REMOVED  
- creating sequence "nodeNxtId"... OK  
- checking "serviceNxtId" minimum value... 1  
- removing sequence "serviceNxtId"... REMOVED  
- creating sequence "serviceNxtId"... OK  
- checking "eventsNxtId" minimum value... 1  
- removing sequence "eventsNxtId"... REMOVED  
- creating sequence "eventsNxtId"... OK  
- checking "outageNxtId" minimum value... 1  
- removing sequence "outageNxtId"... REMOVED  
- creating sequence "outageNxtId"... OK  
- checking "notifyNxtId" minimum value... 1  
- removing sequence "notifyNxtId"... REMOVED  
- creating sequence "notifyNxtId"... OK  
- checking "vulnNxtId" minimum value... 1  
- removing sequence "vulnNxtId"... REMOVED  
- creating sequence "vulnNxtId"... OK  
- creating sequences... DONE  
- creating indexes...  
- creating index "server_name_idx"... EXISTS  
- creating index "servicemap_name_idx"... EXISTS  
- creating index "serviceMap_ipaddr_idx"... EXISTS  
- creating index "node_id_type_idx"... EXISTS  
- creating index "node_label_idx"... EXISTS  
- creating index "ipinterface_nodeid_ipaddr_ismanaged_idx"... EXISTS  
- creating index "ipinterface_ipaddr_ismanaged_idx"... EXISTS  
- creating index "ipinterface_ipaddr_idx"... EXISTS  
- creating index "ipinterface_nodeid_ismanaged_idx"... EXISTS  
- creating index "ipinterface_nodeid_idx"... EXISTS  
- creating index "snmpinterface_nodeid_ifindex_idx"... EXISTS  
- creating index "snmpinterface_nodeid_idx"... EXISTS  
- creating index "snmpinterface_ipaddr_idx"... EXISTS  
- creating index "ifservices_nodeid_ipaddr_status"... EXISTS  
- creating index "ifservices_nodeid_status"... EXISTS  
- creating index "ifservices_nodeid_idx"... EXISTS  
- creating index "ifservices_serviceid_idx"... EXISTS  
- creating index "ifservices_nodeid_serviceid_idx"... EXISTS  
- creating index "events_uei_idx"... EXISTS  
- creating index "events_nodeid_idx"... EXISTS  
- creating index "events_ipaddr_idx"... EXISTS  
- creating index "events_serviceid_idx"... EXISTS  
- creating index "events_time_idx"... EXISTS  
- creating index "events_severity_idx"... EXISTS  
- creating index "events_log_idx"... EXISTS  
- creating index "events_display_idx"... EXISTS  
- creating index "events_ackuser_idx"... EXISTS  
- creating index "events_acktime_idx"... EXISTS  
- creating index "outages_svclostid_idx"... EXISTS  
- creating index "outages_svcregainedid_idx"... EXISTS  
- creating index "outages_nodeid_idx"... EXISTS  
- creating index "outages_ipaddr_idx"... EXISTS  
- creating index "outages_serviceid_idx"... EXISTS  
- creating index "outages_regainedservice_idx"... EXISTS  
- creating index "vulnerabilities_nodeid_idx"... EXISTS  
- creating index "vulnerabilities_ipaddr_idx"... EXISTS  
- creating index "vulnerabilities_severity_idx"... EXISTS  
- creating index "vulnerabilities_port_idx"... EXISTS  
- creating index "vulnerabilities_protocol_idx"... EXISTS  
- creating index "vulnplugins_plugin_idx"... EXISTS  
- creating index "notifications_ipaddr_idx"... EXISTS  
- creating index "notifications_serviceid_idx"... EXISTS  
- creating index "notifications_eventid_idx"... EXISTS  
- creating index "notifications_respondtime_idx"... EXISTS  
- creating index "notifications_answeredby_idx"... EXISTS  
- creating index "userid_notifyid_idx"... EXISTS  
- creating indexes... DONE  
- inserting initial table data for "distPoller"... EXISTS  
- checking if database "opennms" is unicode... ALREADY UNICODE  
- checking for stale iplike references... REMOVED  
- checking for stale eventtime.so references... CLEAN  
- adding iplike database function... OK  
- adding PL/pgSQL call handler... EXISTS  
- adding PL/pgSQL language module... EXISTS  
- adding stored procedures...  
- getManagePercentAvailIntfWindow.sql... EXISTS  
- getManagePercentAvailNodeWindow.sql... EXISTS  
- getManagedOutageForIntfInWindow.sql... EXISTS  
- getManagedOutageForNodeInWindow.sql... EXISTS  
- getManagedServiceCountForIntf.sql... EXISTS  
- getManagedServiceCountForNode.sql... EXISTS  
- getOutageTimeInWindow.sql... EXISTS  
- getPercentAvailabilityInWindow.sql... EXISTS  
Exception in thread "main" java.io.IOException: Permission denied  
at java.io.UnixFileSystem.createFileExclusively(Native Method)  
at java.io.File.createNewFile(File.java:828)  
at org.opennms.install.Installer.createConfiguredFile(Installer.java:293)  
at org.opennms.install.Installer.install(Installer.java:283)  
at org.opennms.install.Installer.main(Installer.java:2453)  
________________________________  

Mais le script ne se fini quand méme pas.

Je n'ai pas défini de mot de passe pour l'utilisateur postgres (ni dans la liste des utilisateurs ni dans la gestion des droit de la base.

Je n'arrive pas à savoir si le script utilise un mot de passe pour postgres ou pas

Merci d'avance à toutes et à tous

PS : Je me sers de la doc que l'on peut trouver à cette adresse : https://web.archive.org/web/20150502055308/http://www.linux-france.org/article/install/debian/opennms/OpenNMS-Installation_Guide-Debian.pdf (NdM: remplacé par un lien vers archive.org)

Nicolas LAMBERT

nicolas.lambert@ctba.fr

Technicien Exploitation du Parc informatique

05 56 43 64 65

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.