Freshness check not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Freshness check not working

Post 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?
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Freshness check not working

Post by WillemDH »

Did you read through this: https://assets.nagios.com/downloads/nag ... hness.html

Can you post your service configuration pls?
Nagios XI 5.8.1
https://outsideit.net
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Freshness check not working

Post by hsmith »

Thank you Willem.

@michal.nastaly, let us know. Thanks!
Former Nagios Employee.
me.
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Re: Freshness check not working

Post 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
}
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Re: Freshness check not working

Post by michal.nastaly »

Hi guys,

here is the Service settings that i have currently setup.
nsclient service configuration.JPG
Anything wrong with it?
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Freshness check not working

Post by lmiltchev »

Use the "check_dummy" command to get whatever status/message you would like to receive. Example:
example01.PNG
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
michal.nastaly
Posts: 59
Joined: Tue Jun 02, 2015 9:24 am

Re: Freshness check not working

Post by michal.nastaly »

That seems to be doing the job! :)

Thank you
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Freshness check not working

Post by lmiltchev »

I am glad I could help! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked