<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17095" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>Setup:
</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>nagios core v
3.2.3</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>Nagios
monitoring machine: my laptop running windows xpsp3</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>Remote
servers to be monitored: windows server 2003</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular><STRONG></STRONG></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>Directories:
</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>C:\Program
Files\ICW\etc\nagios\nagios.cfg</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>C:\Program
Files\ICW\etc\nagios\nagwin\commands.cfg</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>C:\Program
Files\ICW\etc\nagios\nagwin\contacts.cfg</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>C:\Program
Files\ICW\etc\nagios\nagwin\localhost.cfg</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>C:\Program
Files\ICW\etc\nagios\nagwin\templates.cfg</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>C:\Program
Files\ICW\etc\nagios\nagwin\timeperiods.cfg</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>C:\Program
Files\ICW\etc\nagios\nagwin\hosts.cfg</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>Hello. Hope you are
well. First time emailing so thought better to put too much info than not
enough!</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>I'm trying to define
services and commands that will monitor my remote servers. So at present, I have
my localhost for which I have the following local commands in localhost.cfg:
</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>#
Define local commands</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>#
'check_local_disk' command definition<BR>define
command{<BR>
command_name
check_local_disk<BR>
command_line $USER1$/check_pdm2 --disk --drive $ARG1$
--warning $ARG2$ --critical $ARG3$<BR>
}</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>#
'check_local_procs' command definition<BR>define
command{<BR>
command_name
check_local_procs<BR>
command_line $USER1$/check_winprocess --warning $ARG1$
--critical $ARG2$<BR>
}</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>#
'check_local_load' command definition<BR>define
command{<BR>
command_name
check_local_load<BR>
command_line $USER1$/check_pdm2 --processor --warning $ARG1$
--critical $ARG2$ --psamples $ARG3$ --pinterval
$ARG4$<BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>#
'check_local_pyhsical_mem' command definition<BR>define
command{<BR> command_name check_local_physical_mem<BR> command_line $USER1$/check_pdm2
--memory physical --warning $ARG1$ --critical
$ARG2$<BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>#
'check_local_virtual_mem' command definition<BR>define
command{<BR> command_name check_local_virtual_mem<BR> command_line $USER1$/check_pdm2
--memory virtual --warning $ARG1$ --critical
$ARG2$<BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>#
'check_local_virtual_mem' command definition<BR>define
command{<BR> command_name check_local_pagefile_mem<BR> command_line $USER1$/check_pdm2
--memory pagefile --warning $ARG1$ --critical $ARG2$<BR> }<BR> #
Define a service to check the disk space of system disk C on the local
machine. <BR># Warning if < 20% free, critical if < 10% free
space.<BR>define service{<BR>
use
local-service ; Name of service
template to use<BR>
host_name
localhost<BR>
service_description
System
disk<BR> check_command check_local_disk!C:!95!99<BR>
}<BR># Define a service to check the number of currently running procs on the
local machine.<BR># Warning if > 250 processes, critical if > 400
users.</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>define
service{<BR>
use
local-service ; Name of service
template to use<BR>
host_name
localhost<BR>
service_description
Total
Processes<BR> check_command check_local_procs!250!400<BR>
}</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>#
Define a service to check the load on the local machine. 5 samples with 5 secs
intervals.<BR># Warning at 80%, Critical at 95%<BR>define
service{<BR>
use
local-service ; Name of service
template to use<BR>
host_name
localhost<BR>
service_description
Current
Load<BR> check_command check_local_load!85!95!5!5<BR>
}</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>#
Define a service to check the physical memory usage the local machine. <BR>#
Critical if less than 90% of swap is in use, warning if 80% is in
use</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>define
service{<BR>
use
local-service ; Name of service
template to use<BR>
host_name
localhost<BR>
service_description
Physical
memory<BR> check_command check_local_physical_mem!80!90<BR>
}</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>#
Define a service to check the virtual memory usage the local machine. <BR>#
Critical if less than 90% of swap is in use, warning if 80% is in
use</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>define
service{<BR>
use
local-service ; Name of service
template to use<BR>
host_name
localhost<BR>
service_description
Virtual
memory<BR> check_command check_local_virtual_mem!80!90<BR>
}</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>#
Define a service to check the page file usage the local machine. <BR># Critical
if less than 90% of swap is in use, warning if 80% is in use</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular color=#008000>define
service{<BR>
use
local-service ; Name of service
template to use<BR>
host_name
localhost<BR>
service_description
Page
file<BR> check_command check_local_pagefile_mem!80!90<BR>
}</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>So all these work
fine for the localhost. What I'm trying to do now is setup the exact same
capability but for the remote servers, and this is where I'm getting stuck.
Although I can define a service for the remote servers, the output displayed is
the same as I have for my localhost. So for example in the screenshot below, the
c: Disk space service, the remote service I tried to setup, is actually
using the local command line and showing the same output as the System Disk
service on localhost. </FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><IMG
src="cid:906443815@28032011-1C39"></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>Can you please advise
on how to setup up equivalent remote commands similar to the local commands
above?</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>Eventually, I am
looking to set up equivalent remote services for current load, page file, phys
mem etc that I currently have for localhost. </FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>So far I have:
</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>C:\Program
Files\ICW\etc\nagios\nagwin\hosts.cfg</STRONG></FONT></SPAN></DIV></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>define
service{<BR>
use
remote-service ; Name of service
template to use<BR>
host_name
bamford-lon-fn1<BR>
service_description
c: Disk
Space<BR> check_command check_remote_disk!C:!95!99<BR>
} <BR></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>C:\Program
Files\ICW\etc\nagios\nagwin\localhost.cfg</STRONG></FONT></SPAN></DIV></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular># 'check_remote_disk'
command definition<BR>define
command{<BR>
command_name
check_remote_disk<BR>
command_line $USER1$/check_pdm2 --disk --drive $ARG1$
--warning $ARG2$ --critical $ARG3$<BR>
}</DIV></FONT></SPAN>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular><STRONG>C:\Program
Files\ICW\etc\nagios\nagwin\templates.cfg</STRONG></FONT></SPAN></DIV></FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular># Remote service
definition template- This is NOT a real service, just a
template!</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>define
service{<BR> name remote-service<BR> use
generic-service<BR> max_check_attempts 4<BR> normal_check_interval 5<BR> retry_check_interval 1<BR> register 0<BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>I've seen something
about this on the wiki at <A
href="http://wiki.nagios.org/index.php/Howtos:checkbyssh_RedHat">http://wiki.nagios.org/index.php/Howtos:checkbyssh_RedHat</A> but
those commands are more centered around red hat and ssh. </FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>Also tried <A
href="http://wiki.nagios.org/index.php/Howtos:specific">http://wiki.nagios.org/index.php/Howtos:specific</A> but
windows os isn't listed (unless windows uses same commands as those listed?).
</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>If you could help in
any way I'd be most grateful. </FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT face=DIN-Regular>If I've missed
something out/you need more info please let me know. Thx, Paul.
</FONT></SPAN></DIV>
<DIV><SPAN class=906443815-28032011><FONT
face=DIN-Regular></FONT></SPAN> </DIV>
<DIV> </DIV><?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="address"></o:SmartTagType><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PostalCode"></o:SmartTagType><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="City"></o:SmartTagType><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="Street"></o:SmartTagType><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"></o:SmartTagType>
<OBJECT id=ieooui classid=clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D></OBJECT>
<STYLE>st1\:* {
BEHAVIOR: url(#ieooui)
}
</STYLE>
<STYLE>@font-face {
font-family: DIN-Regular;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in .75in; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; mso-paper-source: 0; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
SPAN.SpellE {
mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
page: Section1
}
</STYLE>
<DIV class=Section1>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: 0in"
align=left> </P>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: 0in"> </P>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: 0in"> </P>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: 0in"><SPAN
style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: DIN-Regular">Regards,</SPAN></P>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: 0in"><SPAN
style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: DIN-Regular"> </SPAN><SPAN
style="COLOR: gray; FONT-FAMILY: DIN-Regular"> <o:p></o:p></SPAN></P>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: 0in"><SPAN
style="COLOR: gray; FONT-FAMILY: DIN-Regular">Paul Singh<o:p></o:p></SPAN></P>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: 0in"><?xml:namespace
prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:PersonName
style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"
tabIndex=0 w:st="on"><SPAN
style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: DIN-Regular">IT
Support</SPAN></st1:PersonName><SPAN
style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: DIN-Regular"> | <SPAN
class=SpellE>Bamford</SPAN> & <SPAN class=SpellE>Daylesford</SPAN> Organic
|<SPAN class=GramE> DDI</SPAN>: +44 (0) 207 259 4938 | Mobile: 07500 607
488</SPAN><SPAN
style="COLOR: gray; FONT-FAMILY: DIN-Regular"><o:p></o:p></SPAN></P>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; tab-stops: 0in"><SPAN
style="FONT-SIZE: 9pt; COLOR: gray; FONT-FAMILY: DIN-Regular">11a <st1:address
w:st="on"><st1:Street w:st="on">West <SPAN class=SpellE>Halkin</SPAN>
Street</st1:Street>, <st1:City w:st="on">London</st1:City> <st1:PostalCode
w:st="on">SW1X 8JL</st1:PostalCode></st1:address></SPAN><SPAN
style="COLOR: gray; FONT-FAMILY: DIN-Regular"><o:p></o:p></SPAN></P>
<P class=MsoNormal><IMG height=48 src="cid:906443815@28032011-1C32" width=345
v:shapes="_x0000_i1025"></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal> </P>
<P class=MsoNormal> </P>
<P class=MsoNormal> </P>
<P class=MsoNormal><SPAN
style="COLOR: gray; FONT-FAMILY: DIN-Regular"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal> </P></DIV>
<DIV> </DIV></BODY></HTML>
<pre>Bamford Ltd.
Registered Office: 11A West Halkin Street London, England. SW1X 8JL
Registered No. 4950734 England & Wales
The contents of this Email communication are confidential to the addressee.
If you are not the intended recipient you may not disclose or distribute this communication in any form but should immediately contact the Sender.
The information, images, documents and views expressed in this Email are personal to the Sender and do not expressly or implicitly represent official
positions and policies of the Bamford group of companies and no authority exists on behalf of Bamford to make any agreements, representations or other
binding commitment by means of Email.
Certified 100% virus free by Postini
Please consider the environment before printing this email.