<b>You wrote:</b><br>Don't test as root, test as the nagios user (unless you're running<br>nagios as root, which you shouldn't be).<br><br>I'm testing as the nagios user.<br><div class="Ih2E3d"><br><br><b>You wrote:
</b><br></div>What are the mount options in /etc/fstab or similar?  What permissions<br>apply to the mount for what users?<br><br>These are the options:<br><br>/dev/VolGroup00/LogVol02 /                       ext3    defaults        1 1
<br>/dev/md1                /boot                   ext3    defaults        1 2<br>devpts                  /dev/pts                devpts  gid=5,mode=620  0 0<br>tmpfs                   /dev/shm                tmpfs   defaults  &n
 bsp;     0 0
<br>proc                    /proc                   proc    defaults        0 0<br>sysfs                   /sys                    sysfs   defaults        0 0<br>/dev/VolGroup00/LogVol00 /tmp                    ext3    defaul
 ts        1 2
<br>/dev/VolGroup00/LogVol01 /var                    ext3    defaults        1 2<br>/dev/md0                swap                    swap    defaults        0 0<br>/dev/VolGroup01/fredVol00               /vservers/colombia/info           ext3    defaults        1 2
<br><br><br><br><b>You wrote:</b><br>Who are you running that as?  As root again? What happens if you run<br>that command on the monitored server as the user running the nrpe process?<br><div class="Ih2E3d"><br>The same thing happens when running as the user running the nrpe process
<br><br></div><br><b>You wrote:</b><br>What are the directory permissions for /vservers and /vservers/columbia ?<br><br>This is for columbia<br>drwxr-xr-x 23 root root 4.0K Oct 25 16:46 columbia<br><br>This is for info<br>
drwxr-xr-x  4 user1 3702 4.0K Nov 29 03:02 info<br><br><br><br><div class="gmail_quote">On Jan 10, 2008 11:17 AM, Nathanael Hoyle <<a href="mailto:nhoyle@hoyletech.com">nhoyle@hoyletech.com</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;">
<div class="Ih2E3d">Jake Solid wrote:<br>> I'm using the check_nrpe to check the space of the filesystems. The<br>> check_nrpe its able to check the space for all the volumes except one<br>> of them<br>><br>
> [root@nagios plugins]# ./check_nrpe -H <a href="http://vm.domain.com" target="_blank">vm.domain.com</a><br></div>> <<a href="http://vm.domain.com" target="_blank">http://vm.domain.com</a>> -c check_disk3<br>
> DISK UNKNOWN - free space:|<br>><br>Don't test as root, test as the nagios user (unless you're running<br>nagios as root, which you shouldn't be).<br><div class="Ih2E3d">> disk3 is filesystem /dev/mapper/VolGroup01-infoVol00  which is mounted
<br>> on /vservers/colombia/info. This is where the MySQL database reside.<br></div>What are the mount options in /etc/fstab or similar?  What permissions<br>apply to the mount for what users?<br><div class="Ih2E3d">>
<br>> Why is showing DISK UNKNOWN - free space ??<br>><br>> This is how they are mapped:<br>> =====================<br>> Filesystem            Size  Used Avail Use% Mounted on<br>> /dev/mapper/VolGroup00-LogVol02
<br>>                       138G   52G   79G  40% /<br>> /dev/md1              7.8G  153M  7.2G   3% /boot<br>> tmpfs                  14G     0   14G   0% /dev/shm<br>> /dev/mapper/VolGroup00-LogVol00<br>>                        16G  173M   15G   2% /tmp
<br>> /dev/mapper/VolGroup00-LogVol01<br>>                        16G  974M   14G   7% /var<br>> /dev/mapper/VolGroup01-infoVol00<br>>                       119G   96G   17G  85% /vservers/colombia/info<br>>
<br>> If I run the command /usr/lib64/nagios/plugins/check_disk -w 20% -c<br>> 10% -p /dev/mapper/VolGroup01-infoVol00  from the server that its<br>> getting monitored it outputs the information ok like the following:
<br>><br></div>Who are you running that as?  As root again? What happens if you run<br>that command on the monitored server as the user running the nrpe process?<br><div class="Ih2E3d">> DISK CRITICAL - free space: /vservers/fred/data 6113 MB (5%
<br>> inode=99%);| /vservers/colombia/info =108694MB;96760;108855;0;120951<br>><br>> If I use the mount point when running the line from the monitored<br>> server it also gives the proper output.<br>><br>> Now, If I use the check_nrpe with the check_disk option from the
<br>> nagios server is when it give incompleted output like the following:<br>><br>> DISK UNKNOWN - free space:|<br>><br>> If specify the mount point in the nrpe.cfg of the monitored server and<br>> then run the check_nrpe with the check_disk from the nagios server. It
<br>> gives the following:<br>><br>> DISK CRITICAL - /vservers/colombia/info does not exist<br></div>What are the directory permissions for /vservers and /vservers/columbia ?<br>><br>> Any inputs?<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/marketplace" target="_blank">http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace</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" target="_blank">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>