<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=093010322-27022006><FONT face=Arial
color=#0000ff size=2>NetApp certainly has SNMP support. It's not
wonderful, it only supports v1. As a result, it has the usual problems
with overflowing COUNTER32's. But, it's fairly easy to set up and will let
you monitor just about anything you want.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093010322-27022006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=093010322-27022006><FONT face=Arial
color=#0000ff size=2>Jason</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <B>On Behalf Of </B>Hans
Engelen<BR><B>Sent:</B> Monday, February 27, 2006 4:01 PM<BR><B>To:</B> Nagios
Users Mailinglist<BR><B>Subject:</B> Re: [Nagios-users] Monitor
Fileserver<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Ah, i see.</DIV>
<DIV> </DIV>
<DIV>Question ... is there no SNMP access for these blackboxes ? Most blackboxes
do from my experience (though I usually steer clear of them so I haven't used
that many of them really).</DIV>
<DIV> </DIV>
<DIV>SNMP access will most likely allow you to poll a fair number of interesting
metrics. Free space, network utilization, load ... that kind of thing.</DIV>
<DIV> </DIV>
<DIV>Worth checking into should my other suggestion fail. Incidentally don't
forget to give the service-user enough rights to do its work, i.e. on the share
and also for other checks it might have to do or you might get other unexplained
errors. Start out with adding it to the local admins group to test the general
idea first (and get a baseline check) then bump it down to normal user and
add rights as you need. But I am sure you know that drill. </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV>Cheers,</DIV>
<DIV>Hans<BR><BR> </DIV>
<DIV><SPAN class=gmail_quote>On 2/27/06, <B class=gmail_sendername>Josh</B>
<<A href="mailto:josh2780@yahoo.com">josh2780@yahoo.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hans
/ Ryan,<BR><BR>Thanks for your input...<BR><BR>I thought the question might
arise about "why don't I <BR>monitor the server housing the shares"... well,
the<BR>problem there is the machine is a NetApp device (not<BR>running windows
and won't allow me to install anything<BR>on it of course... it's an
appliance).<BR><BR>I've tried touching the
/root/.smb/smb.conf... the<BR>problem is most likely related to the
nagios user<BR>can't even see inside /root.<BR><BR>I like your idea of mapping
the drives under the<BR>nagios user and then running the service as the nagios
<BR>user... I'll give that a shot.<BR><BR>On a side note, I did try getting
the nrpe checks to<BR>work on the windows server but am getting
the<BR>following error:<BR><BR>"CScript Error: Execution of the Windows Script
Host <BR>failed. (Catastrophic failure)"<BR><BR>A little research shows it is
most likely related to a<BR>software security policy in
place. Anyone on this<BR>list know what I need to
change?<BR><BR>Thanks again for all your help. <BR><BR>Josh<BR><BR>--- Hans
Engelen <<A href="mailto:engelenh@gmail.com">engelenh@gmail.com</A>>
wrote:<BR><BR>> Dangit replied privately and not to the list,
anyway<BR>> heres a forward.<BR>><BR>> Also just checked the
/root/.smb/smb.conf reference <BR>> is actually a workaround<BR>> for a
problem with samba's libsmbclient in the perl<BR>> module<BR>>
Filesys::SmbClient (used by check_smb_shares.pl).<BR>> Aparantly
libsmbclient<BR>> segfaults if it does not exist. Therefor if it does
<BR>> not exist the perl<BR>> module Filesys::SmbClient tries to make
one (an<BR>> empty one) but has no<BR>> permission to do so from what
you wrote. I supose<BR>> you could make it yourself<BR>> (touch
/root/.smb/smb.conf; chmod og+r <BR>> /root/.smb/smb.conf). Maybe that
will<BR>> solve your issues with that particular check<BR>> allowing you
to use it to<BR>> monitor the remote shares you spoke of<BR>><BR>>
Cheers,<BR>> Hans<BR>><BR>><BR>> On 2/27/06, Hans Engelen <<A
href="mailto:engelenh@gmail.com">engelenh@gmail.com</A>> wrote:<BR>>
><BR>> > For mapped drives that is quite normal since<BR>> mapped
drives are, barring a <BR>> > small number of special cases, only
accessible for<BR>> the user that did the<BR>> > actual mapping. It's
the same problem you get for<BR>> other NT services trying<BR>> > to
access a drive mapping made from another user. <BR>> Also most likely
your<BR>> > pNSClient (or NC_Net or NSClient++) or whatever<BR>>
agent you have running on<BR>> > the Windows box is running under the
System<BR>> security setting. This security <BR>> > context is only
valid for that windows box<BR>> internally and as such has no<BR>> >
credentials to access anything beyond that<BR>> machine. This includes (but
is<BR>> > not limited to) shares. <BR>> ><BR>> >
Theoretically you could of course run your Nagios<BR>> Agent under an
actual<BR>> > user account, log in interactively on that same<BR>>
account and create a<BR>> > persistent mapping (net use * \\server\share
<BR>> /persist:yes, if memory serves)<BR>> > to the shares in
question. Since the service will<BR>> use the same profile when<BR>>
> logging in that should solve the issue. But why<BR>> even monitor a
remote disk <BR>> > in this way. Just install the Nagios Agent on
the<BR>> server that houses the<BR>> > share and monitor it directly
instead of<BR>> indirectly (with all the quirks and<BR>> > pitfalls
that come with it). <BR>> ><BR>> > Of course in this case the
check_smb_shares is a<BR>> solution too. As to why<BR>> > it insists
on writing to /root/.smb/smb.conf is a<BR>> bit strange. Possibly
this<BR>> > was defined somewhere in the check_smb_shares.pl <BR>>
file. Open it up in a text<BR>> > editor and see.<BR>> ><BR>>
> Cheers,<BR>> > Hans<BR>> > Cheers,<BR>> > Hans<BR>>
><BR>> > On 2/27/06, Ryan Wilcox <<A
href="mailto:rwilcox@mobitrac.com"> rwilcox@mobitrac.com</A>><BR>>
wrote:<BR>> > ><BR>> > > yeah... i got the same error as you
did with a<BR>> mapped drive. we aren't<BR>> > > monitoring any
mapped drives right now, hence <BR>> the confusion.<BR>> >
><BR>> > > not sure about the mapped drives... anyone else<BR>>
have an idea for josh?<BR>> > ><BR>> > > >>
-----Original Message-----<BR>> > > >> From: Josh [mailto: <A
href="mailto:josh2780@yahoo.com">josh2780@yahoo.com</A>]<BR>> > >
>> Sent: Monday, February 27, 2006 11:38 AM<BR>> > > >>
To: Ryan Wilcox;<BR>> <A
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A><BR>>
> > >> Subject: RE: [Nagios-users] Monitor<BR>>
Fileserver<BR>> > > >><BR>> > > >>
Hmm... Got it working for local drives on<BR>> the
windows<BR>> > > >> box but I get an "Invalid drive" error
from<BR>> the<BR>> > > >> check_nt script when I check a
drive that is<BR>> mapped.<BR>> > > >> Any way to check
networked drives on that <BR>> windows box?<BR>> > >
>> Or will I have to go with nrpe checks for<BR>>
that?<BR>> > > >><BR>> > > >> --- Ryan Wilcox
<<A href="mailto:rwilcox@mobitrac.com">rwilcox@mobitrac.com </A>>
wrote:<BR>> > > >><BR>> > > >> > actually i
am using check_nt right from the<BR>> nagios<BR>> > > >>
> (fedora core 4) box.<BR>> > > >> ><BR>> > >
>> > ./check_nt -H <A href="http://10.0.0.32">10.0.0.32</A> -v
USEDDISKSPACE<BR>> -lc -w 75<BR>> > > >> > -c 90<BR>>
> > >> ><BR>> > > >> > output looks like:
<BR>> > > >> ><BR>> > > >> > c:\ - total:
74.52 Gb - used: 52.98 Gb<BR>> (71%) - free<BR>> > > >> >
21.54 Gb (29%) |<BR>> > > >> > 'c:\ Used<BR>> Space'=
52.98Gb;55.89;67.07;0.00;74.52<BR>> > > >> ><BR>> >
> >> ><BR>> > > >> ><BR>> > > >>
> >> -----Original Message-----<BR>> > > >> >
>> From: Josh [mailto: <A
href="mailto:josh2780@yahoo.com">josh2780@yahoo.com</A>]<BR>> > >
>> > >> Sent: Monday, February 27, 2006 10:57 AM<BR>> >
> >> > >> To: Ryan Wilcox;<BR>> > > >> >
<A
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A><BR>>
> > >> > >> Subject: RE: [Nagios-users] Monitor<BR>>
Fileserver<BR>> > > >> > >> <BR>> > >
>> > >> I'm assuming you are using NRPE and<BR>> executing
the<BR>> > > >> > >> check_nt_disk from a windows
machine...<BR>> I might<BR>> > > >> > end <BR>> >
> >> > >> up doing that.<BR>> > > >> >
>><BR>> > > >> > >> I was attempting to use smb
checks<BR>> directly from<BR>> > > >> > the <BR>> >
> >> > >> linux box running Nagios.<BR>> > >
>> > >><BR>> > > >> > >><BR>> >
> >> > >><BR>> > > >> > >> --- Ryan
Wilcox < <A
href="mailto:rwilcox@mobitrac.com">rwilcox@mobitrac.com</A>><BR>>
wrote:<BR>> > > >> > >><BR>> > > >>
> >> ><BR>> > > >> > >> ><BR>> >
> >> > >> > >> -----Original Message----- <BR>>
> > >> > >> > >> From:<BR>> > >
>> > <A
href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net</A><BR>>
> > >> > >> > [mailto: <A
href="mailto:nagios-users-">nagios-users-</A><BR>> > > >> >
>> > >> <A
href="mailto:admin@lists.sourceforge.net">admin@lists.sourceforge.net</A>]
On<BR>> Behalf Of<BR>> > > >> > Josh <BR>> > >
>> > >> > >> Sent: Monday, February 27, 2006<BR>>
10:19 AM<BR>> > > >> > >> > >> To:<BR>> <A
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A><BR>>
> > >> > >> > >> Subject: [Nagios-users]
Monitor<BR>> Fileserver<BR>> > > >> > >> >
>><BR>> > > >> > >> > >> Does anyone
have any suggestions as <BR>> to how<BR>> > > >> >
to<BR>> > > >> > >> > monitor<BR>> > >
>> > >> > >> network drive (fileserver) status<BR>>
from<BR>> > > >> > Nagios? <BR>> > > >> >
>> > I'm<BR>> > > >> > >> > >>
trying to get the<BR>> check_smb_shares.pl (from<BR>> > > >>
> >> > >> <A
href="http://nagiosexchange.org">nagiosexchange.org</A>) but keep<BR>>
getting the<BR>> > > >> > >> > following<BR>>
> > >> > >> > >> error when Nagios executes
the<BR>> check:<BR>> > > >> > >> > >>
<BR>> > > >> > >> > >> **ePN
'check_smb_shares.pl' Can't<BR>> create<BR>> > > >> >
>> > >> /root/.smb/smb.conf : Permission<BR>> denied<BR>>
> > >> > >> > >> <BR>> > > >>
> >> > >> Not sure why when the Nagios binary<BR>>
executes<BR>> > > >> > the<BR>> > > >> >
>> > >> script it wants to use /root/ <BR>> (Nagios
runs<BR>> > > >> > as the<BR>> > > >> >
>> > user<BR>> > > >> > >> > >>
nagios).<BR>> > > >> > >> > >> <BR>> >
> >> > >> > >> Any other suggestions on
monitoring<BR>> network<BR>> > > >> > >> >
drives?<BR>> > > >> > >> > >><BR>> >
> >> > >> > <BR>> > > >> > >>
><BR>><BR>=== message truncated
===<BR><BR><BR>__________________________________________________<BR>Do You
Yahoo!?<BR>Tired of spam? Yahoo! Mail has the best spam protection
around <BR><A
href="http://mail.yahoo.com">http://mail.yahoo.com</A><BR><BR><BR>-------------------------------------------------------<BR>This
SF.Net email is sponsored by xPML, a groundbreaking scripting language<BR>that
extends applications into web and mobile media. Attend the live webcast
<BR>and join the prime developer group breaking into this new coding
territory!<BR><A
href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
</A><BR>_______________________________________________<BR>Nagios-users
mailing list<BR><A
href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A><BR><A
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>:::
Please include Nagios version, plugin version (-v) and OS when reporting any
issue.<BR>::: Messages without supporting info will risk being sent to
/dev/null <BR></BLOCKQUOTE></DIV><BR></BODY></HTML>
<table><tr><td bgcolor=#ffffff><font color=#000000><br>
<font size="1" face="arial">This message (including any attachments) may contain confidential or otherwise privileged information and is intended only for the individual(s) to which it is addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message or that arise as a result of e-mail transmission. If verification is required please request a hard-copy version from the sender. <br>
<br>
SOURCECORP, Incorporated <br>
www.srcp.com<br>
</font><br>
</font></td></tr></table>