Status information 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.
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: Status information UNKNOWN

Post by ziedmahjoub »

ssax wrote:And just to make sure, can you validate that the machine does have a C drive? I know sometimes people install it and it not lettered C.
Yes i just checked , you were right the machine got 2 partitions with letters H and J
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Status information UNKNOWN

Post by tgriep »

Run the following checks to see if they work for you.

Code: Select all

H Drive
./check_nt -H Tesco_Chaima_IP_ADDRESS -p 12495 -s nagiosadmin -v USEDDISKSPACE -l h -w 80 -c 90
J Drive
./check_nt -H Tesco_Chaima_IP_ADDRESS -p 12495 -s nagiosadmin -v USEDDISKSPACE -l j -w 80 -c 90
Be sure to check out our Knowledgebase for helpful articles and solutions!
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: Status information UNKNOWN

Post by ziedmahjoub »

tgriep wrote:Run the following checks to see if they work for you.

Code: Select all

H Drive
./check_nt -H Tesco_Chaima_IP_ADDRESS -p 12495 -s nagiosadmin -v USEDDISKSPACE -l h -w 80 -c 90
J Drive
./check_nt -H Tesco_Chaima_IP_ADDRESS -p 12495 -s nagiosadmin -v USEDDISKSPACE -l j -w 80 -c 90
Yes they work fine , where i need to replace C with H and J in the nagios config ?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Status information UNKNOWN

Post by tgriep »

This is the service check you would have to edit from your earlier post.

Code: Select all

define service{
   use         generic-service
   host_name      Soteb_Hasna,Tesco_Chaima
   service_description   C:\ Drive Space
   check_command      check_nt!12495!USEDDISKSPACE!-l c -w 80 -c 90
   }
Change the description to whichever drive you want to edit and the -l variable to the same drive letter.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: Status information UNKNOWN

Post by ziedmahjoub »

tgriep wrote:This is the service check you would have to edit from your earlier post.

Code: Select all

define service{
   use         generic-service
   host_name      Soteb_Hasna,Tesco_Chaima
   service_description   C:\ Drive Space
   check_command      check_nt!12495!USEDDISKSPACE!-l c -w 80 -c 90
   }
Change the description to whichever drive you want to edit and the -l variable to the same drive letter.
can i put 2 lettres ?
for example :

Code: Select all

check_command      check_nt!12495!USEDDISKSPACE!-l h j -w 80 -c 90
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Status information UNKNOWN

Post by tgriep »

No, you would have to create 2 separate checks. One for H and one for J.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Status information UNKNOWN

Post by Box293 »

check_nrpe for NSClient++ allows multiple drives:

Code: Select all

Command:
check_nrpe -H win7-01 -t 30 -c CheckDriveSize -a ShowAll MaxWarn=80% MaxCrit=90% Drive=C: Drive=E:

Output:
OK: C:: 17G, E:: 91M|'C: %'=28%;80;90 'C:'=16.99G;47.9;53.9;0;59 'E: %'=0%;80;90 'E:'=90.97M;32765.59;36861.29;0;40956.99
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: Status information UNKNOWN

Post by ziedmahjoub »

Box293 wrote:check_nrpe for NSClient++ allows multiple drives:

Code: Select all

Command:
check_nrpe -H win7-01 -t 30 -c CheckDriveSize -a ShowAll MaxWarn=80% MaxCrit=90% Drive=C: Drive=E:

Output:
OK: C:: 17G, E:: 91M|'C: %'=28%;80;90 'C:'=16.99G;47.9;53.9;0;59 'E: %'=0%;80;90 'E:'=90.97M;32765.59;36861.29;0;40956.99
Box do you mean they can be checked at the same time ?
ziedmahjoub
Posts: 142
Joined: Fri Jan 16, 2015 5:22 am

Re: Status information UNKNOWN

Post by ziedmahjoub »

tgriep wrote:No, you would have to create 2 separate checks. One for H and one for J.
it worked fine
Last edited by ziedmahjoub on Fri Apr 10, 2015 10:46 am, edited 1 time in total.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Status information UNKNOWN

Post by jdalrymple »

ziedmahjoub - looks like this one is solved? Can we lock and mark it as such?
Locked