i can ping the server with a name <br>[root@linux2 etc]# ping linux1<br>PING linux1.sdc.lan (<a href="http://10.5.1.31">10.5.1.31</a>) 56(84) bytes of data.<br>64 bytes from <a href="http://10.5.1.31">10.5.1.31</a>: icmp_seq=1 ttl=64 time=
0.147 ms<br>64 bytes from <a href="http://10.5.1.31">10.5.1.31</a>: icmp_seq=2 ttl=64 time=0.132 ms<br><br>the error is starnge <br>check_ping: %s: Warning threshold must be integer or percentage<br><br><br><br><div class="gmail_quote">
On Jan 2, 2008 3:03 PM, <a href="mailto:ad@heapoverflow.com">ad@heapoverflow.com</a> <<a href="mailto:ad@heapoverflow.com">ad@heapoverflow.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br></div>Probably because the hostname you defined in the service<br><br>host_name linux1<br><br>is unknown, try changing it to localhost or the correct local domain
<br><div class="Ih2E3d"><br>Mad Unix wrote:<br>> it gave now check_ping: Invalid hostname/address - $ other commands<br>> work, only the ping it gave eror<br>><br>> i changed the ping the client to<br>> command[check_local_disk]=/usr/local/nagios/libexec/check_disk -w
<br>> $ARG1$ -c $ARG2$ -p $ARG3$<br>> command[check_local_users]=/usr/local/nagios/libexec/check_users -w<br>> $ARG1$ -c $ARG2$<br>> command[check_local_load]=/usr/local/nagios/libexec/check_load -w<br>> $ARG1$ -c $ARG2$
<br>> command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w<br>> $ARG1$ -c $ARG2$<br>> #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$<br>> -w $ARG2$ -c $ARG3$ -p 5<br>> command[check_ping]=/usr/local/nagios/libexec/check_ping -H
<br>> $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5<br>><br>> On Jan 2, 2008 2:29 PM, <a href="mailto:ad@heapoverflow.com">ad@heapoverflow.com</a><br></div>> <mailto:<a href="mailto:ad@heapoverflow.com">ad@heapoverflow.com
</a>> <<a href="mailto:ad@heapoverflow.com">ad@heapoverflow.com</a><br><div><div></div><div class="Wj3C7c">> <mailto:<a href="mailto:ad@heapoverflow.com">ad@heapoverflow.com</a>>> wrote:<br>><br>> not sure but I think your check_ping command has an error, try
<br>> changing it to<br>><br>> //edit(based on your cfg):<br>><br>> command[check_ping]=/usr/local/nagios/libexec/check_ping -H<br>> $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5<br>><br>><br>> Mad Unix wrote:
<br>>> my nagios shows the following<br>><br>>> check_ping: %s: Warning threshold must be integer or percentage!<br>>> on the server define service{ use<br>>> generic-service ; Name of service template to use
<br>>> host_name linux1 service_description<br>>> PING is_volatile 0 check_period<br>>> 24x7 max_check_attempts 4 normal_check_interval<br>>> 5 retry_check_interval 1 contact_groups
<br>>> admins notification_options w,u,c,r<br>>> notification_interval 960 notification_period<br>>> 24x7 check_command check_nrpe!check_ping!100.0,20%!500.0,60% } on<br>>> the client runnig nrpe
<br>><br>>> command[check_ping]=/usr/local/nagios/libexec/check_ping -H<br>>> $ARG1$ -w $ARG2$ -c $ARG3$ -p 5<br>><br>>> -- madunix<br>><br>>> ----------------------------------------------------------------------
<br>>><br>><br>>><br>> -------------------------------------------------------------------------<br>><br>>> This SF.net email is sponsored by: Microsoft Defy all challenges.<br>>> Microsoft(R) Visual Studio 2005.
<br>>> <a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target="_blank">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>><br>>> ----------------------------------------------------------------------
<br>>><br>><br>>> _______________________________________________ Nagios-users<br>>> mailing list <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br></div></div>
> <mailto:<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>><br><div class="Ih2E3d">>> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a> :::<br>>> Please include Nagios version, plugin version (-v) and OS when<br>> reporting any issue.<br>>> ::: Messages without supporting info will risk being sent to
<br>>> /dev/null<br>><br><br></div>> -- madunix<br><div class="Ih2E3d"><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.7 (MingW32)<br><br></div>iD8DBQFHe4uudS4H/t4eKFARAs2AAJ96P7cFl6FbjfyyziCteVC1f6jjzQCeOUsD
<br>lPm5a/zsumegOtL//METaRI=<br>=5Tau<br>-----END PGP SIGNATURE-----<br><br></blockquote></div><br><br clear="all"><br>-- <br>madunix