Satellite: monitoring not working and seeing 'Can't call method "autoflush" on an undefined value at' in some of the monitoring logs

Solution Verified - Updated -

Issue

  • Trying to start monitoring:
2013-04-03 16:43:00 95: Freshening heartbeat file /var/lib/nocpulse/commands/heartbeat
2013-04-03 16:43:00 176: No commands executed, sleeping 60 seconds
2013-04-03 16:44:00 96: Starting queue run
2013-04-03 16:44:00 95: Freshening heartbeat file /var/lib/nocpulse/commands/heartbeat
2013-04-03 16:44:00 104: >--Attempting to fetch commands (attempt 0)
2013-04-03 16:44:00 95: >---Queue server URL:  https://www.example.com/satconfig/cgi-mod-perl/fetch_commands.cgi?cluster_id=48df0fb6e2ef&node_id=2&role=lead&version=1.0
2013-04-03 16:44:00 95: >---Successfully got command list
2013-04-03 16:44:00 95: >---CommandQueueParser parsing 23 bytes 
2013-04-03 16:44:00 95: >---Parser::parse returning NOCpulse::CommandQueue=HASH(0x3e12d70)
2013-04-03 16:44:00 95: >---CQ::fetch_commands returning NOCpulse::CommandQueue=HASH(0x3e12d70)
2013-04-03 16:44:00 121: >--Fetched 0 commands
2013-04-03 16:44:00 157: Finished processing commands
2013-04-03 16:44:00 164: Checking bloat 
2013-04-03 16:44:00 195: >--I am bloated (159348 kb) and will now restart myself
2013-04-03 16:44:00 83: ***************************************************************************
2013-04-03 16:44:00 84: Starting command execution daemon for cluster 48df0fb6e2ef node 2
2013-04-03 16:44:00 85: ***************************************************************************
2013-04-03 16:44:00 86: Logging to /var/log/nocpulse/execute_commands.log
2013-04-03 16:44:00 87: Log level: 3
2013-04-03 16:44:00 88: Heartbeat file: /var/lib/nocpulse/commands/heartbeat
2013-04-03 16:44:00 89: Heartbeat frequency: 60 seconds
2013-04-03 16:44:00 90: Restart command: /usr/bin/execute_commands
2013-04-03 16:44:00 96: Starting queue run
2013-04-03 16:44:00 95: Freshening heartbeat file /var/lib/nocpulse/commands/heartbeat
2013-04-03 16:44:00 104: >--Attempting to fetch commands (attempt 0)
2013-04-03 16:44:00 95: >---Queue server URL:  https://www.example.com/satconfig/cgi-mod-perl/fetch_commands.cgi?cluster_id=48df0fb6e2ef&node_id=2&role=lead&version=1.0
2013-04-03 16:44:01 95: >---Successfully got command list
2013-04-03 16:44:01 95: >---CommandQueueParser parsing 23 bytes 
2013-04-03 16:44:01 95: >---Parser::parse returning NOCpulse::CommandQueue=HASH(0x1eb72d70)
2013-04-03 16:44:01 95: >---CQ::fetch_commands returning NOCpulse::CommandQueue=HASH(0x1eb72d70)
2013-04-03 16:44:01 121: >--Fetched 0 commands
2013-04-03 16:44:01 157: Finished processing commands
2013-04-03 16:44:01 95: Freshening heartbeat file /var/lib/nocpulse/commands/heartbeat
2013-04-03 16:44:01 176: No commands executed, sleeping 60 seconds
  • But seeing these errors in the related monitoring logs:
$ tail -n 5 AckProcessor-error.log  
2013-04-03 21:13:40  Can't call method "autoflush" on an undefined value at /usr/bin/ack-processor line 401.
2013-04-03 21:13:42  Can't call method "autoflush" on an undefined value at /usr/bin/ack-processor line 401.
2013-04-03 21:13:43  Can't call method "autoflush" on an undefined value at /usr/bin/ack-processor line 401.
2013-04-03 21:13:44  Can't call method "autoflush" on an undefined value at /usr/bin/ack-processor line 401.
2013-04-03 21:13:45  Can't call method "autoflush" on an undefined value at /usr/bin/ack-processor line 401.

$ tail -n 5 Notifier-error.log 
2013-04-03 21:13:15  Can't call method "autoflush" on an undefined value at /usr/bin/notifier line 239.
2013-04-03 21:13:17  Can't call method "autoflush" on an undefined value at /usr/bin/notifier line 239.
2013-04-03 21:13:18  Can't call method "autoflush" on an undefined value at /usr/bin/notifier line 239.
2013-04-03 21:13:19  Can't call method "autoflush" on an undefined value at /usr/bin/notifier line 239.
2013-04-03 21:13:20  Can't call method "autoflush" on an undefined value at /usr/bin/notifier line 239.

$ tail -n 5 GenerateNotifConfig-error.log
2013-04-03 21:13:32  Can't call method "autoflush" on an undefined value at /usr/bin/generate-config line 87.
2013-04-03 21:13:33  Can't call method "autoflush" on an undefined value at /usr/bin/generate-config line 87.
2013-04-03 21:13:35  Can't call method "autoflush" on an undefined value at /usr/bin/generate-config line 87.
2013-04-03 21:13:36  Can't call method "autoflush" on an undefined value at /usr/bin/generate-config line 87.
2013-04-03 21:13:37  Can't call method "autoflush" on an undefined value at /usr/bin/generate-config line 87.

$ tail -n 5 Dequeuer-errors.log
2013-04-03 21:13:23  Can't call method "linenumbers" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SMON.pm line 41.
2013-04-03 21:13:25  Can't call method "linenumbers" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SMON.pm line 41.
2013-04-03 21:13:26  Can't call method "linenumbers" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SMON.pm line 41.
2013-04-03 21:13:27  Can't call method "linenumbers" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SMON.pm line 41.
2013-04-03 21:13:28  Can't call method "linenumbers" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/SMON.pm line 41.

Environment

  • RHN Satellite 5.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content