<DIV><BR>Thanks a lot for your complete guidance,</DIV>
<DIV>I checked them and now I have encountered another problem:</DIV>
<DIV> </DIV>
<DIV>I have put NRPE daemon and its config file on the client</DIV>
<DIV>and compiled it there too.</DIV>
<DIV>Then I have defined a service in my nagios/etc/service.cfg</DIV>
<DIV>with </DIV>
<DIV><STRONG>command check_nrpe!check_users</STRONG></DIV>
<DIV>and I wanted to rest it via my linux shel and I executed NRPE in background mode in the client:</DIV>
<DIV><STRONG>./nrpe -c /etc/nrpe.cfg -d &<BR></STRONG></DIV>
<DIV>and in the server I wrote:</DIV>
<DIV><STRONG> ./check_nrpe -H 1.1.1.126 -p 5666 -c check_nrpe!check_users</STRONG></DIV>
<DIV>the result is:</DIV>
<DIV><STRONG>-bash: !check_users: event not found<BR></STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV>and in the web interface the status information is:</DIV>
<DIV><STRONG>Connection refused by host </STRONG><BR></DIV>
<DIV>Have I missed anything???</DIV>
<DIV> </DIV>
<DIV>Thabk you all.</DIV>
<DIV>Sirwah</DIV>
<DIV> </DIV>
<DIV><BR><I><STRONG>Andreas Ericsson <ae@op5.se></STRONG></I> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">serwah sabet ghadam wrote:<BR>> Hi, <BR>> I want to use nrpe to get, for example, the <BR>> result of check_users of a remote host,<BR>> perhaps it be an elementary question<BR>> but I'm confused!<BR>> <BR><BR>check_nrpe requires that the daemon is installed and properly configured <BR>on the remote host.<BR><BR>Both the daemon and the plugin needs to use the same type of encryption <BR>(currently only ssl or none at all).<BR><BR>The plugin which you want to run must be present on the remote host.<BR><BR>The nagios server's IP must be mentioned in the allowed_hosts_ip in your <BR>nrpe configuration file.<BR><BR>> I've searched the mailing list but didn't find <BR>> my answer.<BR>> <BR>> <BR>> I did upon the README file of the NRPE pacakge<BR>> that I've downloaded:<BR>> I sefined a command in checkcommand.cfg <BR>> define command{<BR>>
command_name check_nrpe<BR>> aommand_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$<BR>> } <BR>> <BR>> and defined a service with<BR>> check_command check_nrpe ! check_users<BR>> <BR><BR>Remove the spaces.<BR><BR>> and I didn't work under inetd or xinetd.<BR>> <BR>> are these steps enaugh??<BR>> I see nothing in the servce detail in the web interface.<BR>> <BR><BR>You also have to restart Nagios. Do that and then tell me the output of <BR>the check_nrpe command (the status field in the GUI), and I might be <BR>able to help you further.<BR><BR><BR>> I appreciate your help.<BR>> Sirwah<BR><BR>-- <BR>Sourcerer / Andreas Ericsson<BR>NRPE Maintainer<BR>OP5 AB<BR>+46 (0)733 709032<BR>andreas.ericsson@op5.se<BR><BR><BR>-------------------------------------------------------<BR>This SF.Net email is sponsored by the new InstallShield X.<BR>From Windows to Linux, servers to mobile, InstallShield X is the<BR>one
installation-authoring solution that does it all. Learn more and<BR>evaluate today! http://www.installshield.com/Dev2Dev/0504<BR>_______________________________________________<BR>Nagiosplug-help mailing list<BR>Nagiosplug-help@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/nagiosplug-help<BR>::: Please include plugins version (-v) and OS when reporting any issue. <BR>::: Messages without supporting info will risk being sent to /dev/null</BLOCKQUOTE><p>
<hr size=1>Do you Yahoo!?<br>Friends. Fun. <a href="http://messenger.yahoo.com/">Try the all-new Yahoo! Messenger</a>