public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Disable fcron logging
@ 2010-08-21 13:25 Alex Schuster
  2010-08-21 13:43 ` Alan McKinnon
  2010-08-21 19:26 ` Stroller
  0 siblings, 2 replies; 16+ messages in thread
From: Alex Schuster @ 2010-08-21 13:25 UTC (permalink / raw
  To: gentoo-user

Hi there!

I want to monitor the power status of my hard drives, so I wrote a little
script that gives me this output:

sda: standby 
sdb: standby 
sdc: active/idle 32°C
sdd: active/idle 37°C

This script is called every minute via an fcron entry, output goes into a
log file, and I use the file monitor plasmoid to watch this log file in
KDE.

It's working fine, but  also monitor my syslog in another file monitor
plamoid, and now I get lots of these entries:

Aug 21 14:21:06 [fcron] pam_unix(fcron:session): session opened for user root by (uid=0)
Aug 21 14:21:06 [fcron] Job /usr/local/sbin/hdstate >> /var/log/hdstate started for user root (pid 24483)
Aug 21 14:21:08 [fcron] Job /usr/local/sbin/hdstate >> /var/log/hdstate completed
Aug 21 14:21:08 [fcron] pam_unix(fcron:session): session closed for user root

There is a nolog option for fcrontab, but I still get this output every
minute:

Aug 21 15:10:06 [fcron] pam_unix(fcron:session): session opened for user root by (uid=0)
Aug 21 15:10:08 [fcron] pam_unix(fcron:session): session closed for user root

Hmmm... could it be that these entries do not come from fcron itself, but
from PAM? Do I need to look there so suppress them? And if so, would this
make sense? I want to suppress only these specific logs, not other stuff
that might be interesting.

Any ideas? It's nothing important, but maybe there's a simple solution,
and I like to learn. Don't knwo much about this PAM stuff yet.
Maybe I'll just start a background job for that instead of using fcron.

	Wonko



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-08-30 17:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-21 13:25 [gentoo-user] Disable fcron logging Alex Schuster
2010-08-21 13:43 ` Alan McKinnon
2010-08-23 22:12   ` Alex Schuster
2010-08-24  6:49     ` Alan McKinnon
2010-08-21 19:26 ` Stroller
2010-08-22 10:26   ` Alex Schuster
2010-08-22 19:00     ` Stroller
2010-08-22 19:50       ` Stroller
2010-08-22 21:39       ` Alex Schuster
2010-08-22 22:18         ` Mick
2010-08-24 13:31           ` KDE and hdparm (was: Re: [gentoo-user] Disable fcron logging) Alex Schuster
2010-08-25  9:54             ` [gentoo-user] Re: KDE and hdparm Alex Schuster
2010-08-25 19:14               ` Mick
2010-08-30 16:38             ` KDE and hdparm (was: Re: [gentoo-user] Disable fcron logging) Mick
2010-08-23 18:25         ` [gentoo-user] Disable fcron logging Stroller
2010-08-23 21:30           ` Alex Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox