[Spacewalk-list] Enable Monitoring

tiesinga tiesinga at astro.rug.nl
Sun Aug 17 20:13:00 UTC 2008


Hi,

Thanks for your help.
I have found strange values in /etc/rhn/cluster.ini
I have changed the values. After that it is possible to connect to the 
database.

If I run now ' /etc/init.d/Monitoring start '  I get an other error 
messages.
Do I missing some packages?

2008-08-17 21:55:00 Monitoring: Debug level = 0
2008-08-17 21:55:00 Monitoring: Switches: restart
2008-08-17 21:55:00 Monitoring: STOPPING
2008-08-17 21:55:00 InstallSoftwareConfig: STOPPING
2008-08-17 21:55:00 InstallSoftwareConfig: STOPPED OK
2008-08-17 21:55:00 InstallSoftwareConfig: ============ STATUS 
===============
2008-08-17 21:55:00 InstallSoftwareConfig: Last action: stop
2008-08-17 21:55:00 InstallSoftwareConfig: STOPPED
2008-08-17 21:55:00 InstallSoftwareConfig: 
===================================
2008-08-17 21:55:00 Monitoring: STOPPED OK
2008-08-17 21:55:00 Monitoring: STARTING...
2008-08-17 21:55:00 InstallSoftwareConfig: STARTING...
2008-08-17 21:55:00 InstallSoftwareConfig: Grabbing local config info
2008-08-17 21:55:00 InstallSoftwareConfig:      !! Reference to 
nonexistent macro 'NPVAR'

2008-08-17 21:55:00 InstallSoftwareConfig: START HAD ERRORS
2008-08-17 21:55:00 InstallSoftwareConfig: ============ STATUS 
===============
2008-08-17 21:55:00 InstallSoftwareConfig: Last action: start
2008-08-17 21:55:00 InstallSoftwareConfig: WARNING: STARTED BUT *NOT* 
RUNNING
2008-08-17 21:55:00 InstallSoftwareConfig: ERRORS ENCOUNTERED DURING 
LAST ACTION:
2008-08-17 21:55:00 InstallSoftwareConfig:      !! Reference to 
nonexistent macro 'NPVAR'

2008-08-17 21:55:00 InstallSoftwareConfig: 
===================================
2008-08-17 21:55:00 Monitoring:         !! Monitoring configuration load 
failed
2008-08-17 21:55:00 Monitoring:         !! Monitoring configuration not 
loaded - not starting MOC functions!
2008-08-17 21:55:00 Monitoring: START HAD ERRORS

-- Eite Tiesinga


