setlogsock can break

2001-12-17 Thread Gilles Lamiral

Hello,

With "old" syslog module, setlogsock does not exist.
But the code breaks even if mon doesn't use it (solaris).

my $RCSID='$Id: mon 1.27 Sat, 08 Sep 2001 09:42:05 -0400 trockij $';

- use Sys::Syslog qw(:DEFAULT setlogsock);
+ use Sys::Syslog qw(:DEFAULT);

- ($^O eq "linux" || $^O eq "openbsd") && setlogsock ('unix');
+ ($^O eq "linux" || $^O eq "openbsd") && Sys::Syslog::setlogsock ('unix');

Thanks in advance for the next release.

-- 
Au revoir,
Gilles Lamiral. France, L'Hermitage (35590).
33 (0) 2 99 78 62 49
33 (0) 6 20 79 76 06



how to use ldap.monitor against MS Exchange server

2001-12-17 Thread Konstantin 'Kastus' Shchuka

I'm trying to use ldap.monitor to watch LDAP service on an MS Exchange server,
but it returns no entries. Anybody is successful using it? What parameters
need to be used?

Thanks,
-- 
Konstantin 'Kastus' Shchuka
Unix System Administrator
ePocrates Inc.
tel 650.232.4886
fax 650.592.6995



Time until next alert : $opt_u

2001-12-17 Thread htabug



Hello,
 
 
    In the 
mail.alert script containing the line, Time until next alert : $opt_u, the 
script doesn't seem to display the time when the alert will be called next when 
it sends the email. All I get is a line stating Time until next alert : , 
without the contents of $opt_u being displayed. Is there something missing in 
the mail.alert script that I need to add? Or anything wrong in that line Time 
until next alert: $opt_u in the mail.alert script.  I haven't modified any 
of the scripts that comes with the mon package. And my mon is up and running and 
sending the emails, my only concern is why that line "Time until next 
alert:"  seems to not work.
 
 
Thanks
 


Re: web page

2001-12-17 Thread Mark Wagner

> At 04:13 PM 12/16/01 -0800, Jim Trocki wrote:
> >it's kinda unbecoming. i was thinking about adding a flaming logo or
> >something :)
> 
> Don't tempt us, because someone might actually take you up on it:
> http://www.nam-shub.com/files/flaming-mon.jpg
> 
> (courtesy of http://www.cooltext.com)

Or, if you want to start violating trademarks and copyrights:



-- 
Mark Wagner [EMAIL PROTECTED] 206-598-0302
Unix System Administrator, Radiation Oncology and Radiology



Re: Problem starting mon

2001-12-17 Thread Andrew Ryan

At 10:02 AM 12/17/01 -0500, Drew J. Como wrote:
>When I try to run mon, I get the following error:
>
> Warning: hostgroup servergrp has no watch assigned to it!
>
>Hmmm...  I see a watch, why doesn't mon??


Because (as documented in the man page and as should be in the FAQ), 
hostgroup definitions are separated by an explicitly blank line, and you 
don't have a blank line between your hostgroup definition and your watch 
definition (the comment line is ignored completely, not treated as a blank 
line).

Add a blank line after your hostgroup definition and you should be OK.


andrew




RE: Problem starting mon

2001-12-17 Thread Crow, Owen

One of the counter-intuitive gotchas of mon, but mentioned in the man page:

Hostgroup Entries
[snip] Non-blank lines following the first hostgroup line are interpreted as
more hostnames.  The hostgroup defi­nition ends with a blank line.

I've found that lines that begin with # are ignored, but not considered
blank so you need to add a blank line after your hostgroup entry:

hostgroup servergrp raven

watch servergrp
service ping
[...]

Regards,
Owen Crow
Systems Programmer (Unix)
BMC Software, Inc.

-Original Message-
From: Drew J. Como [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 9:03 AM
To: 'mon mailing list'
Subject: Problem starting mon


All,

I am having a problem starting mon.  I think I may have
something wrong inside of the config file, but I am not
sure.

Here is a snippet of the config file:

#
# group definitions (hostnames or IP addresses)
#
hostgroup servergrp raven
#
watch servergrp
service ping
description ping servergrp
interval 5m
monitor ping.monitor
period wd {Mon-Sun} hr {12am-11:59pm}
alert mail.alert [EMAIL PROTECTED]
alertevery 1h

When I try to run mon, I get the following error:

Warning: hostgroup servergrp has no watch assigned to it!

Hmmm...  I see a watch, why doesn't mon??

Thanks :-)


Drew J. Como Phone: 631-434-6600
Systems Administrator  Fax: 631-434-7800
[EMAIL PROTECTED] Web: www.bascom.com
Bascom Global Internet Services, Inc.

  "When quality is the goal, 
   winning is guaranteed." 



Re: Problem starting mon

2001-12-17 Thread Jim Trocki

On Mon, 17 Dec 2001, Drew J. Como wrote:

> #
> # group definitions (hostnames or IP addresses)
> #
> hostgroup servergrp raven
> #
> watch servergrp
> service ping
> description ping servergrp

[...]

> Hmmm...  I see a watch, why doesn't mon??

you should upgrade to mon-0.99.2, at least. i changed the config
parsing to do what people expect instead of relying on them to read the
documentation to get the right syntax. by bad for not doing that from
the word "go".

from the man page:

   Hostgroup Entries
   Hostgroup entries begin with the  keyword  hostgroup,  and
   are  followed by a hostgroup tag and one or more hostnames
   or IP addresses, separated by  whitespace.  The  hostgroup
   tag  must  be  composed of alphanumeric characters, a dash
   ("-"), a period ("."), or an underscore  ("_").  Non-blank
   lines  following  the first hostgroup line are interpreted
   as more hostnames.  The hostgroup definition ends  with  a
   ^^
   blank line. For example:
   ^^^





Problem starting mon

2001-12-17 Thread Drew J. Como

All,

I am having a problem starting mon.  I think I may have
something wrong inside of the config file, but I am not
sure.

Here is a snippet of the config file:

#
# group definitions (hostnames or IP addresses)
#
hostgroup servergrp raven
#
watch servergrp
service ping
description ping servergrp
interval 5m
monitor ping.monitor
period wd {Mon-Sun} hr {12am-11:59pm}
alert mail.alert [EMAIL PROTECTED]
alertevery 1h

When I try to run mon, I get the following error:

Warning: hostgroup servergrp has no watch assigned to it!

Hmmm...  I see a watch, why doesn't mon??

Thanks :-)


