RE: Help with mon.cf switches

2005-01-05 Thread David Nolan

--On Thursday, January 06, 2005 12:15 PM +1100 Craig Reeson 
<[EMAIL PROTECTED]> wrote:

I had assumed the -P = process/server name and the -c = config file
What we're trying to do is monitoring process' on remote box to see that
thy are within parameter
Any suggestion on how to attack this?
Thats a very generic question, so I'll give a very generic answer:
Find or write a monitor script to test the process.
For example, http.monitor can be used to make an HTTP request to a web 
server and verify it its running and serving pages.  Or dns.monitor can be 
use to send DNS queries to a name server, etc.

If the process you care about doesn't provide some remotely testable 
service, then you need an agent of some form running on the remote machine 
that can tell you the process is running.  The process.monitor script 
expects the remote machine to be running the snmp agent from the Net-SNMP 
package, formerly known as UCD-SNMP.  If you have that agent installed, or 
can install it, edit the config file for the agent and enable the process 
monitoring functionality.  Then process.monitor will be able to report 
whether snmpd is reporting any failures on the remote machine.

(Alternatively you could write a monitor script which logged into the 
remote machine and ran a program to test a local service, but I've never 
taken that approach myself.)


-David Nolan
Network Software Designer
Computing Services
Carnegie Mellon University
___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon


RE: Help with mon.cf switches

2005-01-05 Thread Craig Reeson
Hmm

I had assumed the -P = process/server name and the -c = config file

What we're trying to do is monitoring process' on remote box to see that
thy are within parameter

Any suggestion on how to attack this?

Thanks

-Original Message-
From: Jim Trocki [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 6 January 2005 11:18
To: Craig Reeson
Cc: mon@linux.kernel.org
Subject: RE: Help with mon.cf switches

On Thu, 6 Jan 2005, Craig Reeson wrote:

> Thanks for everybody's help so far...
>
> It has been mentioned that the -P and -C switches are no longer 
> supported/used in mon-0.99.2 So what should I replce these switches 
> with? (I am running Debian testing w/ 0.99.2-7)

your config file must be assuming some process.monitor that i've never
seen before, or that has never been shipped with any of the previous
versions of mon i've ever released.  i have no record of process.monitor
(the one written by brian moore) ever taking a -P or a -C argument. i
have no idea what those arguments are supposed to do.



---
This email and any files transmitted with it are solely intended for the use of 
the addressee(s) and may contain information that is confidential and 
privileged.  If you receive this email in error, please advise us by return 
email immediately.  Please also disregard the contents of the email, delete it 
and destroy any copies immediately.
Computershare Limited and its subsidiaries do not accept liability for the 
views expressed in the email or for the consequences of any computer viruses 
that may be transmitted with this email.
This email is also subject to copyright.  No part of it should be reproduced, 
adapted or transmitted without the written consent of the copyright owner.


___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon


RE: Help with mon.cf switches

2005-01-05 Thread Jim Trocki
On Thu, 6 Jan 2005, Craig Reeson wrote:
Thanks for everybody's help so far...
It has been mentioned that the -P and -C switches are no longer
supported/used in mon-0.99.2
So what should I replce these switches with? (I am running Debian
testing w/ 0.99.2-7)
your config file must be assuming some process.monitor that i've never seen
before, or that has never been shipped with any of the previous versions of mon
i've ever released.  i have no record of process.monitor (the one written by
brian moore) ever taking a -P or a -C argument. i have no idea what those
arguments are supposed to do.
___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon


RE: Help with mon.cf switches

2005-01-05 Thread Craig Reeson
Thanks for everybody's help so far...

It has been mentioned that the -P and -C switches are no longer
supported/used in mon-0.99.2
So what should I replce these switches with? (I am running Debian
testing w/ 0.99.2-7)


Here is a larger section of my mon.cf:

# global options
#
cfbasedir   = /etc/mon
alertdir= /usr/lib/mon/alert.d
mondir  = /usr/lib/mon/mon.d
maxprocs= 20
histlength  = 100
randstart   = 60s

authtype = getpwnam


