<div>I am using NRPE plugins to monitor the remote linux server.</div>
<div> </div>
<div>Here is my question :</div>
<div> </div>
<div>i use the following command on the NAGIOS MONITORING SERVER:</div>
<div> </div>
<div>define command{<br> command_name check_nrpe_syslog<br> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_log <br>}</div>
<div> </div>
<div>My SERVICES.CFG looks like this:</div>
<div> </div>
<div>define service{<br>use default-service<br>host_name test-server<br>service_description linux syslog check<br>check_command check_nrpe_syslog<br>
}<br></div>
<div>on the REMOTE LINUX SERVER:</div>
<div> </div>
<div>There are two queries one is "DEAD" and the other is "error" in my nrpe.cfg file <br clear="all"></div>
<div></div>
<div>command[check_log]=/usr/lib/nagios/plugins/check_log -F /var/log/messages -O /var/log/check_log.messages.error -q 'DEAD'<br>command[check_log]=/usr/lib/nagios/plugins/check_log -F /var/log/messages -O /var/log/check_log.messages.error -q 'error'</div>
<div> </div>
<div>Will this check both the queries DEAD and error and show on the web interface or will this check only the query "DEAD". I would like to check both the query .</div>
<div> </div>
<div>How do i work on this . Please help me .</div>
<div> </div>
<div>Thanks in adv<br>-- <br>Anirudh <br><br></div>