<div dir="ltr"><div><pre class="gmail-tw-data-text gmail-tw-ta gmail-tw-text-small" id="gmail-tw-target-text" style="text-align:left;height:96px" dir="ltr"><span lang="en">Hi,<br><br>The best solution for disk checks is to use nagios nrpe. The check_disk plugin is useful. you need to install nrpe on all remote hosts.<br><br><a href="https://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_disk--2D-%25-used-space/details">https://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/check_disk--2D-%25-used-space/details</a><br><br></span></pre></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-22 19:41 GMT+03:00 Nasri, Mahan <span dir="ltr"><<a href="mailto:mahan.nasri@hpe.com" target="_blank">mahan.nasri@hpe.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-4864741954562327733divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<div style="color:rgb(0,0,0)">
<div dir="ltr">
<div id="m_-4864741954562327733x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif">
<div style="color:rgb(0,0,0)">
<div id="m_-4864741954562327733x_divRplyFwdMsg" dir="ltr">
<div> </div>
</div>

<div dir="ltr">
<div id="m_-4864741954562327733x_x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif">
<div id="m_-4864741954562327733x_x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0;margin-bottom:0">Hi.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I use Nagios to monitor our remote setups (linux), servers, switches, etc. I'm having issues using the check_by_ssh command to check the remote setups' disk usage. Do i have to install the nagios plugin on each setup
 to execute the check_disk command on the remote host? Or is there another way?</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">This is the command_line i use:</p>
<p style="margin-top:0;margin-bottom:0"><span>/usr/local/nagios/libexec/<wbr>check_by_ssh -H '$HOSTADDRESS$' -C "df -h /"</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>It works but i can't set any warnings (it will always indicate OK even if memory is full):</span></p>
<p style="margin-top:0;margin-bottom:0"><span><img size="27523" id="m_-4864741954562327733x_x_img191289" style="max-width:99.9%" src="cid:bd37952b-3b8f-4bc8-8af3-09afad8d6f2f"><br>
</span><br>
</p>
</div>
<div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
Thank you</div><span class="HOEnZb"><font color="#888888">
<div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
Mahan Nasri<br>
</div>
</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div><br></div>