Sorry for the inconvenience. <br><br>I was the permissiones on /vservers<br><br>I ran <span class="HcCDpe">chmod o+rx /vservers and is now working.</span><br><br><div class="gmail_quote">On Jan 11, 2008 11:42 AM, Sloane, Robert Raymond <
<a href="mailto:sloane@ku.edu">sloane@ku.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Usually when a command works as root but fails as a normal user it is
<br>because of permissions. Look carefully at all the permissions on the<br>file system that fails and compare them to the filesystems that are<br>working. Somewhere there is a difference between the working<br>filesystems and the failing one, and you are going to have to track it
<br>down. It is almost impossible to guess what it would be without being<br>there.<br><div class="Ih2E3d">--<br>Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045<br><a href="mailto:Email:sloane@ku.edu">
Email:sloane@ku.edu</a> <a href="http://www.ku.edu/home/sloane" target="_blank">http://www.ku.edu/home/sloane</a> Phone:(785)864-0444<br><br>-----Original Message-----<br>From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">
nagios-users-bounces@lists.sourceforge.net</a><br>[mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a>] On Behalf Of Jake<br>Solid<br></div><div><div></div><div class="Wj3C7c">
Sent: Friday, January 11, 2008 10:35 AM<br>To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>Subject: Re: [Nagios-users] DISK UNKNOWN - free space<br><br><br>Sorry. Big oops. I now ran the command as the nagios user and I get the
<br>message:<br><br>sh-3.1$ /usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p<br>/dev/mapper/VolGroup01-fredVol00<br>DISK UNKNOWN - free space:|<br><br><br><br><br>On Jan 11, 2008 11:30 AM, Sloane, Robert Raymond <
<a href="mailto:sloane@ku.edu">sloane@ku.edu</a>> wrote:<br><br>You are running the command as root. Try running it as the user under<br>which NRPE runs. Many times root can run commands successfully that<br>fail when run as a normal user.
<br>--<br>Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045<br><a href="mailto:Email:sloane@ku.edu">Email:sloane@ku.edu</a> <a href="http://www.ku.edu/home/sloane" target="_blank">http://www.ku.edu/home/sloane
</a> Phone:(785)864-0444<br><br><br>-----Original Message-----<br>From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a><br><br>[mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">
nagios-users-bounces@lists.sourceforge.net</a> ] On Behalf Of Jake<br>Solid<br>Sent: Friday, January 11, 2008 10:22 AM<br>To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br><br>
Subject: Re: [Nagios-users] DISK UNKNOWN - free space<br><br><br>When I run the command from the machine, it outputs the correct<br>information. The problem is when using NRPE from the nagios server.<br><br>[root@my_monitored_server ~]# /usr/lib64/nagios/plugins/check_disk -w
<br>20% -c 10% -p /dev/mapper/VolGroup01-fredVol00<br>DISK CRITICAL - free space: /vservers/fred/data 5798 MB (5% inode=99%);|<br>/vservers/fred/data=109009MB;96760;108855;0;120951<br><br>I'm using CentOS 5 - Linux my_monitored_server
2.6.22.9-vs2.3.0.27.1 #1<br>SMP Thu Oct 11 15:21:13 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux<br><br>Here is the output using strace:<br><br>[root@my_monitored_server ~]# strace<br>/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p
<br>/dev/mapper/VolGroup01-fredVol00<br>execve("/usr/lib64/nagios/plugins/check_disk",<br>["/usr/lib64/nagios/plugins/check_"..., "-w"..., "20%"..., "-c"...,<br>"10%"..., "-p"..., "/dev/mapper/VolGroup01-fredVol00"], [/* 24 vars */])
<br><br>= 0<br>brk(0) = 0x61a000<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)<br>= 0x2b4c07095000<br>uname({sys="Linux", node=" <a href="http://vhost6.latpro.com" target="_blank">
vhost6.latpro.com</a>", ...}) = 0<br>access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or<br>directory)<br>open("/etc/ld.so.cache", O_RDONLY) = 3<br>fstat(3, {st_mode=S_IFREG|0644, st_size=85789, ...}) = 0
<br>mmap(NULL, 85789, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b4c07096000<br>close(3) = 0<br>open("/lib64/libc.so.6", O_RDONLY) = 3<br>read(3,<br>"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\331!\331:\0\0\0"...,
<br><br>832) = 832<br>fstat(3, {st_mode=S_IFREG|0755, st_size=1678480, ...}) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)<br>= 0x2b4c070ab000<br>mmap(0x3ad9200000, 3461272, PROT_READ|PROT_EXEC,
<br>MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3ad9200000<br>mprotect(0x3ad9344000, 2097152, PROT_NONE) = 0<br>mmap(0x3ad9544000, 20480, PROT_READ|PROT_WRITE,<br>MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x144000) = 0x3ad9544000<br>
mmap(0x3ad9549000, 16536, PROT_READ|PROT_WRITE,<br>MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3ad9549000<br>close(3) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
<br><br>= 0x2b4c070ac000<br>arch_prctl(ARCH_SET_FS, 0x2b4c070ac260) = 0<br>mprotect(0x3ad9544000, 16384, PROT_READ) = 0<br>mprotect(0x3ad8419000, 4096, PROT_READ) = 0<br>munmap(0x2b4c07096000, 85789) = 0<br>brk(0) = 0x61a000
<br>brk(0x63b000) = 0x63b000<br>open("/usr/lib/locale/locale-archive", O_RDONLY) = 3<br>fstat(3, {st_mode=S_IFREG|0644, st_size=55529168, ...}) = 0<br>mmap(NULL, 55529168, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b4c070ad000
<br>close(3) = 0<br>open("/etc/mtab", O_RDONLY) = 3<br>fstat(3, {st_mode=S_IFREG|0644, st_size=485, ...}) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
<br><br>= 0x2b4c0a5a2000<br>read(3, "/dev/mapper/VolGroup00-LogVol02 "..., 4096) = 485<br>read(3, "", 4096) = 0<br>close(3) = 0<br>munmap(0x2b4c0a5a2000, 4096) = 0
<br>stat("/dev/mapper/VolGroup01-fredVol00", {st_mode=S_IFBLK|0660,<br>st_rdev=makedev(253, 3), ...}) = 0<br>statfs("/vservers/fred/data", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096,<br>f_blocks=30963705, f_bfree=3057391, f_bavail=1484527, f_files=15728640,
<br>f_ffree=15725959, f_fsid={-1443977114, -797195186}, f_namelen=255,<br>f_frsize=4096}) = 0<br>fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0<br>mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
<br><br>= 0x2b4c0a5a2000<br>write(1, "DISK CRITICAL - free space: /vse"..., 124DISK CRITICAL - free<br>space: /vservers/fred/data 5798 MB (5% inode=99%);|<br>/vservers/fred/data=109009MB;96760;108855;0;120951<br>
) = 124<br>exit_group(2) = ?<br><br><br><br><br><br>On Jan 11, 2008 11:06 AM, Dennis Jenkins <<a href="mailto:djenkins@istreamimaging.com">djenkins@istreamimaging.com</a> ><br>wrote:<br><br>
Jake Solid wrote:<br>> When I use the filesystems unstead of the mount points in the nrpe.cfg<br>> it works fine with disks 1, 2 and 3. The only disk that nrpe is not<br>> able to read is disk4 which is mounted on /vservers/fred/data.
<br><br> From one of your previous posts:<br><br>*The one I was having issues with is:*<br><br>command[check_disk4]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10%<br><br>-p /dev/mapper/VolGroup01-fredVol00<br>*<br>Which is mounted on*
<br>/dev/mapper/VolGroup01-fredVol00 119G 107G 5.8G 95%<br>/vservers/fred/data<br><br><br>That is a pretty big volume (well, big to me since I grew up with 540M<br>being HUGE). I have a similar problem using "check_disk" to verify the
<br>free space on a 16 Terabyte volume (on Solaris 10). Please humor me and<br><br>read the post that I made to this group on 2008-1-7 at 4:28pm (CST).<br><br>I don't remember what OS you are using... But please run the
<br>"check_disk" program through the syscall logger for your OS.<br><br>On Linux:<br>strace /usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p<br>/dev/mapper/VolGroup01-fredVol00<br><br>On Solaris:<br>truss /usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p
<br>/dev/mapper/VolGroup01-fredVol00<br><br>On FreeBSD (from memory, I could be wrong):<br>ktrace /usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p<br>/dev/mapper/VolGroup01-fredVol00<br><br><br>Near the bottom you should see a call to "statvfs" or something similar
<br>(again, read my post first).<br><br>Do you have the same error that I do? In my case, the nagios-plugins<br>package was compiled without support for "fs64", so it used the older<br>"statvfs" which can't handle huge disk volumes. The kernel call
<br>returned an error instead of the volume info.<br><br><br><br><br>--<br>CONFIDENTIALITY NOTICE<br>This electronic mail and the information contained herein are intended<br>for the named recipient only. It may contain confidential, proprietary
<br>and/or privileged information. If you have received this electronic<br>mail in error, please do not read any text other than the text of this<br>notice and do not open any attachments. Also, please immediately notify
<br>the sender by replying to this electronic mail or by collect call to<br>(262) 796-0925. After notifying the sender as described above, please<br>delete this electronic mail message immediately and purge the item from<br>
the deleted items folder (or the equivalent) of your electronic mail<br>system. Thank you.<br><br>Disclaimer -- Do not remove this disclaimer under penalty of law.<br><br>For optimum performance and safety, please read these instructions
<br>carefully.<br><br>Void where prohibited. No representation or warranty, express or<br>implied, with respect to the completeness, accuracy, fitness for a<br>particular purpose, or utility of these materials or any information or
<br>opinion contained herein. Actual mileage may vary. Prices slightly<br>higher west of the Mississippi. All models over 18 years of age. No<br>animals were harmed during the production of this product. Any<br>resemblance to actual people, living or dead, or events, past, present
<br>or future, is purely coincidental. This product not to be construed as<br>an endorsement of any product or company, nor as the adoption or<br>promulgation of any guidelines, standards or recommendations. Some names<br>
have been changed to protect the innocent. This product is meant for<br>educational purposes only. Some assembly required. Batteries not<br>included. Package sold by weight, not volume. Contents may settle during<br>shipment. No user-serviceable parts inside. Use only as directed.
<br><br>Do not eat. Not a toy.<br><br>Postage will be paid by addressee. If condition persists, consult your<br>physician. Subject to change without notice. Times approximate. One size<br>fits all. Colors may, in time, fade. For office use only. Edited for
<br>television. List was current at time of printing. At participating<br>locations only. Keep away from fire or flame. Avoid contact with skin.<br>Sanitised for your protection. Employees and their families are not<br>eligible. Beware of the dog. Limited time offer. No purchase necessary.
<br>Not recommended for children under 12. Prerecorded for this time zone.<br>Some of the trademarks mentioned in this product appear for<br>identification purposes only. Freshest if eaten before date on carton.<br>Subject to change without notice. Please allow 4 to 6 weeks for
<br>delivery. Not responsible for direct, indirect, incidental or<br>consequential damages resulting from any defect, error or failure to<br>perform. Slippery when wet. Substantial penalty for early withdrawal.<br>For recreational use only. No Ca
<br> nadian coins. List each check separately by bank number. This is not an<br>offer to sell securities.<br><br>Read at your own risk. Ask your doctor or pharmacist. Parental guidance<br>advised. Always read the label. Do not use while operating a motor
<br>vehicle or heavy equipment. Do not stamp. Breaking seal constitutes<br>acceptance of agreement. Contains non-milk fat. Date as postmark. Lost<br>ticket pays maximum rate. Use only in well-ventilated area. Price does<br>
not include taxes. Not for resale. Hand wash only. Keep away from<br>sunlight. For a limited time only. No preservatives or additives. Keep<br>away from pets and small children. Safety goggles required during use.<br>If rash, irritation, redness, or swelling develops, discontinue use. Do
<br>not fold, spindle or mutilate. Please remain seated until the web page<br>has come to a complete stop. Refrigerate after opening. Flammable. Must<br>be 18 years or older. Seat backs and tray tables must be in the upright
<br>position. Repeat as necessary. Do not look directly into light. Avoid<br>extreme temperatures and store in a cool dry place. No salt, MSG,<br>artificial<br> colouring or flavoring added. Reproduction strictly prohibited.
<br>Pregnant women, the elderly, and children should avoid prolonged<br>exposure to this product. If ingested, do not induce vomiting. May<br>contain nuts. Objects in mirror may be closer than they appear. Do not<br>use if safety seal is broken.
<br><br>Apply only to affected area. Do not use this product if you have high<br>blood pressure, heart disease, diabetes, thyroid disease, asthma,<br>glaucoma, or difficulty in urination. May be too intense for some<br>viewers. In case of accidental ingestion, seek professional assistance
<br>or contact a poison control center immediately. Many suitcases look<br>alike. Post office will not deliver without postage. Not the Beatles.<br>Products are not authorized for use as critical components in life<br>support devices or systems. Driver does not carry cash. Do not puncture
<br>or incinerate. Do not play your headset at high volume. Discontinue use<br>of this product if any of the following occurs: itching, aching,<br>vertigo, dizziness, ringing in your ears, vomiting, giddiness, aural or<br>
visual hallucinations, tingling in extremities, loss of balance or<br>coordination, slurred speech, temporary blindness, drowsiness, insomnia,<br>profuse sweating, shivering, or heart palpitations. Video+ and Video-<br>are at ECL voltage le
<br> vels, HSYNC and VSYNC are at TTL voltage levels. It is a violation of<br>federal law to use this product in a manner inconsistent with its<br>labeling. Intentional misuse by deliberately concentrating and inhaling<br>
the contents can be harmful or fatal. This product has been shown to<br>cause cancer in laboratory rats. Do not use the AC adaptor provided with<br>this player for other products.<br><br>Warranty does not cover normal wear and tear, misuse, accident,
<br>lightning, flood, hail storm, tornado, tsunami, volcanic eruption,<br>avalanche, earthquake or tremor, hurricane, solar activity, meteorite<br>strike, nearby supernova and other Acts of God, neglect, damage from<br>improper or unauthorised use, incorrect line voltage, unauthorised use,
<br>unauthorised repair, improper installation, typographical errors, broken<br>antenna or marred cabinet, missing or altered serial numbers,<br>electromagnetic radiation from nuclear blasts, microwave ovens or mobile<br>
phones, sonic boom vibrations, ionising radiation, customer adjustments<br>that are not covered in this list, and incidents owing to an airplane<br>crash, ship sinking or taking on water, motor vehicle crashing, dropping<br>
the item, falling rocks, leaky roof, broken glass, disk failure,<br>accidental file deletions, mud slides, forest fire, riots or other civil<br>unrest, acts of terrorism or war, whether declared or not, explosive<br>devices or project
<br> iles (which can include, but may not be limited to, arrows, crossbow<br>bolts, air gun pellets, bullets, shot, cannon balls, BBs, shrapnel,<br>lasers, napalm, torpedoes, ICBMs, or emissions of electromagnetic<br>radiation such as radio waves, microwaves, infra-red radiation, visible
<br>light, UV, X-rays, alpha, beta and gamma rays, neutrons, neutrinos,<br>positrons, N-rays, knives, stones, bricks, spit-wads, spears, javelins<br>etc.).<br><br>Other restrictions may apply. Breach of these conditions is likely to
<br>cause unquantifiable loss that may not be capable of remedy by the<br>payment of damages.<br><br><br><br><br><br><br>------------------------------------------------------------------------<br>-<br>Check out the new SourceForge.net
Marketplace.<br>It's the best place to buy or sell services for<br>just about anything Open Source.<br><a href="http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketp" target="_blank">http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketp
</a><br><br>lace<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" target="_blank">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when<br>reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null
<br></div></div></blockquote></div><br>