Page 1 of 4

C and D drive reporting unknown

Posted: Tue Oct 18, 2016 8:00 am
by rbizzell39
I have configured the service to monitor the c drive and d drive but nothing but I just see unknown using these parameters

define service{
use generic-service
host_name remote-windows-host
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}


define service{
use generic-service
host_name remote-windows-host
service_description D:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l d -w 80 -c 90




I am using version NSClient++ 0.4.1.73 Version and the service is only reporting on one system the other 4 systems report unknown.
}

Re: C and D drive reporting unknown

Posted: Tue Oct 18, 2016 11:54 am
by rkennedy
Can you show us a screenshot of what the full status is reporting as?

This could be anything from a simple timeout, all the way to NSClient++ not listening properly. It's hard to say without knowing.

Re: C and D drive reporting unknown

Posted: Mon Oct 24, 2016 9:28 am
by rbizzell39
Sure, I thought having different versions were the reason but it isn't. I made sure the service has log on to the local system

Re: C and D drive reporting unknown

Posted: Mon Oct 24, 2016 9:33 am
by rbizzell39
Not sure if both attachments were in the last post

Re: C and D drive reporting unknown

Posted: Mon Oct 24, 2016 12:23 pm
by rkennedy
Your first screenshot seems to look proper, but the second one is definitely showing the errors.

For the host / service that is showing errors, what is the result if you attempt to run the check_nt check over the CLI? Does it come back with a successful output?

Re: C and D drive reporting unknown

Posted: Mon Oct 24, 2016 12:26 pm
by rbizzell39
Can you tell me the command syntax for that please

Re: C and D drive reporting unknown

Posted: Mon Oct 24, 2016 12:40 pm
by rkennedy
You should be able to run something like this -

Code: Select all

[root@localhost libexec]# ./check_nt -H 192.168.47.8 -p 12489 -v USEDDISKSPACE -l c -w 80 -c 90
c:\ - total: 24.90 Gb - used: 18.18 Gb (73%) - free 6.72 Gb (27%) | 'c:\ Used Space'=18.18Gb;19.92;22.41;0.00;24.90

Re: C and D drive reporting unknown

Posted: Mon Oct 24, 2016 12:43 pm
by rbizzell39
yes that worked from the command line

Re: C and D drive reporting unknown

Posted: Mon Oct 24, 2016 12:47 pm
by rbizzell39
I tried it with several vms and the command line worked on several of them

Re: C and D drive reporting unknown

Posted: Mon Oct 24, 2016 12:48 pm
by rkennedy
Could you show us the full input / output, and also a copy of your /usr/local/nagios/var/objects.cache file?

What is the host / service name that is failing?