Page 1 of 1

Freshness check not working

Posted: Fri Feb 26, 2016 8:53 am
by michal.nastaly
Hi,

I am using Nagios XI for my server side and NSClient++ for the client side. All the monitoring is configured to be passive checks. I have a freshness check set to 5 minutes. The problem i have is when i stop NSClient++ service on one of the the servers, Nagios XI does the freshness check but the message i receive is "OK: No data received yet." and the service is still flagged green even know it has been of for 24hrs.

How can i get this to work?

Re: Freshness check not working

Posted: Fri Feb 26, 2016 10:45 am
by WillemDH
Did you read through this: https://assets.nagios.com/downloads/nag ... hness.html

Can you post your service configuration pls?

Re: Freshness check not working

Posted: Fri Feb 26, 2016 12:51 pm
by hsmith
Thank you Willem.

@michal.nastaly, let us know. Thanks!

Re: Freshness check not working

Posted: Wed Mar 02, 2016 6:27 am
by michal.nastaly
yes I have read that article and can see anything being wrong with my configuration,

This is the service configuration for NSClient service:

define service {
host_name N1-SERVELEC-TEST.hosting.servelec.local
service_description NSClient
use xiwizard_passive_service
servicegroups N1 SERVELEC TEST
max_check_attempts 5
check_interval 5
retry_interval 1
passive_checks_enabled 1
check_period xi_timeperiod_24x7
check_freshness 1
freshness_threshold 300
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
contact_groups admins
_xiwizard passiveobject
register 1
}

Re: Freshness check not working

Posted: Wed Mar 02, 2016 6:56 am
by michal.nastaly
Hi guys,

here is the Service settings that i have currently setup.
nsclient service configuration.JPG
Anything wrong with it?

Re: Freshness check not working

Posted: Wed Mar 02, 2016 1:06 pm
by lmiltchev
Use the "check_dummy" command to get whatever status/message you would like to receive. Example:
example01.PNG

Re: Freshness check not working

Posted: Thu Mar 03, 2016 7:11 am
by michal.nastaly
That seems to be doing the job! :)

Thank you

Re: Freshness check not working

Posted: Thu Mar 03, 2016 10:11 am
by lmiltchev
I am glad I could help! :)