###
# After a failover, the monitor will be monitoring the wrong boxes.
# Simply swap the MAINAUPROD and BACKAUPROD

# The Main Australian ORMS box
hostgroup MAINAUPROD 172.28.xx.xx

# The Backup Australian ORMS box
hostgroup BACKAUPROD 172.28.xx.xx

# The first hop before the production subnet
hostgroup DMZ_ROUTER 203.xx.xx.xx

# The Chicago ORMS boxes
hostgroup MAINNAPROD chilorms1.cshare.com
hostgroup chilgw 57.35.xx.xx

# SMS alerting check
hostgroup SMS_Test 127.0.0.1

# cmtdemo
hostgroup CMTDEMO cmtdemo


###
# Send a test SMS each day to check SMS alerting is actually still
working.
#
watch SMS_Test
service SMS_Test
description Test failure for SMS alerting. This has been
set to fail once per day to test the SMS message alerting. Disregard
this failure.
interval 50m
monitor daily_sms.monitor Daily SMS test
period wd {Sun-Sat}
alert smsclient.alert craig
alertevery 1h


###
# Main Australian ORMS production box
# 
watch MAINAUPROD
service Ping
description Ping ORMS box
interval 15s
monitor fping.monitor -r 3
period LOW1: hr {22-06}
alert mail.alert
[EMAIL PROTECTED]
alertevery 8h
alertafter 3
period HIGH1: hr {06-22}
alert mail.alert
[EMAIL PROTECTED]
alertevery 1h
alertafter 3
period LOW2: hr {22-06}
alert smsclient.alert craig
alertevery 8h
alertafter 3
period HIGH2: hr {06-22}
alert smsclient.alert craig
alertevery 1h
alertafter 3
service RE_Procs
description ORMS Routing Engine processes
interval 1m
monitor process.monitor -P
RoutingEngine,BCServer,TSMRServ,RETimer,TableDownloadSe,DBIntradayUpdat,
GenericServer,SOGWReport,dataserver,backupserver -C /etc/mon/proce
ss.monitor.conf
period LOW1: hr {22-06}
alert mail.alert
[EMAIL PROTECTED]
alertevery 8h
alertafter 1
period HIGH1: hr {06-22}
alert mail.alert
[EMAIL PROTECTED]
alertevery 1h
alertafter 1
period LOW2: hr {22-06}
alert smsclient.alert craig
alertevery 8h
alertafter 1
period HIGH2: hr {06-22}
alert smsclient.alert craig
alertevery 1h
alertafter 1
service ETrade_Australia_Gateway
description ORMS ETrade Australia Gateway processes
interval 1m
monitor process.monitor -P etradeaugw -C
/etc/mon/process.monitor.conf
period MORNING1: wd {2-6} hr {09} min {30-59}
alert mail.alert
[EMAIL PROTECTED]
alertevery 1h
alertafter 1
period DAY1: wd {2-6} hr {10-15}
alert mail.alert
[EMAIL PROTECTED]
alertevery 1h
alertafter 1
period ARVO1: wd {2-6} hr {16} min {0-29}
alert mail.alert
[EMAIL PROTECTED]
alertevery 1h
alertafter 1
period MORNING2: wd {2-6} hr {09} min {30-59}
alert smsclient.alert craig
alertevery 1h
alertafter 1
period DAY2: wd {2-6} hr {10-15}
alert smsclient.alert craig
alertevery 1h
alertafter 1
period ARVO2: wd {2-6} hr {16} min {0-29}
alert smsclient.alert craig
alertevery 1h
alertafter 1



 




-Original Message-
From: Jim Trocki [mailto:[EMAIL PROTECTED] 
Sent: Thursday,

Re: Help with mon.cf switches

2005-01-05 Thread Jim Trocki
On Wed, 5 Jan 2005, Craig Reeson wrote:
Guys,
I'm new to Mon and have taken over a non working install of Mon which I
desperately need to get working...
Anyway, what does the -P option mean/do?
Ie. monitor process.monitor -P augw -C /etc/mon/process.monitor.conf
for process.monitor, -P does nothing. i'm not sure what you're trying to
do or from where you got that example, but if you elaborate then maybe i
can help out.
___
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon