<html>
<head>
</head>
<body>
What does your command definition in checkcommands.cfg look like for check_ssh?<br>
<br>
-Russell<br>
<br>
Jasmine Chua wrote:<br>
<blockquote type="cite" cite="mid:200210310317.32580.jasmine.chua@securecirt.com">
  <pre wrap="">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Hi <br>this is my services.cfg:<br><br># ocsp service definition template<br>define service{<br>        name                                             ocsp-service<br>        active_checks_enabled                     1  <br>        passive_checks_enabled                      0  <br>        parallelize_check                         1<br>        obsess_over_service                          1 <br>        check_freshness                             0 <br>        notifications_enabled                       0<br>        event_handler_enabled                        1       <br>        flap_detection_enabled                        1       <br>        process_perf_data                             0       <br>        retain_status_information                     1       <br>        retain_nonstatus_information          1        <br>        register                                              0       <br>        }<br><br><br>This is defined in abc.cfg<br><br>define service{<br>        use                                                    ocsp-service<br><br>        host_n
 
ame                                     abc<br>        service_description                        SSH<br>        is_volatile                                        0<br>        check_period                                 24x7<br>        max_check_attempts                        3<br>        normal_check_interval                        5<br>        retry_check_interval                         1<br>        contact_groups                               admin<br>        notification_interval                    0<br>        notification_period                          24x7<br>        notification_options                      w,u,c,r<br>        check_command                                  check_ssh<br>        }<br><br><br><br><br>On Thursday 31 October 2002 02:12, you wrote:<br></pre>
  <blockquote type="cite">
    <pre wrap="">send in a snippet of your services.cfg<br><br>-----Original Message-----<br>From: Jasmine Chua [<a class="moz-txt-link-freetext" href="mailto:jasmine.chua@securecirt.com">mailto:jasmine.chua@securecirt.com</a>]<br>Sent: Wednesday, October 30, 2002 12:35 PM<br>To: <a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>Subject: [Nagios-users] Plugin is still missing!<br><br><br><br>I have made sure that the check_ssh plugin is working by testing it in the<br>libexec directory and actually made sure that the $USER1$ macro in the<br>resource.cfg of the distributed monitoring server is pointing to the right<br>directory where it contains the plugin. But, it is still not working.<br><br>IP of the remote server running ssh = xxx.xxx.xxx.xxx<br><br>./check_ssh xxx.xxx.xxx.xxx<br>SSH ok - protocol version 1.99- - server version<br><br>On Thursday 31 October 2002 01:11, Subhendu Ghosh wrote:<br></p
 
re>
    <blockquote type="cite">
      <pre wrap="">try tracing the check_command entry from the service definition to the<br>check_command definition to see if it is actually calling check_ssh<br>and/or if using $USER1$ macro, it is defined as well.<br><br>-sg<br><br>On Thu, 31 Oct 2002, Jasmine Chua wrote:<br></pre>
      <blockquote type="cite">
        <pre wrap="">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Logs of the distributed monitoring server:<br>kept showing warning : Return code of 127 for check of service 'SSH' on<br>host 'y' was out of bounds. Make sure the plugin you are trying to run<br>actually exists!<br><br>But, when I checked the /usr/local/nagios/libexec of the distributed<br>monitoring server,<br>check_ssh executable plugin is there and with 'nagios' as users and<br>group.<br><br>Could someone tell me why it is still showing that as warning?<br><br><br>- -- Thanks!<br><br>Jasmine Chua<br>Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd)<br><a class="moz-txt-link-freetext" href="http://www.securecirt.com">http://www.securecirt.com</a><br></pre>
        </blockquote>
        </blockquote>
        <pre wrap="">-------------------------------------------------------<br>This sf.net email is sponsored by:ThinkGeek<br>Welcome to geek heaven.<br><a class="moz-txt-link-freetext" href="http://thinkgeek.com/sf">http://thinkgeek.com/sf</a><br>_______________________________________________<br>Nagios-users mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br></pre>
        </blockquote>
        <pre wrap=""><!----><br>- -- <br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.0.6 (GNU/Linux)<br>Comment: For info see <a class="moz-txt-link-freetext" href="http://www.gnupg.org">http://www.gnupg.org</a><br><br>iD8DBQE9wDBFNgvTa7Hj2AURAoltAKCzTvXU0XQiZIrjN6x0J6dip0vlhwCfcsSC<br>8d61Uia4cJvpMrgtsrIJZq4=<br>=uOQI<br>-----END PGP SIGNATURE-----<br><br><br><br>-------------------------------------------------------<br>This sf.net email is sponsored by: Influence the future <br>of Java(TM) technology. Join the Java Community <br>Process(SM) (JCP(SM)) program now. <br><a class="moz-txt-link-freetext" href="http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en">http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en</a><br>_______________________________________________<br>Nagios-users mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a class="moz-txt-link-freetext" hre
 
f="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br><br><br></pre>
        </blockquote>
        <br>
        <pre class="moz-signature" cols="$mailwrapcol">-- 
Russell Scibetti
Quadrix Solutions, Inc.
<a class="moz-txt-link-freetext" href="http://www.quadrix.com">http://www.quadrix.com</a>
(732) 235-2335, ext. 7038
</pre>
        <br>
        </body>
        </html>