change the warning and critical value

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.
Locked
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

change the warning and critical value

Post by imran_khan »

Hello,

I want to change the warning and critical value of Round trip times and Packets lost for Service : Host Perfdata. Please suggest me for this.

Thanks,
Imran Khan.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: change the warning and critical value

Post by tmcdonald »

Are you talking about the ping check? Your questions is very vague.

This should be no different than other checks that use the "-w <Warning> -c <critical>" format.
Former Nagios employee
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: change the warning and critical value

Post by imran_khan »

Hello,

I have configured the ping via Nagios for Linux machine with Round trip times (warning:- 30 sec, critical:- 100 sec) and Packet lost (warning:- 1% and critical:- 2%).
When I view the graph by default service:- Host perfdata is showing on top, under this section showing “ping times” and “packet lost” with Round Trip Times (warning :- 300 and critical:- 500 sec)
and Packet Lost (warning:- 80% and critical:- 100%) but when directly view the graph of ping service (Graph> Services > Ping:-) it is showing the
actual or proper value/limit of packet lost and round trip times. So now I want to change these value for service:- Host perfdata.

Thanks,
Imran Khan.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: change the warning and critical value

Post by slansing »

Was this how you originally had the check set up? As:
Round Trip Times (warning :- 300 and critical:- 500 sec)
and Packet Lost (warning:- 80% and critical:- 100%)
And then you changed it later? Can you provide a screenshot of this graph, as well as the host/service/check configuration?
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: change the warning and critical value

Post by imran_khan »

Hello,

Please find the service details of Linux machine. Also I have attached the graph screen shot.

# Service definition
define service{
use generic-service ; Name of service template to use
host_name example.com
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups abcgrp
notification_interval 10
notification_period 24x7
notification_options c,r
check_command check_ping!300,1%!1000,2%
}

Thanks,
Imran Khan.
Attachments
Service_Host_Perfdata.png
Service_Ping.png
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: change the warning and critical value

Post by imran_khan »

Hello,

I have found that check_command in host is as below.

check_command check-host-alive

and defination for this command is as below. So I have to change this value in command defination.

# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}

Thanks,
Imran Khan.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: change the warning and critical value

Post by lmiltchev »

Should we consider this issue to be "resolved" then? Can we lock the topic?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked