Monitoring Windows 2000 Print Services
Stanley Hopcroft
Stanley.Hopcroft at IPAustralia.Gov.AU
Tue Feb 11 22:57:31 CET 2003
Dear Sir,
I am writing to thank you for your letter and say,
On Tue, Feb 11, 2003 at 09:49:32AM -0500, Syed Ali wrote:
> Hello,
>
> Before I start writing my own.....
>
> Does anyone have a working plug-in for monitoring Windows print services
> in an active directory environment?
AD should have no impact on the ways and means to check Windows
printing. Win2K has a little more impact but not too much.
> (Just to see if the print spooler is running is sufficient)
>
> The contrib directory has a check_ms_spooler.pl that does not work even
> after tweaking in our environment.
Please would you post either me or the list, (or alternatively, what do
you think is wrong with it)
./check_ms_spool -V
./check_ms_spool -H - u - p -d
(the debugging is pretty slack) ?
eg
tsitc> ./check_ms_spooler -H ipaprint -u _ -p _ -d |& more
/usr/local/samba/bin/smbclient //ipaprint/BS01 -U _%_ -c
'queue; quit' ==>
"added interface ip=10.0.100.252 bcast=10.255.255.255 nmask=255.0.0.0
Domain=[IPAUSTRALIA] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
"
$queue_report for $printer BS01: ""
/usr/local/samba/bin/smbclient //ipaprint/BS13 -U _%_ -c
'queue; quit' ==>
"added interface ip=10.0.100.252 bcast=10.255.255.255 nmask=255.0.0.0
Domain=[IPAUSTRALIA] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
"
$queue_report for $printer BS13: ""
/usr/local/samba/bin/smbclient //ipaprint/Local -U _%_ -c
'queue; quit' ==>
"added interface ip=10.0.100.252 bcast=10.255.255.255 nmask=255.0.0.0
Domain=[IPAUSTRALIA] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
387 103370 ATMOSS - Australian Trade Mark Online Search
System
416 40787 ATMOSS - Australian Trade Mark Online Search
System
421 40787 ATMOSS - Australian Trade Mark Online Search
System
431 40787 ATMOSS - Australian Trade Mark Online Search
System
755 8303 Print Job
782 43086 ATMOSS - Australian Trade Mark Online Search
System
787 43086 ATMOSS - Australian Trade Mark Online Search
System
"
$queue_report for $printer Local: "387 103370 ATMOSS -
Australian Trade Mark Online Search System 416 40787 ATMOSS
- Australian Trade Mark Online Search System 4
21 40787 ATMOSS - Australian Trade Mark Online Search System
431 40787 ATMOSS - Australian Trade Mark Online Search
System 755 8303 Print Job 782
43086 ATMOSS - Australian Trade Mark Online Search System 787
43086 ATMOSS - Australian Trade Mark Online Search System"
.... yada
This plugin isn't very accurate in that it does not report whether or
not the spooling process is running.
To my mind a good way of doing that is to
. define a share on the MS printer server
. define a queue that outputs anything spooled to it, to the share
above
. have the check spool a file of known size to the queue and then check
if the size of the file on the share is equal to what was spooled.
Such a check does in fact exist but at this stage relies on the same
smbclient that the check_ms_spooler.pl does.
Thank you,
Yours sincerely.
--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------
'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'
from Meditation 17, J Donne.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
More information about the Users
mailing list