I’m trying to send a simple e-mail notification with the send notification button in director. I configured all like it is in the docs documented. But as you can see in the log below it failed.
information/JsonRpcConnection: No messages for identity ‘icingaagent’ have been received in the last 60 seconds.
warning/JsonRpcConnection: API client disconnected for identity ‘icingaagent’
warning/JsonRpcConnection: API client disconnected for identity ‘icingaagent’
warning/ApiListener: Removing API client for endpoint ‘icingaagent’. 0 API clients left.
warning/ApiListener: Removing API client for endpoint ‘icingaagent’. 0 API clients left.
information/ApiListener: New client connection for identity ‘icingaagent’ from [10.0.0.28]:32810
warning/ApiListener: No data received on new API connection for identity ‘icingaagent’. Ensure that the remote endpoints are properly configured in a cluster setup.
Context:
(0) Handling new API client connection
" No data received on new API connection for identity ‘icingaagent’. Ensure that the remote endpoints are properly configured in a cluster setup." I don’t understand this! I’m already monitoring two agents.
Can someone give me an explaination what I’m doing wrong here.
looks like you have a problem with the agent connection. I think the message has nothing to do with your notifictaionproblem. I’am not very depth into notification, but maybe you have no notification contact applied to your host, so there is no one how could get the message. Please post the resolved version of the host config
I’m not sure why but I have seen for a short time a picture with a filter something like host.check_command=Email I think that this isn’t the host checkCommand? You should assign the notification to some attribute of the server like host.check_command==hostalive
You can check your assign when you open your host in icingaweb2 and look into the section “Notification” or “Benachrichtigungen”, there you should see the assigned user for notification.
Thats not a very good example as i would do this with an array to apply multiply notifications per host, but i wanted to write a simple code where i’am sure its working