4.12-2 Solaris buglet

Jeremy Evans JeremyE at BSA.CA.GOV
Tue Feb 4 00:45:39 GMT 2003

>OK, I'd be grateful if I could get at least one person on each
>non-Linux OS to try the attached version of check_mailscanner, and let
>me know:

>1) Does it work?

No, unless changes are made to the script (besides than the obvious changes
to the paths).  Regardless of whether MailScanner is currently running, it
will start a new process for it.

I modified the script, and I've gotten it to partially work.  The only
problem is that it occasionally will report a pid even when MailScanner
isn't already running (and thus, not start it).  This seems more common if
you try to run check_mailscanner right after you've killed MailScanner's pid
(even after making sure that MailScanner isn't running using ps -axww). I've
attached the script, if you're interested in looking at it.

FWIW, The 4.12 check_mailscanner script works fine after the paths are
changed appropriately, and I'm sticking to that.

>2) Your OS, with full version info.

OpenBSD 3.2, MailScanner 4.12

>3) If it didn't work, why not?

I'm guessing the reason it doesn't work without modification is because
there is a space between $msbindir and $process in OpenBSD's ps -axww
output, while in the check_mailscanner script there is a slash between them.
Changing $msbindir/$process to $config seems to fix the problem.

>4) Exactly what output is coming from the ps command in question.

Output attached as ps.txt

>I did a fair bit of research into weird and wonderful OSes before I
>wrote this version, yet
>Julian tells me it still doesn't work on some; I'm guessing it's most
>likely that this will be
>non-current versions of SysV-descended UNIXes (that don't do POSIX
>right), but I
>really want to get it exactly right (with the minumum of guff in the
>script, too)...

I'd prefer to have a different check_mailscanner script for every OS
(check_mailscanner.linux, check_mailscanner.solaris, etc.), with a link
pointing to the appropriate one.

>Oh, don't forget to replace the PERL, GREP, AWK, config and msbindir
>settings with
>something appropriate for your installation.

In OpenBSD, uname is located in /usr/bin (as are perl, grep, and awk).
Also, uname -s produces 'OpenBSD'.

Jeremy Evans
Information Systems Analyst
California State Auditor
916-445-0255 phone
916-322-7801 fax

-------------- next part --------------
    1 ??  Is      0:00.14 /sbin/init 
12424 ??  Is      0:03.13 syslogd 
30112 ??  Is      0:00.08 inetd 
17395 ??  Is      0:03.38 /usr/sbin/sshd 
24565 ??  Is      0:45.65 sendmail: accepting connections (sendmail)
15132 ??  Is      0:05.89 sendmail: Queue runner at 00:15:00 for /var/spool/mqueue (sendmail)
11453 ??  Is      0:02.54 cron 
15541 ??  Is      0:00.05 /usr/bin/perl -I/opt/MailScanner/bin MailScanner /opt/MailScanner/etc/MailScanner.conf 
12996 ??  I       0:05.65 /usr/bin/perl -I/opt/MailScanner/bin MailScanner /opt/MailScanner/etc/MailScanner.conf 
24344 ??  I       0:05.64 /usr/bin/perl -I/opt/MailScanner/bin MailScanner /opt/MailScanner/etc/MailScanner.conf 
 4022 ??  I       0:05.70 /usr/bin/perl -I/opt/MailScanner/bin MailScanner /opt/MailScanner/etc/MailScanner.conf 
22424 ??  I       0:05.63 /usr/bin/perl -I/opt/MailScanner/bin MailScanner /opt/MailScanner/etc/MailScanner.conf 
  597 ??  I       0:05.66 /usr/bin/perl -I/opt/MailScanner/bin MailScanner /opt/MailScanner/etc/MailScanner.conf 
18440 C0  Is      0:00.07 -csh (csh)
12170 C0  I       0:01.31 ksh 
11676 C0  R+      0:00.00 ps -awxx 
17016 C1  Is      0:00.08 -csh (csh)
25597 C1  I+      0:00.47 ksh 
17258 C2  Is+     0:00.02 /usr/libexec/getty Pc ttyC2 
20495 C3  Is+     0:00.01 /usr/libexec/getty Pc ttyC3 
25618 C5  Is+     0:00.01 /usr/libexec/getty Pc ttyC5 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_mailscanner
Type: application/octet-stream
Size: 2514 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20030203/4b10f86b/check_mailscanner.obj

More information about the MailScanner mailing list