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