Clifford Perry schreef:
> tiesinga wrote:
>> Hi,
>>
>> I solved the problem Not able to write to /etc/rhn/cluster.ini
>> On Centos 5.2 the following message appears in the log file 
>> /var/log/secure
>>
>> Jul 31 15:39:39 satellite sudo:   tomcat : sorry, you must have a tty 
>> to run sudo ; TTY=unknown ; PWD=/usr/share/tomcat5 ; USER=root ; 
>> COMMAND=/usr/bin/rhn-config-satellite.pl --target=/etc/rhn/rhn.conf 
>> --option=web.is_monitoring_backend=0 
>> --option=server.satellite.http_proxy_username= 
>> --option=server.satellite.http_proxy= 
>> --option=server.satellite.http_proxy_password= 2>&1 > /dev/null
>>
>> I have removed the following line in /etc/sudoers
>> Defaults    requiretty
>>
>> After this change I was able  to  activate monitoring.
>> Still there are some problems. The package SatConfig-general is not 
>> available in the repository i386.
>> I have build from the git sources.
>> After installation of this package I have the following problem.
>>
>> When start /etc/init.d/Monitoring I get  the following messages:
>>
>> 2008-08-05 22:14:18 Monitoring: Debug level = 0
>> 2008-08-05 22:14:18 Monitoring: Switches: restart
>> 2008-08-05 22:14:18 Monitoring: STOPPING
>> 2008-08-05 22:14:18 InstallSoftwareConfig: STOPPING
>> 2008-08-05 22:14:18 InstallSoftwareConfig: STOPPED OK
>> 2008-08-05 22:14:18 InstallSoftwareConfig: ============ STATUS 
>> ===============
>> 2008-08-05 22:14:18 InstallSoftwareConfig: Last action: stop
>> 2008-08-05 22:14:18 InstallSoftwareConfig: STOPPED
>> 2008-08-05 22:14:18 InstallSoftwareConfig: 
>> ===================================
>> 2008-08-05 22:14:18 Monitoring: STOPPED OK
>> 2008-08-05 22:14:18 Monitoring: STARTING...
>> 2008-08-05 22:14:18 InstallSoftwareConfig: STARTING...
>> 2008-08-05 22:14:18 InstallSoftwareConfig: Grabbing local config info
>> DBI connect('spacewalk','spacewalk',...) failed: ORA-12154: TNS:could 
>> not resolve the connect identifier specified (DBD ERROR: 
>> OCIServerAttach) at 
>> /usr/lib/perl5/site_perl/5.8.8/NOCpulse/NOCpulseini.pm line 59
>> 2008-08-05 22:14:19 InstallSoftwareConfig:      !! ERROR:  connect 
>> failed: ORA-12154: TNS:could not resolve the connect identifier 
>> specified (DBD ERROR: OCIServerAttach)
>>
>> 2008-08-05 22:14:19 InstallSoftwareConfig: START HAD ERRORS
>> 2008-08-05 22:14:19 InstallSoftwareConfig: ============ STATUS 
>> ===============
>> 2008-08-05 22:14:19 InstallSoftwareConfig: Last action: start
>> 2008-08-05 22:14:19 InstallSoftwareConfig: WARNING: STARTED BUT *NOT* 
>> RUNNING
>> 2008-08-05 22:14:19 InstallSoftwareConfig: ERRORS ENCOUNTERED DURING 
>> LAST ACTION:
>> 2008-08-05 22:14:19 InstallSoftwareConfig:      !! ERROR:  connect 
>> failed: ORA-12154: TNS:could not resolve the connect identifier 
>> specified (DBD ERROR: OCIServerAttach)
>>
>> 2008-08-05 22:14:19 InstallSoftwareConfig: 
>> ===================================
>> 2008-08-05 22:14:19 Monitoring:         !! Monitoring configuration 
>> load failed
>> 2008-08-05 22:14:19 Monitoring:         !! Monitoring configuration 
>> not loaded - not starting MOC functions!
>> 2008-08-05 22:14:19 Monitoring: START HAD ERRORS
>>
>> Now there is a oracle connection problem.
>> Do you now how to solve this problem?
>
> Nothing obvious comes to mind, I assume tnsnames.ora is good. Login to 
> UI to to Tools and Configuration Monitoring Config and check that 
> entries listed in UI are indeed correct.
>
> This data is written to DB, read out of DB and put into file 
> /etc/NOCpulse.ini - you can check its contents for DB connections are 
> also sane.
> Also /etc/rhn/cluster.ini has some DB connection settings.
>
> Cliff
>
>>
>> -- Eite Tiesinga
>>
>> Clifford Perry schreef:
>>> E. Tiesinga wrote:
>>>> Hi,
>>>>
>>>> If i enable monitoring i get the following WEB TRACEBACK message:
>>>>
>>>> The following exception occurred while executing this request:
>>>> POST /rhn/admin/config/GeneralConfig.do
>>>>
>>>> Date:7/31/08 3:39:45 PM CEST
>>>> Headers:
>>>>  host: satellite.intra.astro.rug.nl
>>>>  user-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) 
>>>> Gecko/2008071616 CentOS/3.0.1-1.el5.centos Firefox/3.0.1
>>>>  accept: 
>>>> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
>>>>  accept-language: en-us,en;q=0.5
>>>>  accept-encoding: gzip,deflate
>>>>  accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>>>>  Keep-Alive: 300
>>>>  connection: keep-alive
>>>>  referer: 
>>>> https://satellite.intra.astro.rug.nl/rhn/admin/config/GeneralConfig.do
>>>>  cookie: JSESSIONID=D44571DC347D7B1FB52546E5DFED441E; 
>>>> __utmz=198748844.1216122395.24.15.utmccn=(referral)|utmcsr=intra.astro.rug.nl|utmcct=/intranet/secr/map.html|utmcmd=referral; 
>>>> __utma=198748844.491097166.1200067213.1213276589.1216122395.24; 
>>>> pxt-session-cookie=333x6c01bcf128b2d816acb23e1fdb97ac99
>>>>  content-type: application/x-www-form-urlencoded
>>>>  content-length: 388
>>>>  Max-Forwards: 10
>>>>
>>>> Request:
>>>> Local Name = satellite.intra.astro.rug.nl
>>>> Server Name = satellite.intra.astro.rug.nl
>>>> Requested Session Id came from Cookie
>>>> Requested Session Valid = true
>>>> Session = 
>>>> org.apache.catalina.session.StandardSessionFacade at 10876bf[session=StandardSession[D44571DC347D7B1FB52546E5DFED441E]] 
>>>>
>>>> Protocol = https
>>>> Request Locale = en_US
>>>> Request Character Encoding = UTF-8
>>>> Attribute Names = rhnActiveLang, javax.servlet.request.ssl_session, 
>>>> generalConfigForm, org.apache.struts.action.MESSAGE, 
>>>> javax.servlet.jsp.jstl.fmt.timeZone.request, session, 
>>>> javax.servlet.request.key_size, __sitemesh__filterapplied, 
>>>> javax.servlet.request.cipher_suite, requestedUri, 
>>>> org.apache.struts.action.mapping.instance, 
>>>> org.apache.struts.action.MODULE,
>>>> Form Variables:
>>>>  server|satellite|http_proxy_username:  traceback_mail: 
>>>> tiesinga at astro.rug.nl
>>>>  server|satellite|http_proxy:  suite_id:  web|ssl_available: on
>>>>  server|satellite|http_proxy_password:  submitted: true
>>>>  disconnected: on
>>>>  mount_point: /var/satellite
>>>>  server|jabber_server: satellite.intra.astro.rug.nl
>>>>  server|satellite|http_proxy_password_confirm: 
>>>>  web|is_monitoring_backend: on
>>>>
>>>>
>>>> User Information:
>>>> User admin (id 1, org_id 1)
>>>>
>>>> Exception:
>>>> javax.servlet.ServletException: Not able to write to 
>>>> /etc/rhn/cluster.ini, got exit code: 1.  Check that 
>>>> /etc/rhn/cluster.ini exists
>>>>     at 
>>>> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535) 
>>>>
>>>>     at 
>>>
>>>>
>>>> I have already set the permissions of te file  
>>>> /etc/rhn/cluster.ini  to read/write for everyone.
>>>> No result.
>>>>
>>>> What do I wrong?
>>>>
>>>
>>> Humm
>>> - tomcat user not in the sudoers file?
>>> - tomcat/apache groups not setup correctly maybe?
>>>
>>> If this does not make sense, let me know, can dig a bit further.
>>>
>>> Cliff
>>>
>>
>
>




More information about the Spacewalk-list mailing list