C and D drive reporting unknown

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

C and D drive reporting unknown

Post 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.
}
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: C and D drive reporting unknown

Post 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.
Former Nagios Employee
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: C and D drive reporting unknown

Post 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
Attachments
Working image and non-working
Working image and non-working
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: C and D drive reporting unknown

Post by rbizzell39 »

Not sure if both attachments were in the last post
Attachments
Nonworking systems.PNG
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: C and D drive reporting unknown

Post 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?
Former Nagios Employee
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: C and D drive reporting unknown

Post by rbizzell39 »

Can you tell me the command syntax for that please
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: C and D drive reporting unknown

Post 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
Former Nagios Employee
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: C and D drive reporting unknown

Post by rbizzell39 »

yes that worked from the command line
rbizzell39
Posts: 112
Joined: Thu Dec 17, 2015 1:24 pm

Re: C and D drive reporting unknown

Post by rbizzell39 »

I tried it with several vms and the command line worked on several of them
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: C and D drive reporting unknown

Post 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?
Former Nagios Employee
Locked