Hi,<br><br>yes if I doing it from the CLI as Nagios User is work fine.<br><br>Here:<br><br>Command definition:<br><br># 'check_tablespace' command definition_<br>define command{<br>        command_name    check_tablespace<br>
        command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "/usr/local/nagios/libexec/check_tablespace $ARG1$ $ARG2$ $ARG3$ $ARG4$"<br><br><br>Host definition:<br><br>define host{<br>        use                     linux-server            ; Name of host template to use<br>
                                                        ; This host definition will inherit all variables that are defined<br>                                                        ; in (or inherited by) the linux-server host template definition.<br>
        host_name               siper_afr<br>        alias                   siper_afr<br>        address                 10.5.3.xxx<br>        parents                 routerIperAfr<br>        }<br><br>service definition:<br>
<br>define service{<br>        use                             local-service         ; Name of service template to use<br>        host_name                       siper_afr<br>        service_description             tablespace<br>
        check_command                   check_tablespace!siper!<user>!<passwd>!89<br>        notifications_enabled           0<br>        }<br><br>Service template definition:<br><br># Local service definition template - This is NOT a real service, just a template!<br>
<br>define service{<br>        name                            local-service           ; The name of this service template<br>        use                             generic-service         ; Inherit default values from the generic-service definition<br>
        max_check_attempts              4                       ; Re-check the service up to 4 times in order to determine its final (hard) state<br>        normal_check_interval           5                       ; Check the service every 5 minutes under normal conditions<br>
        retry_check_interval            1                       ; Re-check the service every minute until a hard state can be determined<br>        register                        0                       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!<br>
        }<br><br>thank in advance,<br>Mirko.<br><br><div class="gmail_quote">2010/2/5 Sean McAfee <span dir="ltr"><<a href="mailto:smcafee@collaborativefusion.com">smcafee@collaborativefusion.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">mirko stefanelli wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi to all,<br>
<br>
We run nagios on Ubuntu server with 2Gb ramm kernel version  2.6.24-23-server. Nagios version is 3.2.0.<br>
<br>
We have configured all our server (Linux REL) to execute our custom plugin by check_by_ssh. The problem is that for some server this check fails and the output is:<br>
<br>
CRITICAL - Plugin timed out while executing system call<br>
<br>
If we try to do same command, executed with check_by_shh, from user nagios on cli the command work fine!<br>
<br>
Any idea?<br>
<br>
Regards,<br>
Mirko.<br>
</blockquote>
<br></div></div>
Doing it on the CLI as the Nagios user was the right first step.<br>
<br>
Could you send your command definition, host definition, service definition, and any templates used?  It's very hard to troubleshoot without those.<br>
<br>
-- <br><font color="#888888">
Sean McAfee<br>
<br>
</font></blockquote></div><br>