[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - Heartbeat function

Cheshire Cat Computing

Software support and information
It is currently Wed Nov 12, 2025 9:12 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Heartbeat function
PostPosted: Sat Sep 06, 2008 12:26 am 
Offline
User

Joined: Thu Jul 17, 2008 6:20 am
Posts: 3
Hello@all!!

We are using the nagios eventlog agent in the version 1.8.3 for checking our daily backups. It's works fine!
But we have some troubles with the integrated heartbeat function.

At the nagios website the service has often the status:
EventLog Agent UNKNOWN 09-05-2008 13:09:08 0d 0h 9m 8s 1/1 UNKNOWN: Check agent is running

But sometimes the service says "ok" and I can see, if the monitoring service will be restarted.
I don't know if this is a serious problem, but that doesn't look very nice. :)

I have to say sorry for my bad english.
Thank you all in advance.

Kind regards
Björn

My configs:

define service{
service_description EventLog Agent
active_checks_enabled 1
passive_checks_enabled 1
flap_detection_enabled 0
check_period 24x7
max_check_attempts 1
normal_check_interval 15
retry_check_interval 1
check_command check_dummy!3!Check agent is running
contact_groups admins
notification_interval 120
notification_period 24x7
notification_options c,r
hostgroup_name kivbf_standard
}

Nagios.log:
[1220522995] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;a1habs001;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523002] PASSIVE SERVICE CHECK: a1habs001;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523002] SERVICE ALERT: a1habs001;EventLog Agent;OK;HARD;1;HEARTBEAT [INFO #0]: Service running OK
[1220523172] SERVICE ALERT: a1swws002;EventLog Agent;UNKNOWN;HARD;1;UNKNOWN: Check agent is running
[1220523200] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;a1swws003;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523202] PASSIVE SERVICE CHECK: a1swws003;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523202] SERVICE ALERT: a1swws003;EventLog Agent;OK;HARD;1;HEARTBEAT [INFO #0]: Service running OK
[1220523417] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;nagios_serv;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523422] PASSIVE SERVICE CHECK: nagios_serv;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523422] SERVICE ALERT: nagios_serv;EventLog Agent;OK;HARD;1;HEARTBEAT [INFO #0]: Service running OK
[1220523595] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;n1lbrs001;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523602] PASSIVE SERVICE CHECK: n1lbrs001;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523602] SERVICE ALERT: n1lbrs001;EventLog Agent;OK;HARD;1;HEARTBEAT [INFO #0]: Service running OK
[1220523696] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;a1swws001;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523702] PASSIVE SERVICE CHECK: a1swws001;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523702] SERVICE ALERT: a1swws001;EventLog Agent;OK;HARD;1;HEARTBEAT [INFO #0]: Service running OK
[1220523732] SERVICE ALERT: a1swws003;EventLog Agent;UNKNOWN;HARD;1;UNKNOWN: Check agent is running
[1220523752] SERVICE ALERT: n1lbrs001;EventLog Agent;UNKNOWN;HARD;1;UNKNOWN: Check agent is running
[1220523755] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;a1swws003;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523762] PASSIVE SERVICE CHECK: a1swws003;EventLog Agent;0;HEARTBEAT [INFO #0]: Service running OK
[1220523762] SERVICE ALERT: a1swws003;EventLog Agent;OK;HARD;1;HEARTBEAT [INFO #0]: Service running OK
[1220523772] SERVICE ALERT: nagios_serv;EventLog Agent;UNKNOWN;HARD;1;UNKNOWN: Check agent is running


Top
 Profile Send private message  
 
 Post subject: Re: Heartbeat function
PostPosted: Sat Sep 06, 2008 1:02 am 
Offline
User

Joined: Thu Jul 17, 2008 6:20 am
Posts: 3
Ok, I think I got the error. I applied the active checks in the nagios service. This maybe caused the unknown messages.

Thanks@all
With kind regards
Björn


Top
 Profile Send private message  
 
 Post subject: Re: Heartbeat function
PostPosted: Mon Sep 08, 2008 11:58 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Exactly right - you should have 24x7 timeperiod, but disable active checks.

The checkcommand, when run, sets the status to 'unknown', but this should only be triggered by the freshness check. This means that, if the heartbeat stops, the freshness check is triggered which sets it to unknown. Otherwise, nagios just uses the received passive alerts and does not run the checkcommand.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group