Page 1 of 1

change the warning and critical value

Posted: Tue Feb 18, 2014 3:44 pm
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.

Re: change the warning and critical value

Posted: Tue Feb 18, 2014 3:48 pm
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.

Re: change the warning and critical value

Posted: Tue Feb 18, 2014 4:13 pm
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.

Re: change the warning and critical value

Posted: Tue Feb 18, 2014 4:21 pm
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?

Re: change the warning and critical value

Posted: Tue Feb 18, 2014 4:53 pm
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.

Re: change the warning and critical value

Posted: Tue Feb 18, 2014 5:04 pm
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.

Re: change the warning and critical value

Posted: Tue Feb 18, 2014 5:18 pm
by lmiltchev
Should we consider this issue to be "resolved" then? Can we lock the topic?