check_time error


i wanna use check_time plugin ,have these lines in services.cfg file :

define service{
host_name vmachine
service_description time
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 960
notification_period 24x7
check_command check_time

but when i run nagios ive got this error :
” Error: Service check command ‘check_time’ specified in service ‘time’ for host ‘vmachine’ not defined anywhere!
it means it doesn’t know plugins? why ?
how can i solve it ?


check_command check_time

this means you need to have the check_time definition in checkcommands.cfg. the service configuration file doesn’t directly access the plugin.



I realize you may be new to nagios, so take this suggestion as it is meant. You should get very intimate with the documentation and understand each and every part.

The answer to your question can be found at … ml#command