Page 1 of 1

Checkdisk.dll - removed hard drive

Posted: Wed Jun 06, 2012 4:30 am
by smpplaza
Hi All!!

Let me introduce myself since i'm new to this forum. I'm Maarten and work and live in the Netherlands as a System engineer. Been doing that now for a couple of years and enjoying it for the greater part so far. Since I've started at my new job this February I've worked a lot with all kinds of linux software and a bunch of Ubuntu Servers. Learned a lot about linux the past months and really enjoy this great OS!! It brings back the IT nerd in me that I kinda lost with managing windows enviroments. Besides my job and (of course) my related hobby I have a 2 great dogs who also need a lot of attention and they keep me occupied when I'm not working/hobbying or going out to some techhouse party which is another way I like to spend my spare time.

Well, thats me in a nutshell. Of course I'm not here for the chit-chat. Here's a problem I have @ the job, perhaps some(one) might have a solution for it:

We have a couple of servers (w2k8) that we've monitored with Nagios. Due to some changes in our network these servers where cloned and reinstalled on virtual servers in a cloud enviroment. No problems whatsoever occured and all servers are running wonderfully stable. However al physical servers had a C:\ drive AND a D:\ drive. In the new setting, the virtual servers don't have a D:\ drive anymore, however Nagios still tries to monitor these servers' D: drives. I've taken a look at the NSC.INI where the service for this monitor seems to be defined as:

Code: Select all

alias_disk=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED
alias_disk_loose=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED ignore-unreadable
alias_volumes=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll=volumes FilterType=FIXED
alias_volumes_loose=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll=volumes FilterType=FIXED ignore-unreadable 
Due to my limited knowledge of Nagios and the NSclient++ what i understand from this is that NSCLIENT/Nagios automatically detected the C: and D: drives and added them to the services checks.

Can anybody tell me how to let Nagios know the D:\ drive doesn't excist anymore and that it doesn't have to wake me at 2:00 am to warn me there is a problem with 11 missing D:\ drives?? :D

Thanks in advance!!

Kind regards,

Maarten

Re: Checkdisk.dll - removed hard drive

Posted: Wed Jun 06, 2012 1:19 pm
by agriffin
Check your partition tables to see if there are other drives there that might be getting picked up. Otherwise, since you're only monitoring the C drive, you could just change CheckAll=volumes to Drive=c:\ in those aliases you posted.

Re: Checkdisk.dll - removed hard drive

Posted: Thu Jun 07, 2012 3:45 am
by smpplaza
Thanks for your reply, agriffin!!

Looking at the partition table there are no hidden drives on this server. I've changed the Checkall=... to Drive=c:\, restarted the nsclient++ service however the D:\ drive still shows up in nagios with the following error: (Return code of 139 is out of bounds) .

Re: Checkdisk.dll - removed hard drive

Posted: Thu Jun 07, 2012 7:50 am
by smpplaza
Allright!!

Learned a lot 'bout Nagios the past two days. Found our substitute of the Nagios Hosts.cfg file and saw that, besides the hosts to monitor, it also contained the commands for the services. After commenting out the service definitions responsible for monitoring the D: Drives of the servers and restarting Nagios all the D: drives were gone!!

Problem solved!! Thanks for the support and your attention!!

Re: Checkdisk.dll - removed hard drive

Posted: Fri Jun 08, 2012 10:01 am
by agriffin
Glad you got everything figured out!