[Spacewalk-list] Monitoring scout

trm asn trm.nagios at gmail.com
Mon Jul 18 15:59:10 UTC 2011


On Mon, Jul 18, 2011 at 3:40 PM, Miroslav Suchy <msuchy at redhat.com> wrote:
> Dne 16.7.2011 19:45, trm asn napsal(a):
>>
>> into that. Now I would like to configure "Monitoring" using SSH. I
>> have enabled one non privileged users to communicate between the
>> servers using ssh key.
>
> Which user?
> It must be nocpulse user. And you must add its ssh key (which you can find
> in WebUI when you click on that scout name) to an authorized_keys on that
> monitored machine.
>
> Mirek
>

Hi,

I have run that using nocpulse.


2011-07-18 21:22:51 96: Starting queue run
2011-07-18 21:22:51 95: Freshening heartbeat file
/var/lib/nocpulse/commands/heartbeat
2011-07-18 21:22:51 104:        Attempting to fetch commands (attempt 0)
2011-07-18 21:22:51 95:         Queue server URL:
https://channel.example.com/satconfig/cgi-mod-perl/fetch_commands.cgi?cluster_id=203a64827eb3&node_id=2&role=lead&version=1.0
2011-07-18 21:22:52 95:         Successfully got command list
2011-07-18 21:22:52 95:         CommandQueueParser parsing 411 bytes
2011-07-18 21:22:52 95:         Parser::parse returning
NOCpulse::CommandQueue=HASH(0x8ced76c)
2011-07-18 21:22:52 95:         CQ::fetch_commands returning
NOCpulse::CommandQueue=HASH(0x8ced76c)
2011-07-18 21:22:52 121:        Fetched 1 commands
2011-07-18 21:22:52 130:        Running command 101
2011-07-18 21:22:52 131:                Command line is:
/usr/bin/scheduleEvents
2011-07-18 21:22:52 95:         Attempting to run command 101
2011-07-18 21:22:52 95:                 Last started: 82; Last completed:  82
2011-07-18 21:22:52 95:         101 is executable (new)
2011-07-18 21:22:52 95:         Executing command ...
2011-07-18 21:22:52 95: Freshening heartbeat file
/var/lib/nocpulse/commands/heartbeat
2011-07-18 21:22:54 95:         Shell command exited with 2 exit status
2011-07-18 21:22:54 95:                 STDOUT:!!! ******* ERROR
******* !!!: NO CONFIG FILE FOR PhysCluster (/etc/rhn/cluster.ini)!!!!
!!! ******* ERROR ******* !!!: NO CONFIG FILE FOR PhysCluster
(/etc/rhn/cluster.ini)!!!!
<?xml version="1.0"?>
<sat_config id="203a64827eb3" version="1.1">
<step name="requestConfigData">
<status>fatalError</status>
<message>Mon Jul 18 21:22:53 2011: ERROR: Spacewalk 1: Cannot generate
configuration: Cannot load satellite information
Message ProbeRecord::get_hostAddress() not understood

TRACEBACK:
 at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Object.pm line 443
        NOCpulse::Object::doesNotUnderstand('ProbeRecord=HASH(0xad0897c)',
'ProbeRecord', 'get_hostAddress') called at
/usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Object.pm line 463
        NOCpulse::Object::AUTOLOAD('ProbeRecord=HASH(0xad0897c)')
called at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/NPRecords.pm line
337
        ProbeRecord::__ANON__('ProbeRecord=HASH(0xad0897c)') called at
/usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/DBRecord.pm line 211
        NOCpulse::DBRecord::Map('ProbeRecord', 'CODE(0xabd2808)')
called at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/NPRecords.pm line
342
        ProbeRecord::LoadForSatellite('ProbeRecord', 1) called at
/usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SatConfig/GenerateConfig.pm
line 60
        eval {...} called at
/usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SatConfig/GenerateConfig.pm
line 59
        eval {...} called at
/usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SatConfig/GenerateConfig.pm
line 19
        NOCpulse::SatConfig::GenerateConfig::handler('Apache2::RequestRec=SCALAR(0xa9c7264)')
called at -e line 0
        eval {...} called at -e line 0

No satellite configuration received from
https://channel.example.com/satconfig/cgi-bin/configdata.cgi?satcluster=203a64827eb3</message>
</step>
<status>error</status>
</sat_config>

2011-07-18 21:22:54 95:                 STDERR:
2011-07-18 21:22:54 154:        Finished with command 101
2011-07-18 21:22:54 157: Finished processing commands
2011-07-18 21:22:54 164: Checking bloat
2011-07-18 21:22:54 198:        I am not bloated (22444 kb)
2011-07-18 21:22:54 95: Freshening heartbeat file
/var/lib/nocpulse/commands/heartbeat
2011-07-18 21:22:54 173: Not sleeping after processing commands
2011-07-18 21:22:54 96: Starting queue run
2011-07-18 21:22:54 95: Freshening heartbeat file
/var/lib/nocpulse/commands/heartbeat
2011-07-18 21:22:54 104:        Attempting to fetch commands (attempt 0)
2011-07-18 21:22:54 95:         Queue server URL:
https://channel.example.com/satconfig/cgi-mod-perl/fetch_commands.cgi?cluster_id=203a64827eb3&node_id=2&role=lead&version=1.0

/\
dE




More information about the Spacewalk-list mailing list