Checking host/service and their metrics DAILY

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Checking host/service and their metrics DAILY

Post by nagmoto »

For some nodes, I don't need them to be ping checked and metrics gauged(displayed by pnp4ngios) every 5 minutes.
I am afraid changing the check interval will impact the rrd graph also.
Is there a successful example I can look and learn from ?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Checking host/service and their metrics DAILY

Post by tmcdonald »

I don't know if you will be able to change this on a per-check basis. A similar question was asked before:

https://support.nagios.com/forum/viewto ... =6&t=33650
https://support.nagios.com/forum/viewto ... =6&t=25569
Former Nagios employee
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: Checking host/service and their metrics DAILY

Post by nagmoto »

Thanks for the pointers,please resolve this tickets.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Checking host/service and their metrics DAILY

Post by rkennedy »

What are you looking to be done exactly? As @tmcdonald mentioned - I don't think you will be able to change this on a per-check basis.

I can always submit a feature request with what you're looking to do though. Let me know mroe information and I can file one.
Former Nagios Employee
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: Checking host/service and their metrics DAILY

Post by nagmoto »

rkennedy wrote:What are you looking to be done exactly? As @tmcdonald mentioned - I don't think you will be able to change this on a per-check basis.

I can always submit a feature request with what you're looking to do though. Let me know mroe information and I can file one.
Following are a few cases I can think of.

Ex 1: For test machines in a non-vital host group, execute the host and service checks once a day only but the pnp4ngaios graph should still show the daily trending.
Ex 2: Report the daily trending of users number in graph from NIS or LDAP servers.
EX 3: Report the daily trending of tickets got resolved/opened from ticket system like rememdy or servicenow.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Checking host/service and their metrics DAILY

Post by rkennedy »

I see, so for Ex 1 - you're looking to change the check_interval to say 1440 (1day)?

For Ex 2, and Ex 3 - these would just be normal checks, or are you looking to change the check_interval on them as well?

You should have no issue doing this.
Former Nagios Employee
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: Checking host/service and their metrics DAILY

Post by nagmoto »

rkennedy wrote:I see, so for Ex 1 - you're looking to change the check_interval to say 1440 (1day)?

For Ex 2, and Ex 3 - these would just be normal checks, or are you looking to change the check_interval on them as well?

You should have no issue doing this.
See attached pnp4nagios trending graph, once the cpu load check changed to daily, the graph shows empty stroke.
The question is now turn into how to make necessary change to ask pnp4nagios(rrd) to graph from one data point per 14440 minutes ?
Attachments
daily-out-of-sync.PNG
daily-out-of-sync.PNG (10.83 KiB) Viewed 2422 times
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Checking host/service and their metrics DAILY

Post by tgriep »

You may have to wait for over 24 hours for the graph to update the next datapoint.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: Checking host/service and their metrics DAILY

Post by nagmoto »

tgriep wrote:You may have to wait for over 24 hours for the graph to update the next datapoint.
No, the rrd drawing to expecting data feed at 5 minutes interval. Some RRD configuration will need to be adjusted to take in data feed on once/day basis.
I will look around and do some googling if I don't find answer here.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Checking host/service and their metrics DAILY

Post by tgriep »

Take a look at this site for creating templates needed for your graphs.
http://docs.pnp4nagios.org/pnp-0.4/tpl
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked