How to check a windows timestamp (remotely)?
Stanley Hopcroft
Stanley.Hopcroft at IPAustralia.Gov.AU
Thu Jun 12 02:02:39 CEST 2003
Dear Sir,
I am writing to thank you for your letter and say,
On Wed, Jun 11, 2003 at 10:03:39AM -0500, Networks wrote:
> Has anyone tried checking the time stamp on a file (in windows) remotely
> as a plugin for Nagios? Basically I am trying to work with some batch
> jobs that re run every night and want to make sure the files are
> correctly updated by comparing the time stamp on the file.
>
that this is quite feasable in one of two ways :-
1 with smbclient //WinBOX//Share pass -u user -c 'ls; quit'
You will need to write a plugin to invoke smbclient and interpret its
output (check_disk_smb shows whats involved)
2 A very nice CPAN module called FileSys::SmbClient (I think) that
provides a _much_ nicer object interface to an SMB file system.
I am doing this with my own version - different requirements - of a
module like this quite successfully.
It may be be on CPAN eventually.
> Any help would be appreciated.
>
> Thanks,
>
> Josh
>
>
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: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list