How have smartd log to file instead of syslog

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How have smartd log to file instead of syslog

BitBucket
Hi:
 
Some time ago I knew how to tell smartd to log to a local file instead of syslog, but I seem to have forgotten what the option was and I can't find it now. 
 
Current example setting below, where I do want a popup but I'm not getting any after the test message, and the smartd messages all go to the Windows application event log (which I assume is "syslog" in your documentation) (example below).
 
Thanks in advance for your help.
 
-- Roy Zider
 
Current directive in smartd:
/dev/hda:a -a -W 2,40,45 -o on -S on -s (S/../.././04|L/../../6/05) -m sysmsgbox -M test
 

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Smartmontools-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How have smartd log to file instead of syslog

Christian Franke
BitBucket wrote:
> Some time ago I knew how to tell smartd to log to a local file instead
> of syslog, but I seem to have forgotten what the option was and I
> can't find it now.

See '-l local0' option (not directive) on smartd man page.

Cheers,
Christian


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Smartmontools-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How have smartd log to file instead of syslog

BitBucket
Thanks. -- found it.

----- Original Message -----
From: "Christian Franke" <[hidden email]>
To: "BitBucket" <[hidden email]>
Cc: <[hidden email]>
Sent: Tuesday, May 12, 2009 14:17
Subject: Re: [smartmontools-support] How have smartd log to file instead
of syslog


BitBucket wrote:
> Some time ago I knew how to tell smartd to log to a local file instead
> of syslog, but I seem to have forgotten what the option was and I
> can't find it now.

See '-l local0' option (not directive) on smartd man page.

Cheers,
Christian


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Smartmontools-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How have smartd log to file instead ofsyslog

BitBucket
Uh, but it turns out I'm not smart enough to understand it.

I inserted the option in smartd.conf, but got the below error from
Windows 2003 Server system.  Reread the man page and couldn't find any
man pages for syslog.syslog.conf,  syslogd,  and syslog. The line
containing 'DEVICESCAN' has been commented out, so I'm unclear as to why
it's interpreting this option as a directive.

-- Roy

Lines from smartd.conf:
--------------------------------------------------
/dev/hda \
 -a \
 -W 2,40,45 \
 -o on \
 -S on \
 -s (S/../.././04|L/../../6/05) \
 -m sysmsgbox -M test \
 -l local3

/dev/hdb \
 -a \
 -W 2,40,45 \
 -o on \
 -S on \
 -s (S/../.././04|L/../../6/05) \
 -m sysmsgbox -M test \
 -l local4

