retain_state_information=1
use_retained_scheduling_info=1
service_inter_check_delay_method=s
It’s exactly what there is in my nagios.cfg
max_concurrent_checks=0
It’s exactly what there is in my nagios.cfg
You are saying that nothing is written in **nagios.log** for those serivces?
Are you sure those services are set to active_checks_enabled 1
?
Exactly : nothing in nagios.log is written , and that value is set to 1
Post us your template you’re using for the problematic services. And post us the command definition.
Also check if the check plugin maybe hangs or goes out with the timeout but beyond the timeperiod set for service to be checked.
define timeperiod{
timeperiod_name 24x5_8am
alias 24 Hours A Day, 5 Days A Week , 8am
monday 08:00-08:03
tuesday 08:00-08:03
wednesday 08:00-08:03
thursday 08:00-08:03
friday 08:00-08:03
define service{
use generic-service
host_name AS400DEV
service_description Check_DskSts
check_period 24x5_8am
max_check_attempts 1
normal_check_interval 1
retry_check_interval 1
check_command check_file!'/mnt/flr_as400dev/ok_dsk_dev.txt'!
}
The check_file plugin is used also for other periodical checks (not with custom timeperiods, anyway)
And if i specify another check_period with a custom one (example timeperiod_name 24x7, service is checked)
First, in what state is your server? Do you happen to have to much CPU usage on the server, maybe too >many forks… check those. How many services do you have configured in Nagios?
Have you tried with reinstalling Nagios and Nagios-plugins?
Server is not under press, absolutely. Moreober, i cannot understand why ONLY those checks with
custom timeperiod (check once a day) give me problems !
I updated nagios, from 3.03 to 3.05. Not reinstalled. Should I ? Uninstall and reinstall ?
For the service with check once a day it is enough to define a timeperiod of about 3 minutes and set the >variables like normal_check_interval to about 1 minute and retry_check_interval also to 1 with the >max_check_attempts 1. That way services should be checked within those 3 minutes. Why is that >not happening in your case, is really a mistery to me for now. Hope we will solve it.
I set values as you suggested.
Tomorrow morning i will check again, but i am sure i will get nothing again, just a “no service is scheduled”…
Now service is
Check_DskSts
PENDING N/A 0d 0h 9m 55s+ 1/2 Service check scheduled for Tue Nov 25 08:00:00 CET 2008
I’ll post tomorrow how it will be.
But i am pessimistic…
Thanks one more time for your patience and kindness
Regards