-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/10/09 09:55 AM, dave stern - e-mail.pluribus.unum wrote: > I'm trying to check for the size of an nfs share that is accessible > from a windows host. > The windows host is running NSClient++ but there are a number of problems > here. > > First, the share isn't persistently mapped so at a minimum, I'd have > to write a .bat > warpper that first mapped it to a letter then ran the disk check. > Second, to test this, > I mapped the drive to M: then ran on my nagios server > check_nt -H ... -p 12489 -s ... -v USEDDISKSPACE -l M -w 80 -c 90 > but I got a segfault
I can't really help with it, but it seems odd that you're trying to monitor it from Windows rather than from the NFS server itself. I guess that's could be a NAS, but even if it is can't you use snmp on it? Come NAS have shell access too... > So I tried another tactic. Install, turned on snmp on the windows > host. Mapped the > drive to H and tried > check_win_snmp_disk.pl $HOSTADDRESS$ $community 6 80 90 > I did get information back. The % usage appears correct but the sizes are > way off (Gig vs Terabyte). Are you sure the numbers are not disk or filesystem blocks? you would have to multiply them by a certain number to get the right value... There's probably a program out them that monitor Windows disks either as a local script (you can run it under NRPE_NT) or using snmp; you should start looking on NagiosExchange (which I believe is MonitoringExchange now...). > Can I trust the percentages from the above? Is the above script limited in > size to Gigabytes? Is there a better/easier way to pull down this info? > > I tried an snmpwalk but couldn't find anything useful. Otherwise, I'd just > call it directly with an snmpget There it check_snmp too... - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKz9426dZ+Kt5BchYRAhW1AKCEAIPa+ITsS5iKPqG3R3iI8vuv0wCg2BVG FpIgsZZRcZzEbw+6RksQUfQ= =SVzx -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list [email protected] 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
