I am trying to use passive check from my server and send it to the nagios core server.
My Passive check command that I send from the server is the below:
Code: Select all
Select all/home/nagiosscripts/send_nrdp.sh -u http://172.25.28.119/nrdp/ -t nb65fgtadI39 -H "sbc-siplab02" -s "dbstatus" -S 2 -o "DB status is DOWN"Code: Select all
Select all[1467022444] Error: Got check result for service 'dbstatus' on host 'sbc-siplab02'. Unable to find serviceCode: Select all
Select alldefine host{
host_name sbc-siplab02
address 172.25.25.11
check_command check-host-alive
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 5
contact_groups admins
notification_interval *
notification_period workhours
}
define service{
host_name sbc-siplab02
service_description dbstatus
check_period 24x7
max_check_attempts 5
normal_check_interval 5
retry_check_interval 1
}and when I run
Code: Select all/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
I get the following error:
Error: Could not register service (config file '/usr/local/nagios/etc/objects/store.cfg', starting on line 33)
line 33 is the dbstatus service I have added.
Any idea what is missing in this scenario ?
Thanks,
Peter