Re: [Solaris 9] log output to terminal
2005-10-03 11:11:47 GMT
--On Monday, October 03, 2005 11:54:40 +0200 Alexandre Pashai
<alexandre.pashai <at> thales-is.com> wrote:
> hi all,
>
> mon daemon outputs logs into logfile (normally).
> On Solaris 9, the log is sent to other terminals...that's annoying.
>
> what's the matter ??
>
> thanks fro replies
>
Mon is just using syslog. Either you have mon syslog'ing to a facility
that gets re-broadcast everywhere, or you have a syslog.conf that is
sending too much information to the user terminals.
>From the mon manual:
syslog_facility = facility
Specifies the syslog facility used for logging. daemon is the default.
Check your syslog.conf to see how logs from daemon are configured.
-David
David Nolan <*> vitroth+ <at> cmu.edu
curses: May you be forced to grep the termcap of an unclean yacc while
a herd of rogue emacs fsck your troff and vgrind your pathalias!
(Continue reading)error while starting the mon service on fedora core 3
2005-10-04 10:22:36 GMT
Hey,
I am using Fedora Core 3 and I installed mon through rpm.I made some changes in mon.cf file but when I tried to start the mon service I got the following errors.
Starting System Monitoring daemon (mon): cf error: could not use PAM authentication: Can't locate Authen/PAM.pm in <at> INC ( <at> INC contains: /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i386-linux-thread-multi /usr/lib/perl5/5.8.6 .) at (eval 5) line 1, <CFG> line 14.
BEGIN failed--compilation aborted at (eval 5) line 1, <CFG> line 14.
I don't know the reason for this. The version of perl on my system is "perl-5.8.6-15".
Please help in configure mon on my sytem.
Thanks & Regards
Ankush Grover
_______________________________________________ mon mailing list mon <at> linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon
Re: error while starting the mon service on fedora core 3
2005-10-04 11:57:40 GMT
ankush grover wrote: > Starting System Monitoring daemon (mon): cf error: could not use PAM > authentication: Can't locate Authen/PAM.pm in <at> INC ( <at> INC contains: ... > I don't know the reason for this. The version of perl on my system is " > perl-5.8.6-15". > Please help in configure mon on my sytem. Your simply missing the "perl-Authen-PAM" RPM package. If your CPU is x86: rpm -hiv http://dag.wieers.com/packages/perl-Authen-PAM/perl-Authen-PAM-0.15-1.1.fc3.rf.i386.rpm If your architecture is x86_64: rpm -hiv http://dag.wieers.com/packages/perl-Authen-PAM/perl-Authen-PAM-0.15-1.1.fc3.rf.x86_64.rpm or: yum install perl-Authen-PAM (don't know whether that package is available from Fedora Core 3 out-of-the-box, I use SUSE Linux) cheers -- -- -o) Pascal Bleser ATOS Worldline/Aachen(DE) /\\ System Architect WLP Business Platform _\_v "Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect."-L.Torvalds
Re: error while starting the mon service on fedora core 3
2005-10-04 12:38:50 GMT
Thanks Mr.Pascal & Mr.Tom.Yes the perl-Authen-PAM package was missing.Now I am able to start the mon service.
I will edit the mon service as per my reqiurements.I just wanted to
know one thing it is possible if the server goes down one can send the
message to the concerned person's mobile. Any utility or software is
available for sending sms/message to the concerned person's mobile.
Thanks & Regards
Ankush Grover
ankush grover wrote:
> Starting System Monitoring daemon (mon): cf error: could not use PAM
> authentication: Can't locate Authen/PAM.pm in <at> INC ( <at> INC contains:
...
> I don't know the reason for this. The version of perl on my system is "
> perl-5.8.6-15".
> Please help in configure mon on my sytem.
Your simply missing the "perl-Authen-PAM" RPM package.
If your CPU is x86:
rpm -hiv http://dag.wieers.com/packages/perl-Authen-PAM/perl-Authen-PAM-0.15-1.1.fc3.rf.i386.rpm
If your architecture is x86_64:
rpm -hiv http://dag.wieers.com/packages/perl-Authen-PAM/perl-Authen-PAM-0.15-1.1.fc3.rf.x86_64.rpm
or:
yum install perl-Authen-PAM
(don't know whether that package is available from Fedora Core 3 out-of-the-box, I use SUSE Linux)
cheers
--
-o) Pascal Bleser ATOS Worldline/Aachen(DE)
/\\ System Architect WLP Business Platform
_\_v "Really, I'm not out to destroy Microsoft. That will
just be a completely unintentional side effect."-L.Torvalds
_______________________________________________ mon mailing list mon <at> linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon
configuring mon.cgi & mon on FC3
2005-10-04 12:56:03 GMT
hey friends,
I have recently configured clustering for Apache and Mysql.Now I
want to configure "mon" in such a way if any of the service on the
server is not available then an email should be mail to the concerned
person/persons and If the service comes up then also an email should be
mailed to the concerned person/persons.
There are 4 cluster servers and I want to monitor all the servers.All the servers are running apache and mysql.
Moreover I want to configure webinterface or mon.cgi on the system.
Please guide me .
Thanks & Regards
Ankush Grover
_______________________________________________ mon mailing list mon <at> linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon
Re: error while starting the mon service on fedora core 3
2005-10-04 13:51:07 GMT
On Tue, 4 Oct 2005, ankush grover wrote: > Thanks Mr.Pascal & Mr.Tom.Yes the perl-Authen-PAM package was missing.Now I > am able to start the mon service. > > I will edit the mon service as per my reqiurements.I just wanted to know one > thing it is possible if the server goes down one can send the message to the > concerned person's mobile. Any utility or software is available for sending > sms/message to the concerned person's mobile. http://ftp.kernel.org/pub/software/admin/mon/contrib/alerts/sms/
RE: configuring mon.cgi & mon on FC3
2005-10-04 16:11:05 GMT
For your question about service monitoring you’d probably want to use msql-mysql.monitor and http.monitor to watch MySQL and Apache. Both of those monitors come with mon by default. For alerts you can setup an alert and upalert for each service to notify you via email or sms.
Here’s a basic example for a web server monitor:
watch Webserver
service HTTP
interval 4m
monitor http.monitor
allow_empty_group
period wd {Sun-Sat}
alert mail.alert -S “web server is down” mis <at> domain.com
upalert mail.alert -S "web server is back up" mis <at> domain.com
alertevery 15m
As for mon.cgi you can get the latest version from http://moncgi.sourceforge.net/. I maintain mon.cgi so I can also help with any questions with the installation and use of it.
Hope that helps,
--
Ryan Clark
Senior Network Engineer - British Columbia
Trader Classified Media
4664 Lougheed Hwy, Burnaby, BC
Office: 604.540.4455 ext 3310
Mobile: 604.516.9174
From:
mon-bounces <at> linux.kernel.org [mailto:mon-bounces <at> linux.kernel.org] On Behalf Of ankush grover
Sent: Tuesday, October 04, 2005
5:56 AM
To: mon <at> linux.kernel.org
Subject: configuring mon.cgi &
mon on FC3
hey friends,
I have recently configured clustering for Apache and Mysql.Now I want to
configure "mon" in such a way if any of the service on the server is
not available then an email should be mail to the concerned person/persons and
If the service comes up then also an email should be mailed to the concerned
person/persons.
There are 4 cluster servers and I want to monitor all the servers.All the
servers are running apache and mysql.
Moreover I want to configure webinterface or mon.cgi on the system.
Please guide me .
Thanks & Regards
Ankush Grover
_______________________________________________ mon mailing list mon <at> linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon
invalid mode for Mysql alert
2005-10-05 08:43:57 GMT
hey friends,
I have configured mon for http alert but I am getting error while setting up mon for mysql
"failure for mysql1 MYSQL 1128500795 invalid mode !
Oct 5 13:56:35 linux mon[6086]: calling alert mail.alert for
mysql1/MYSQL (/usr/lib/mon/alert.d/mail.alert,-S "mysql1 is down"
ankush174 <at> gmail.com) invalid mode !"
the mon.cf file
### global options
cfbasedir = /etc/mon
pidfile = /var/run/mon.pid
statedir = /var/lib/mon/state.d
logdir = /var/lib/mon/log.d
dtlogfile = /var/lib/mon/log.d/downtime.log
alertdir = /usr/lib/mon/alert.d
mondir = /usr/lib/mon/mon.d
maxprocs = 20
histlength = 100
randstart = 60s
authtype = pam
userfile = /etc/mon/userfile
hostgroup apache1 192.168.1.67
hostgroup apache2 192.168.1.68
hostgroup mysql1 192.168.1.67
hostgroup mysql2 192.168.1.68
watch apache1
service HTTP
interval 1m
monitor http.monitor
allow_empty_group
period wd {Sun-Sat}
alert mail.alert -S "web server1 is down" ankush174 <at> gmail.com
upalert mail.alert -S "web server1 is back up" ankush174 <at> gmail.com
alertevery 1m
watch apache2
service HTTP
interval 1m
monitor http.monitor
allow_empty_group
period wd {Sun-Sat}
alert mail.alert -S "web server2 is down" ankush174 <at> gmail.com
upalert mail.alert -S "web server2 is back up" ankush174 <at> gmail.com
alertevery 1m
watch mysql1
service MYSQL
interval 1m
monitor msql-mysql.monitor
allow_empty_group
period wd {Sun-Sat}
alert mail.alert -S "mysql1 is down" ankush174 <at> gmail.com
upalert mail.alert -S "mysql1 is back up" ankush174 <at> gmail.com
alertevery 1m
watch mysql2
service MYSQL
interval 1m
monitor msql-mysql.monitor
allow_empty_group
period wd {Sun-Sat}
alert mail.alert -S "mysql2 is down" ankush174 <at> gmail.com
upalert mail.alert -S "mysql2 is back up" ankush174 <at> gmail.com
alertevery 1m
Moreover incase of HTTP service the alert message is not proper means I receive only
Summary output : "web
Group : apache2
Service : HTTP
Time noticed : Wed Oct 5 12:53:03 2005
Secs until next alert :
Members : 192.168.1.68
Detailed text (if any) follows:
-------------------------------
HOST 192.168.1.68: connect: No route to host
whereas In case of upalert I get this
Summary output : web server2 is back up
Group : apache2
Service : HTTP
Time noticed : Wed Oct 5 12:54:02 2005
Secs until next alert :
Members : 192.168.1.68
Detailed text (if any) follows:
-------------------------------
HOST 192.168.1.68: connect: No route to host
I am using postfix as MTA.
Any pointers.
Thanks & Regards
Ankush Grover
_______________________________________________ mon mailing list mon <at> linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon
RSS Feed