--------------------------------------------------
Error in Windows application log:
--------------------------------------------------
Event Type: Error
Event Source: smartd
Event Category: None
Event ID: 4
Date:  5/12/2009
Time:  19:12:23
User:  N/A
Computer: K7N
Description:
The description for Event ID ( 4 ) in Source ( smartd ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help
and Support for details. The following information is part of the event:
smartd, 2372, CRIT, File ./smartd.conf line 164 (drive /dev/hda):
Invalid argument to -l Directive: local3, Valid arguments to -l
Directive are: , error, selftest, Configuration file ./smartd.conf has
fatal syntax errors..
--------------------------------------------------

----- Original Message -----
From: "BitBucket" <[hidden email]>
To: "Christian Franke" <[hidden email]>
Cc: <[hidden email]>
Sent: Tuesday, May 12, 2009 18:47
Subject: Re: [smartmontools-support] How have smartd log to file instead
ofsyslog


Thanks. -- found it.

----- Original Message -----
From: "Christian Franke" <[hidden email]>
To: "BitBucket" <[hidden email]>
Cc: <[hidden email]>
Sent: Tuesday, May 12, 2009 14:17
Subject: Re: [smartmontools-support] How have smartd log to file instead
of syslog


BitBucket wrote:
> Some time ago I knew how to tell smartd to log to a local file instead
> of syslog, but I seem to have forgotten what the option was and I
> can't find it now.

See '-l local0' option (not directive) on smartd man page.

Cheers,
Christian





------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Smartmontools-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How have smartd log to file instead ofsyslog

BitBucket
Christian:

I think i'm finally on to it.  Found a bunch of shortcuts in my Start
menu which have served to clarify the distinction between "options" and
"directives".   And the use of the net-run.bat file, which I didn't
understand when I've seen it in the past.

I may be able to do this.

-- Roy

Daemon start, smartd.log
    "C:\Program Files\smartmontools\bin\smartd-run.bat" -l local0
Daemon start, eventlog
    "C:\Program Files\smartmontools\bin\smartd-run.bat"
Service install, smartd.log, 10min
    "C:\Program Files\smartmontools\bin\smartd-run.bat" install -l
local0 -i 600
Service install, smartd.log, 30min
    "C:\Program Files\smartmontools\bin\smartd-run.bat" install -l
local0
Service remove
    "C:\Program Files\smartmontools\bin\smartd-run.bat" remove
Service start
    "C:\Program Files\smartmontools\bin\net-run.bat" start smartd
Service stop
    "C:\Program Files\smartmontools\bin\net-run.bat" stop smartd

----- Original Message -----
From: "BitBucket" <[hidden email]>
To: "Christian Franke" <[hidden email]>
Cc: <[hidden email]>
Sent: Tuesday, May 12, 2009 19:49
Subject: Re: [smartmontools-support] How have smartd log to file instead
ofsyslog


Uh, but it turns out I'm not smart enough to understand it.

I inserted the option in smartd.conf, but got the below error from
Windows 2003 Server system.  Reread the man page and couldn't find any
man pages for syslog.syslog.conf,  syslogd,  and syslog. The line
containing 'DEVICESCAN' has been commented out, so I'm unclear as to why
it's interpreting this option as a directive.

-- Roy

Lines from smartd.conf:
--------------------------------------------------
/dev/hda \
 -a \
 -W 2,40,45 \
 -o on \
 -S on \
 -s (S/../.././04|L/../../6/05) \
 -m sysmsgbox -M test \
 -l local3

/dev/hdb \
 -a \
 -W 2,40,45 \
 -o on \
 -S on \
 -s (S/../.././04|L/../../6/05) \
 -m sysmsgbox -M test \
 -l local4

--------------------------------------------------
Error in Windows application log:
--------------------------------------------------
Event Type: Error
Event Source: smartd
Event Category: None
Event ID: 4
Date:  5/12/2009
Time:  19:12:23
User:  N/A
Computer: K7N
Description:
The description for Event ID ( 4 ) in Source ( smartd ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help
and Support for details. The following information is part of the event:
smartd, 2372, CRIT, File ./smartd.conf line 164 (drive /dev/hda):
Invalid argument to -l Directive: local3, Valid arguments to -l
Directive are: , error, selftest, Configuration file ./smartd.conf has
fatal syntax errors..
--------------------------------------------------

----- Original Message -----
From: "BitBucket" <[hidden email]>
To: "Christian Franke" <[hidden email]>
Cc: <[hidden email]>
Sent: Tuesday, May 12, 2009 18:47
Subject: Re: [smartmontools-support] How have smartd log to file instead
ofsyslog


Thanks. -- found it.

----- Original Message -----
From: "Christian Franke" <[hidden email]>
To: "BitBucket" <[hidden email]>
Cc: <[hidden email]>
Sent: Tuesday, May 12, 2009 14:17
Subject: Re: [smartmontools-support] How have smartd log to file instead
of syslog


BitBucket wrote:
> Some time ago I knew how to tell smartd to log to a local file instead
> of syslog, but I seem to have forgotten what the option was and I
> can't find it now.

See '-l local0' option (not directive) on smartd man page.

Cheers,
Christian





------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Smartmontools-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How have smartd log to file instead of syslog

Christian Franke
In reply to this post by BitBucket
BitBucket wrote:
>
> I inserted the option in smartd.conf, but got the below error from
> Windows 2003 Server system.  Reread the man page and couldn't find any
> man pages for syslog.syslog.conf,  syslogd,  and syslog. ...
>

Windows does not provide a syslogd. The event log is very different.

To get syslog functionality, install Cygwin. The Cygwin versions of
syslogd and smartd can both be run as a Windows service.

Cheers,
Christian




------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Smartmontools-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How have smartd log to file instead of syslog

BitBucket
Got it now -- thanks. Just logging to local file with the '-l local0'
option on the command line. OK for now.

-- Roy

----- Original Message -----
From: "Christian Franke" <[hidden email]>
To: "BitBucket" <[hidden email]>
Cc: <[hidden email]>
Sent: Wednesday, May 13, 2009 0:03
Subject: Re: [smartmontools-support] How have smartd log to file instead
of syslog


BitBucket wrote:
>
> I inserted the option in smartd.conf, but got the below error from
> Windows 2003 Server system.  Reread the man page and couldn't find any
> man pages for syslog.syslog.conf,  syslogd,  and syslog. ...
>

Windows does not provide a syslogd. The event log is very different.

To get syslog functionality, install Cygwin. The Cygwin versions of
syslogd and smartd can both be run as a Windows service.

Cheers,
Christian




------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Smartmontools-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Loading...