<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Nachricht</TITLE>
<META content="MSHTML 6.00.2800.1515" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=487555907-07122005>as the
check-name "check_LOCAL_disk_mail" says, these two are local check. Many checks
are not able to check a host resp. a service remote via a tcp-connection
o.sim.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=487555907-07122005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=487555907-07122005>To
execute such services on a remote machine, you´ll have to use nrpe, nsca or
ssh (maybe there are more possib.). The service checks you want to exec. hav to
reside on the remote machine. </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=487555907-07122005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=487555907-07122005>Assuming you have running ssh-services
(configuring nrpe is a bit more complicated):</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=487555907-07122005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=487555907-07122005>#
command for executing checks via ssh</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=487555907-07122005>define
command
{<BR>
command_name
check_by_ssh<BR>
command_line
$USER1$/check_by_ssh -H $HOSTADDRESS$ -C "./<plugins-dir>/$ARG1$
$ARG2$"<BR>
}<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=487555907-07122005># the
remotecheck</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=487555907-07122005>define
service
{<BR>
host_name mail</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=487555907-07122005><FONT
color=#0000ff>
service_description check_swap_on_mail<BR>
check_command
check_by_ssh!<FONT face="Times New Roman" size=3>check_local_disk_mail<FONT
face=Arial size=2>!<optional additional
params></FONT></FONT><BR>
</FONT><FONT color=#0000ff><FONT face="Times New Roman"
size=3>max_check_attempts
5<BR>
normal_check_interval
5<BR>
retry_check_interval
3<BR>
check_period
nonworkhours<BR>
notification_interval
30<BR>
notification_period
nonworkhours<BR>
notification_options
w,c,r<BR>
contact_groups
linux-admins</FONT><BR>
}</FONT></SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=487555907-07122005>This
should work. NRPE function in a similar way; but on the remote host a daemon is
running, and the checks that may be executed on the remote host are configured
on the remote host.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=487555907-07122005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=487555907-07122005>NSCA
inverts the direction of getting check results; you´ll have to compile a "small
nagios", configure all checks for the machine locally, and then you can pass all
results as "passive chak results" via the "send_nsca" plugin to your central
nagios-server.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=487555907-07122005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=487555907-07122005>I
think the nrpe alternative has greater performance as executing checks via
ssh, but you lose the ability of fully central configuration. i never used nsca
myself.</DIV></SPAN></FONT>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=487555907-07122005><FONT face=Arial color=#0000ff
size=2>Greetz,</FONT></SPAN></DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=de><B><FONT face=Arial size=1>Thomas Zimmer</FONT></B></SPAN>
<BR><SPAN lang=de><FONT face=Arial size=1>Produktservice &
Betrieb</FONT></SPAN> <BR><SPAN lang=de><FONT face=Arial size=1>Betrieb &
Support</FONT></SPAN> <BR><SPAN lang=de><FONT face=Arial size=1>Sal. Oppenheim
jr. & Cie., Frankfurt a. Main</FONT></SPAN> </P>
<P><SPAN lang=de><FONT face=Arial size=1>Internet: <A
href="http://www.oppenheim.de/">http://www.oppenheim.de</A></FONT></SPAN>
<BR><SPAN lang=de><FONT face=Arial color=#000000 size=1>E-Mail:
thomas.zimmer@oppenheim.de</FONT></SPAN> </P>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left><FONT face=Tahoma
size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B>
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <B>Im Auftrag von </B>ankush
grover<BR><B>Gesendet:</B> Mittwoch, 7. Dezember 2005 08:56<BR><B>An:</B>
nagios-users@lists.sourceforge.net<BR><B>Betreff:</B> [Nagios-users] not able
to get the status of some services from the remote machine even with net-snmp
running<BR><BR></FONT></DIV>hey friends,<BR><BR>I am not an expert in Nagios.I
have configured Nagios to monitor few hosts in my Network.<BR><BR>There is one
FC3 server on which few services like (mysql,dns,apache,postfix) etc are
running on that server.But through nagios I am not able to get the information
about the disk & swap status from the remote machine even though snmp
& snmptrapd services are running on this
server.<BR><BR>services.cfg<BR>define service{<BR>
host_name mail<BR>
service_description swapspacechecking<BR>
check_command
check_swap<BR> max_check_attempts
5<BR> normal_check_interval
5<BR> retry_check_interval
3<BR> check_period
nonworkhours<BR> notification_interval
30<BR> notification_period
nonworkhours<BR> notification_options
w,c,r<BR> contact_groups
linux-admins<BR> }<BR><BR>define
service{<BR> host_name
mail<BR> service_description
disk_checking_mail<BR> check_command
check_local_disk_mail<BR>
max_check_attempts 5<BR>
normal_check_interval 5<BR>
retry_check_interval 3<BR>
check_period
nonworkhours<BR> notification_interval
30<BR> notification_period
nonworkhours<BR> notification_options
w,c,r<BR> contact_groups
linux-admins<BR>
}<BR><BR>checkcommands.cfg file<BR>define command{<BR>
command_name
check_local_disk_mail<BR>
command_line $USER1$/check_disk -w 10% -c 5% -p /var
-p /usr -p /home -p / -p /opt<BR> }<BR><BR>define
command{<BR> command_name
check_swap<BR> command_line
$USER1$/check_swap -w 35% -c 15%<BR> }<BR><BR>In both the
above cases the nagios is showing the status for the local machine on which
the nagios is running not for the remote machine.<BR><BR>But plugins for
apache ,local load ,mysql on mail machine are working fine.<BR><BR>Does
local_disk and check_swap plugins requires some special
configuration.<BR><BR>Moreover I would like to monitor postfix(mailq) running
on the machine.What I have to do to the get status of mailq ?<BR><BR>The name
of the machine which I am monitoring is mail and the machine name on which
nagios is running is cluster1.<BR><BR>Please guide me.<BR><BR>Thanks &
Regards<BR><BR>Ankush Grover<BR><BR><BR></BLOCKQUOTE></BODY></HTML>