Connection refused by host: warning not critical

Hi,

When nagios can’t connect to the nsclient++ client the status is connection refused by host and it’s Critical. How can I change this status to Warning.

Tahnk you