<HTML>
<HEAD>
<TITLE>Re: [Nagios-users] Almost there please assist...(check_ping) new install</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>SG,<BR>
<BR>
Thanks for the prompt reply. I now have what uopu suggested in my hosts.cfg file. IE:<BR>
<BR>
define host{<BR>
host_name nagios_server<BR>
alias nagios server<BR>
address localhost<BR>
check_command check_myhost!200,20%!300,30%!5<BR>
max_check_attempts 5<BR>
process_perf_data 0<BR>
retain_nonstatus_information 0<BR>
contact_groups router-admins<BR>
notification_interval 30<BR>
notification_period 24x7<BR>
notification_options d,u,r<BR>
}<BR>
<BR>
define command{<BR>
command_name check_myhost<BR>
command_line /space/nagios/libexec/check_ping -H 127.0.0.1 -w $ARG1$ -c $ARG2$ -p $<BR>
ARG3$<BR>
}<BR>
<BR>
However, still shows down. Both the gui and log file show a message stating:<BR>
<BR>
[1113429048] HOST NOTIFICATION: nagiosadmin;nagios_server;DOWN;host-notify-by-email;wpl (90) cannot be larger than cpl (60)<BR>
<BR>
Running manuall from the command line, I get :<BR>
<BR>
[root@devupsilon01] # ./check_ping -H localhost -w 200,20% -c 300,30% -p 5<BR>
PING OK - Packet loss = 0%, RTA = 0.00 ms<BR>
[root@devupsilon01] # <BR>
<BR>
<BR>
Questions:<BR>
Why is the gui showing down?<BR>
Is there a log file that indicates each time a check command is ran rather than just the notification ?<BR>
Does the nagios Process have to be restarted if I make changes to any config files?<BR>
<BR>
<BR>
Thanks so much for your help. I have read a lot and will read even further tonight. I would just LOVE to get a ping working!<BR>
<BR>
-calvin<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On 4/13/05 2:18 PM, "Subhendu Ghosh" <sghosh@sghosh.org> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>On Wed, 13 Apr 2005, Calvin Crutchfield wrote:<BR>
<BR>
> OK. Took me 2.5 days but I have NAGIOS and the interface running. What I'm<BR>
> trying to do is to get a simple localhost ping working.. I have read plenty<BR>
> but not quite putting 2 and 2 together yet.<BR>
><BR>
> Solaris 9<BR>
> Latest Nagios and plugins<BR>
><BR>
> Assumptions.<BR>
><BR>
> *Commands can only be defined once amongst your included config files<BR>
><BR>
> I created a hosts.cfg file containing:<BR>
><BR>
> define host{<BR>
> host_name nagios_server<BR>
> alias nagios server<BR>
> address localhost<BR>
> check_command check_myhost<BR>
> max_check_attempts 5<BR>
> process_perf_data 0<BR>
> retain_nonstatus_information 0<BR>
> contact_groups router-admins<BR>
> notification_interval 30<BR>
> notification_period 24x7<BR>
> notification_options d,u,r<BR>
> }<BR>
><BR>
><BR>
> I have a test command definition in the same file like such:<BR>
><BR>
> define command{<BR>
> command_name check_myhost<BR>
> command_line /space/nagios/libexec/check_ping -H 127.0.0.1 -w<BR>
> 200,20% -c 300,30% -p 5<BR>
> }<BR>
><BR>
> Questions:<BR>
><BR>
> Should this work?<BR>
<BR>
yes it should<BR>
<BR>
<BR>
> If I were to use the $ARGn$ method of definition where do the args go? The<BR>
> way I understand it, the args would go under the host definition on the<BR>
> ccheckl_command line like this:<BR>
> check_command check_myhost arg1 arg2<BR>
><BR>
<BR>
more like this:<BR>
define command{<BR>
command_name check_myhost<BR>
command_line /space/nagios/libexec/check_ping -H 127.0.0.1 -w<BR>
$ARG1$ -c $ARG2$ -p $ARG3$<BR>
}<BR>
<BR>
check_command check_myhost!200,20%!300,30%!5<BR>
<BR>
<BR>
--<BR>
-sg<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT>
</BODY>
</HTML>