Drew J. Como Phone: 631-434-6600
Systems Administrator  Fax: 631-434-7800
[EMAIL PROTECTED] Web: www.bascom.com
Bascom Global Internet Services, Inc.

  "When quality is the goal, 
   winning is guaranteed." 




Re: web page

2001-12-17 Thread Charlie Watts

On Mon, 17 Dec 2001, Jim Trocki wrote:
> On Sun, 16 Dec 2001, Andrew Ryan wrote:
> > At 04:13 PM 12/16/01 -0800, Jim Trocki wrote:
> > >it's kinda unbecoming. i was thinking about adding a flaming logo or
> > >something :)
> >
> > Don't tempt us, because someone might actually take you up on it:
> > http://www.nam-shub.com/files/flaming-mon.jpg
>
> i forgot who doodled this one up:
>
> http://arctic.org/~trockij/trockimon.jpg

Arggghhh, too early in the morning to see such things ... my poor brain.

Or, well, I suppose it is a cartoon, perhaps it's just when you'd expect
to see such things.

-- 
Charlie Watts
[EMAIL PROTECTED]
Frontier Internet
http://www.frontier.net/





Re: web page

2001-12-17 Thread Jim Trocki

On Sun, 16 Dec 2001, Andrew Ryan wrote:

> At 04:13 PM 12/16/01 -0800, Jim Trocki wrote:
> >it's kinda unbecoming. i was thinking about adding a flaming logo or
> >something :)
> 
> Don't tempt us, because someone might actually take you up on it:
> http://www.nam-shub.com/files/flaming-mon.jpg

i forgot who doodled this one up:

http://arctic.org/~trockij/trockimon.jpg




Re: Somewhat OT: sms.alert and sendsms

2001-12-17 Thread Derek Callaway

BTW, I'm using the sms.alert script from
http://acsys.anu.edu.au/~tpot/hypermail/mon/feb2000/0767.html and not the
one from the contrib alerts on the ftp site. 

Also, I get this error when using gnokii: Hmmm... GSM_LinkOK never went true. Quitting.

At first, I thought another process may have been using the modem, but
judging from the output of fuser that is not the case.

-- 
//Derek Callaway <[EMAIL PROTECTED]> * Programmer: CISC, LLC - S@IRC
 char *sites[]={"http://www.freezersearch.com/index.cfm?aff=dhc";,
 "http://www.ciscllc.com","http://www.freezemail.com",0}; /*KDR AB 249*/