LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2010, 08:50 AM   #1
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Rep: Reputation: 17
Nagios: Free disk space : Invalid drive


Hi,

We are using Nagios to monitor our servers. One of the items we monitor is the diskspace. We use the following code in our config file:
Code:
define service{
        use                     generic-service,srv-pnp
        host_name               servername
        service_description     C:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
        }

define service{
        use                     generic-service,srv-pnp
        host_name               servername
        service_description     D:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l D -w 80 -c 90
        }

The check for the C-drive works fine. The check for the D-drive gives "Free disk space : Invalid drive".

Any help to solve this minor problem will be appreciated.
 
Old 02-19-2010, 09:13 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by TalkingMarble View Post
Hi,

We are using Nagios to monitor our servers. One of the items we monitor is the diskspace. We use the following code in our config file:
Code:
define service{
        use                     generic-service,srv-pnp
        host_name               servername
        service_description     C:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
        }

define service{
        use                     generic-service,srv-pnp
        host_name               servername
        service_description     D:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l D -w 80 -c 90
        }

The check for the C-drive works fine. The check for the D-drive gives "Free disk space : Invalid drive".

Any help to solve this minor problem will be appreciated.
The error seems clear...there may not BE a D drive to check. Have you verified that it's there? And if you're applying this to all your servers, are you sure they all have a D: drive?
 
Old 02-20-2010, 10:58 AM   #3
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Original Poster
Rep: Reputation: 17
We use seperate config files for all our servers, so this little inconvenience is only affecting one server.

I checked disk management to be sure. The particular server has two drives, C and D.
 
Old 02-23-2010, 01:47 AM   #4
TalkingMarble
Member
 
Registered: May 2008
Location: Deventer, The Netherlands
Distribution: CentOS 5.0
Posts: 50

Original Poster
Rep: Reputation: 17
Red face

I checked the config file for the particular server again, and after some time noticed that i changed the servername but forgot to change the ipaddress.
 
Old 08-15-2012, 01:33 PM   #5
ToolTexas
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
Invalid Drive

You might want to check http://helpdesk.mysyapps.com/index.p...rticle/View/10
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
sshfs reports invalid free space on remote machine +Yan Linux - Networking 2 04-10-2006 05:37 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration