85 lines
3.4 KiB
Diff
85 lines
3.4 KiB
Diff
diff -Nru mon-1.2.0.orig/etc/mon.cf mon-1.2.0/etc/mon.cf
|
|
--- mon-1.2.0.orig/etc/mon.cf 1970-01-01 01:00:00.000000000 +0100
|
|
+++ mon-1.2.0/etc/mon.cf 2009-01-01 18:59:39.000000000 +0100
|
|
@@ -0,0 +1,24 @@
|
|
+#
|
|
+# Example "mon.cf" configuration for "mon".
|
|
+#
|
|
+# see example.cf for sample usage
|
|
+#
|
|
+
|
|
+#
|
|
+# global options
|
|
+#
|
|
+cfbasedir = /etc/mon
|
|
+alertdir = /usr/lib/mon/alert.d
|
|
+mondir = /usr/lib/mon/mon.d
|
|
+maxprocs = 20
|
|
+histlength = 100
|
|
+randstart = 60s
|
|
+
|
|
+#
|
|
+# authentication types:
|
|
+# getpwnam standard Unix passwd, NOT for shadow passwords
|
|
+# shadow Unix shadow passwords (not implemented)
|
|
+# userfile "mon" user file
|
|
+#
|
|
+authtype = getpwnam
|
|
+
|
|
diff -Nru mon-1.2.0.orig/Makefile mon-1.2.0/Makefile
|
|
--- mon-1.2.0.orig/Makefile 1970-01-01 01:00:00.000000000 +0100
|
|
+++ mon-1.2.0/Makefile 2009-01-01 19:01:10.000000000 +0100
|
|
@@ -0,0 +1,43 @@
|
|
+#
|
|
+# $Id: Makefile 1.2 Sun, 24 Jun 2001 22:41:40 -0400 trockij $
|
|
+#
|
|
+# compiles on Linux, Solaris 2.5, Solaris 2.6, and AIX Version 4.2
|
|
+#
|
|
+CC = gcc
|
|
+CFLAGS = -O2 -Wall -g
|
|
+LDFLAGS =
|
|
+LDLIBS =
|
|
+# uncomment next line for Solaris
|
|
+# LDLIBS = -lnsl -lsocket
|
|
+
|
|
+MONPATH=/usr/lib/mon
|
|
+DIALIN_MONITOR_REAL=$(MONPATH)/mon.d/dialin.monitor
|
|
+
|
|
+DESTDIR=
|
|
+PROGS =
|
|
+MANDIR = /usr/share/man
|
|
+SYSCONFDIR = /etc
|
|
+INITRDDIR = $(SYSCONFDIR)/rc.d/init.d
|
|
+
|
|
+all: $(PROGS)
|
|
+
|
|
+clean:
|
|
+ rm -f $(PROGS)
|
|
+
|
|
+install:
|
|
+ mkdir -p $(DESTDIR)$(MONPATH)/{state.d,alert.d,mon.d}
|
|
+ install state.d/* $(DESTDIR)$(MONPATH)/state.d
|
|
+ install alert.d/* $(DESTDIR)$(MONPATH)/alert.d
|
|
+ install mon.d/*.monitor $(DESTDIR)$(MONPATH)/mon.d
|
|
+ install -m 755 mon $(DESTDIR)$(MONPATH)
|
|
+
|
|
+ mkdir -p $(DESTDIR)$(MANDIR)/{man1,man8}
|
|
+ install -m 644 doc/moncmd.1 doc/monshow.1 $(DESTDIR)$(MANDIR)/man1
|
|
+ install -m 644 doc/mon.8 $(DESTDIR)$(MANDIR)/man8
|
|
+
|
|
+ mkdir -p $(DESTDIR)$(SYSCONFDIR)/mon
|
|
+ install -m 644 etc/* $(DESTDIR)$(SYSCONFDIR)/mon
|
|
+
|
|
+ mkdir -p $(DESTDIR)$(INITRDDIR)
|
|
+ install -m 755 etc/S99mon $(DESTDIR)$(INITRDDIR)/mon
|
|
+
|
|
diff -Nru mon-1.2.0.orig/mon.d/Makefile mon-1.2.0/mon.d/Makefile
|
|
--- mon-1.2.0.orig/mon.d/Makefile 2009-01-01 19:01:47.000000000 +0100
|
|
+++ mon-1.2.0/mon.d/Makefile 2009-01-01 18:59:39.000000000 +0100
|
|
@@ -31,4 +31,4 @@
|
|
install:
|
|
install -d $(MONPATH)/mon.d
|
|
install rpc.monitor $(MONPATH)/mon.d/
|
|
- install -g uucp -m 02555 dialin.monitor.wrap $(MONPATH)/mon.d/
|
|
+ install -m 02555 dialin.monitor.wrap $(MONPATH)/mon.d/
|