RE: Help with mon.cf switches
Ok, thanks again for everybodies help I am beginning to understand the way Mon works :) Anyway, I believe I have made some progress.. Mon now gives me the green light on my process monitoring, BUT I get an error like such: Server1 returned an SNMP error: Unknown user name Any ideas? Thanks, Craig -Original Message- From: zalktis [mailto:[EMAIL PROTECTED] Sent: Friday, 7 January 2005 9:49 To: Craig Reeson Subject: RE: Help with mon.cf switches Hi, Arguments (parameters) of mon server and process.monitor spawned for particular watchgroup is completely different things. Maybe - that's the problem? To use process.monitor you should: - install UCD-SNMP/NetSNMP software on target host - configure snmpd on target host, e.g: proc httpd 10 20 # number of httpd-s should be between 10 and 20 - start snmpd on target host (target host = host to check) Then you can manually check (from mon server shell): $ process.monitor -c SNMP_community_if_not_public host or you can add service in mon.cf which will be periodically checked by mon server using process.monitor. e.g: # example -- hostgroup billing bill01.domain.com watchgroup billing service ping service disk-space ... ... service proc exclude_period wd{sun-sat},hr{18-7} description Check of billing processes depend SELF:ping interval 35m randskew 25s monitor process.monitor failure_interval 5m period alertafter 2 alert mail.alert [EMAIL PROTECTED] upalertafter 10s upalert mail.alert -u [EMAIL PROTECTED] -- z __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- 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
--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
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
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
rsday, 6 January 2005 6:08 To: Craig Reeson Cc: mon@linux.kernel.org Subject: Re: Help with mon.cf switches 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. --- 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
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