2) The installation was reworked using YUM and worked fine but there were problems with restarting the services. The following is the output from the ITMS job that installed the agent:
Script errors: Traceback (most recent call last):
Code: Select all
File "/usr/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
File "ncpa_listener.py", line 83, in <module>
File "/root/ncpa/agent/ncpadaemon.py", line 64, in main
File "/root/ncpa/agent/ncpadaemon.py", line 117, in read_basic_config
File "/root/ncpa/agent/ncpadaemon.py", line 371, in get_uid_gid
KeyError: 'getgrnam(): name not found: nagcmd'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
File "ncpa_listener.py", line 83, in <module>
File "/root/ncpa/agent/ncpadaemon.py", line 64, in main
File "/root/ncpa/agent/ncpadaemon.py", line 117, in read_basic_config
File "/root/ncpa/agent/ncpadaemon.py", line 371, in get_uid_gid
KeyError: 'getgrnam(): name not found: nagcmd'
Script: Installing NCPA Agent for RHEL 6
Loaded plugins: refresh-packagekit, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Local Package Process
Examining /tmp/ncpa-2.0.0.el6.x86_64.rpm: ncpa-2.0.0-1.el6.x86_64
Marking /tmp/ncpa-2.0.0.el6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package ncpa.x86_64 0:2.0.0-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
ncpa x86_64 2.0.0-1.el6 /ncpa-2.0.0.el6.x86_64 14 M
Transaction Summary
================================================================================
Install 1 Package(s)
Total size: 14 M
Installed size: 14 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : ncpa-2.0.0-1.el6.x86_64 1/1
Starting NCPA Listener: [ OK ]
Starting NCPA Passive: [ OK ]
Verifying : ncpa-2.0.0-1.el6.x86_64 1/1
Installed:
ncpa.x86_64 0:2.0.0-1.el6
Complete!
Writing ncpa.cfg...
Stopping NCPA Listener: [FAILED]
Starting NCPA Listener: [FAILED]
Restarting NCPA agent with updated config file...
Setting user rights...
Done.
The script installs the agent, then copied a new version of ncpa.cfg and restarts the listener and passive services.
3) When I run
/etc/init.d/ncpa_listener status
I get
Code: Select all
File "/usr/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
File "ncpa_listener.py", line 83, in <module>
File "/root/ncpa/agent/ncpadaemon.py", line 64, in main
File "/root/ncpa/agent/ncpadaemon.py", line 117, in read_basic_config
File "/root/ncpa/agent/ncpadaemon.py", line 371, in get_uid_gid
KeyError: 'getgrnam(): name not found: nagcmd'