check_command issue

Mrutyunjaya Dash mdash at juniper.net
Fri Feb 17 16:14:34 CET 2006


Hi,

I am not getting any information regarding check_by_ssh implementation, how can we use this check_by_shh to monitor remote host?

Regards,
Dash

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Werner Flamme
Sent: Friday, February 17, 2006 7:21 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] check_command issue

Mrutyunjaya Dash schrieb am 17.02.2006 14:34:
> Hi,
> 
>  
> 
> Now I am trying to use the nrpe to monitor the remote host. I have downloaded the plugin 1.4 version of nagios and nrpe 2.3. After the entire configuration according to the README file, I am getting the following error for the below command on the nagios host. 
> 
>  
> 
> ./check_nrpe -H bng-build1 -n -p 5666 -c check_disk 
> 
>  
> 
> CHECK_NRPE: Received 0 bytes from daemon.  Check the remote server logs for error messages
> 
>  
> 
> In the /etc/nrpe.cfg file of remote host has the following entry for check_disk
> 
>  
> 
> command[check_disk]=/opt/nagios/libexec/check_disk -w 20 -c 10 -p /dev/da0s1a
> 
>  
> 
> But where as, the plugin commands like check_disk, check_procs, etc are working fine on the remote host side.
> 
>  
> 
> #/opt/nagios/libexec/check_disk -w 20 -c 10 -p /dev/da0s1a
> 
> DISK OK - free space: / 877 MB (87%);| /=130MB;987;997;0;1007
> 
>  
> 
> Regards,
> 
> Mrutyunjaya Dash
> 
>  
> 
> -----Original Message-----
> From: VINAY_SHARMA at advanex.co.jp [mailto:VINAY_SHARMA at advanex.co.jp] 
> Sent: Friday, February 17, 2006 9:12 AM
> To: Mrutyunjaya Dash
> Subject: Re: [Nagios-users] check_command issue
> 
>  
> 
>  
> 
> Hi,
> 
>  
> 
>         for unix boxes better use check_by_ssh commands.you can see many
> 
> post in nagios forum.
> 
> hope it will help you.
> 
>  
> 
>  
> 
> Thanks & regards
> 
> **************************************
> 
> Vinay Sharma
> 
> Information Systems and Solutions-Associates
> 
> Advanex Inc (www.advanex.co.jp)
> 
> Fon   : 813-3822-5863
> 
> Fax         : 813-5815-7881
> 
> Email       : vinay_sharma at advanex.co.jp
> 
>  
> 
>  
> 
>                                                                                                                                        
> 
>                       "Mrutyunjaya                                                                                                     
> 
>                       Dash"                    宛先:     <VINAY_SHARMA at advanex.co.jp>                                                  
> 
>                       <mdash at juniper.ne        cc:                                                                                     
> 
>                       t>                       件名:     Re: [Nagios-users] check_command issue                                        
> 
>                                                                                                                                        
> 
>                       2006/02/17 12:39                                                                                                 
> 
>                                                                                                                                        
> 
>                                                                                                                                        
> 
>  
> 
>  
> 
>  
> 
>  
> 
> Hi Vinay,
> 
>  
> 
> Thank you very much for your reply. But I have the requirement to monitor
> 
> UNIX systems. For this  do I need to install nsclient or nrpe?
> 
>  
> 
> Regards,
> 
> Mrutyunjaya Dash
> 
>  
> 
> --------------------------
> 
> Sent from my BlackBerry Wireless Handheld
> 
>  
> 
>  
> 
> -----Original Message-----
> 
> From: VINAY_SHARMA at advanex.co.jp <VINAY_SHARMA at advanex.co.jp>
> 
> To: Mrutyunjaya Dash <mdash at juniper.net>
> 
> Sent: Thu Feb 16 16:47:10 2006
> 
> Subject: Re: [Nagios-users] check_command issue
> 
>  
> 
>  
> 
> try to setup NSCLIENT on windows boxes which one you want to
> 
> monitor.nsclient will perform cery good.and you will get good result.
> 
>  
> 
>  
> 
>  
> 
> Thanks & regards
> 
> **************************************
> 
> Vinay Sharma
> 
> Information Systems and Solutions-Associates
> 
> Advanex Inc (www.advanex.co.jp)
> 
> Fon   : 813-3822-5863
> 
> Fax         : 813-5815-7881
> 
> Email       : vinay_sharma at advanex.co.jp
> 
>  
> 
>  
> 
>  
> 
>                       "Mrutyunjaya Dash"
> 
>  
> 
>                       <mdash at juniper.net>                  宛先:
> 
> <nagios-users at lists.sourceforge.net>
> 
>  
> 
>                       送信者:                              cc:
> 
>  
> 
>                       nagios-users-admin at lists.sour        件名:
> 
> [Nagios-users] check_command issue
> 
>  
> 
>                       ceforge.net
> 
>  
> 
>  
> 
>  
> 
>                       2006/02/16 23:30
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> Hi All,
> 
>  
> 
> We got the installation of nagios 2.0b5 with plugin 1.4.2. I have installed
> 
> and configured nagios very recently. Now I have just added few servers for
> 
> monitoring certain srevices.  But for all the servers I am seeing the same
> 
> information on the nagios screen. Below is the information of one
> 
> particular server.
> 
>  
> 
>  
> 
>  
> 
>  
> 
>                     O 02-16-2006   0d 0h    1 OK - load average: 0.00,
> 
>                     K 19:55:39     25m 41s  / 0.00, 0.00
> 
>                                             4
> 
>  
> 
>  bng-admi
> 
>  n1       Current
> 
>           Load
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>                     O 02-16-2006   0d 0h    1 USERS OK - 2 users
> 
>                     K 19:56:54     22m 6s   / currently logged in
> 
>                                             4
> 
>  
> 
>  
> 
>           Current
> 
>           Users
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>                     O 02-16-2006   0d 0h    1 PING OK - Packet loss =
> 
>                     K 19:51:58     20m 51s  / 0%, RTA = 0.21 ms
> 
>                                             4
> 
>  
> 
>  
> 
>           PING
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>                     O 02-16-2006   0d 0h    1 DISK OK - free space: /
> 
>                     K 19:53:13     19m 36s  / 9098 MB (92%):
> 
>                                             4
> 
>  
> 
>  
> 
>           Root
> 
>           Partition
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> I am getting same information for all the servers. Where as if I check
> 
> physically particular service of server, the value for the service is
> 
> different.
> 
>  
> 
> I believe the check_commands are not working properly. Can somebody help me
> 
> to figure out the problem?
> 
>  
> 
> Thank you very much for all your inputs in advance.
> 
>  
> 
> Regards,
> 
> Mrutyunjaya Dash
> 
> IT Engineer
> 
> Juniper Networks Pvt Ltd.
> 
> Bangalore
>
> 
Hi Mrutyunjaya,

your first posting 3 hours ago was the same. check_nrpe tells you "Check
the remote server logs for error messages". What did you find there?

Maybe (x)inetd on the monitored host did not accept the call from your
monitoring host? Maybe nrpe was not found there? I cannot see this here, so
you should provide a bit more information.

Regards,
Werner


-- 
Werner Flamme, Abt. WKDV
UFZ Umweltforschungszentrum Leipzig-Halle GmbH,
Permoserstr. 15 - 04318 Leipzig
Tel.: (0341) 235-3921 - Fax (0341) 235-453921
http://www.ufz.de - eMail: werner.flamme at ufz.de






-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
N¬HY޵隊X¬²š'²ŠÞu¼’¦[§‰ÜŒ¨º
Þ¦Øk¢è!–ˆŠW¬~Šé®†åzk¶ŠC£	塧m…éÞÀ@^Çš­È^ž§zØZ¶f¤zËj·!Šx2¢êå¢â•ë±æ¬É«,º·âža{›å,àHòÔ4¨m¶Ÿÿ±éZ²ëjY‚w­þÇ¥rg


More information about the Users mailing list