<br><br><div class="gmail_quote">On Mon, Jul 25, 2011 at 9:24 PM, trm asn <span dir="ltr"><<a href="mailto:trm.nagios@gmail.com">trm.nagios@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Jul 22, 2011 at 5:17 PM, Jan Pazdziora <span dir="ltr"><<a href="mailto:jpazdziora@redhat.com" target="_blank">jpazdziora@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div></div><div>On Wed, Jul 20, 2011 at 09:02:40PM +0530, trm asn wrote:<br>
> Hi List,<br>
><br>
><br>
> Using nocpulse user I am creating the probe fron UI. Client end rhnmd is<br>
> running and port 4545 is accessible from spacewalk server. I am able to<br>
> login using that ssh-dss key.  Whatever the prove I am creating it's on<br>
> "PENDING, Awaiting Update" state.<br>
><br>
> SatConfig-generator is already installed. Selinux is in disabled mode. 775<br>
> permission is there for "/var/lib/nocpulse" .<br>
><br>
> Below is my "/var/log/nocpulse/execute_commands.log" files output.<br>
><br>
><br>
><br>
> 2011-07-20 20:46:03 154:        Finished with command 164<br>
> 2011-07-20 20:46:03 157: Finished processing commands<br>
> 2011-07-20 20:46:03 95: Freshening heartbeat file<br>
> /var/lib/nocpulse/commands/heartbeat<br>
> 2011-07-20 20:46:03 176: No commands executed, sleeping 60 seconds<br>
> 2011-07-20 20:47:03 96: Starting queue run<br>
> 2011-07-20 20:47:03 95: Freshening heartbeat file<br>
> /var/lib/nocpulse/commands/heartbeat<br>
> 2011-07-20 20:47:03 104:        Attempting to fetch commands (attempt 0)<br>
> 2011-07-20 20:47:03 95:         Queue server URL:<br>
> <a href="https://spacewalk.example.com/satconfig/cgi-mod-perl/fetch_commands.cgi?cluster_id=203a64827eb3&node_id=2&role=lead&version=1.0" target="_blank">https://spacewalk.example.com/satconfig/cgi-mod-perl/fetch_commands.cgi?cluster_id=203a64827eb3&node_id=2&role=lead&version=1.0</a><br>


> 2011-07-20 20:47:03 95:         Successfully got command list<br>
> 2011-07-20 20:47:03 95:         CommandQueueParser parsing 411 bytes<br>
> 2011-07-20 20:47:03 95:         Parser::parse returning<br>
> NOCpulse::CommandQueue=HASH(0xa17c70c)<br>
> 2011-07-20 20:47:03 95:         CQ::fetch_commands returning<br>
> NOCpulse::CommandQueue=HASH(0xa17c70c)<br>
> 2011-07-20 20:47:03 121:        Fetched 1 commands<br>
> 2011-07-20 20:47:03 130:        Running command 164<br>
> 2011-07-20 20:47:03 131:                Command line is:<br>
> /usr/bin/scheduleEvents<br>
> 2011-07-20 20:47:03 95:         Attempting to run command 164<br>
> 2011-07-20 20:47:03 95:                 Last started: 164; Last completed:<br>
> 164<br>
> 2011-07-20 20:47:03 95:         164 is not executable (old, last started<br>
> 164, last completed 164)<br>
> 2011-07-20 20:47:03 150:        Not executing command 164: 164 is not<br>
> executable (old, last started 164, last completed 164)<br>
<br>
</div></div>This means the command 164 is an old command, already completed.<br>
<br>
You might want to dig deeper into the log file to find the first<br>
occurence of the 164 thing.<br>
<font color="#888888"><br>
--<br>
Jan Pazdziora<br>
Principal Software Engineer, Satellite Engineering, Red Hat<br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank"></a></font></blockquote></div></div><div><br>Hi List,<br><br>Below is the TRACEBACK of  "/var/log/nocpulse/execute_commands.log" <br>
<br>!!! ******* ERROR ******* !!!: NO CONFIG FILE FOR PhysCluster (/etc/rhn/cluster.ini)!!!!<br>
<?xml version="1.0"?><br><sat_config id="203a64827eb3" version="1.1"><br><step name="requestConfigData"><br><status>fatalError</status><br><message>Mon Jul 25 21:18:39 2011: ERROR: Spacewalk 1: Cannot generate configuration: Cannot load satellite information<br>

Message ProbeRecord::get_hostAddress() not understood<br><br>TRACEBACK:<br> at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Object.pm line 443<br>        NOCpulse::Object::doesNotUnderstand('ProbeRecord=HASH(0xa3d4f70)', 'ProbeRecord', 'get_hostAddress') called at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Object.pm line 463<br>

        NOCpulse::Object::AUTOLOAD('ProbeRecord=HASH(0xa3d4f70)') called at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/NPRecords.pm line 337<br>        ProbeRecord::__ANON__('ProbeRecord=HASH(0xa3d4f70)') called at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/DBRecord.pm line 211<br>

        NOCpulse::DBRecord::Map('ProbeRecord', 'CODE(0xa395280)') called at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/NPRecords.pm line 342<br>        ProbeRecord::LoadForSatellite('ProbeRecord', 1) called at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SatConfig/GenerateConfig.pm line 60<br>

        eval {...} called at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SatConfig/GenerateConfig.pm line 59<br>        eval {...} called at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SatConfig/GenerateConfig.pm line 19<br>
        NOCpulse::SatConfig::GenerateConfig::handler('Apache2::RequestRec=SCALAR(0xa20e810)') called at -e line 0<br>
        eval {...} called at -e line 0<br><br>No satellite configuration received from <a href="https://spacewalk.example.com/satconfig/cgi-bin/configdata.cgi?satcluster=203a64827eb3" target="_blank">https://spacewalk.example.com/satconfig/cgi-bin/configdata.cgi?satcluster=203a64827eb3</a></message><br>

</step><br><status>error</status><br></sat_config><br><br><br>No Clue.... , can any one let me know where exactly gone wrong.<br><br>/\<br>dE<br></div></div><br>
</blockquote></div><br>Hi ,<br><br>'ProbeRecord', 'get_hostAddress') ; that error I have resolved by editing "NPRecords.pm" & changed the parameter "hostAddress" to "HOSTADDRESS" .<br>
<br>now my "scout config push" are getting success, but unfortunately still the monitoring status is "PENDING, Awaiting Update" .<br><br><br>-bash-3.2$ rhn-runprobe --probe=261 --log=all=4<br>Can't locate object method "hostname" via package "NOCpulse::Probe::Config::ProbeRecord" at blib/lib/Class/MethodMaker/Engine.pm (autosplit into blib/lib/auto/Class/MethodMaker/Engine/<a href="http://new.al">new.al</a>) line 941.<br>
<br><br>Any idea...<br><br>/\<br>dE<br>