Page 3 of 4

Re: Status information UNKNOWN

Posted: Fri Apr 03, 2015 3:00 am
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

Re: Status information UNKNOWN

Posted: Fri Apr 03, 2015 12:04 pm
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

Re: Status information UNKNOWN

Posted: Mon Apr 06, 2015 10:06 am
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 ?

Re: Status information UNKNOWN

Posted: Mon Apr 06, 2015 11:25 am
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.

Re: Status information UNKNOWN

Posted: Tue Apr 07, 2015 3:58 am
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

Re: Status information UNKNOWN

Posted: Tue Apr 07, 2015 3:03 pm
by tgriep
No, you would have to create 2 separate checks. One for H and one for J.

Re: Status information UNKNOWN

Posted: Tue Apr 07, 2015 6:12 pm
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

Re: Status information UNKNOWN

Posted: Wed Apr 08, 2015 8:44 am
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 ?

Re: Status information UNKNOWN

Posted: Wed Apr 08, 2015 8:52 am
by ziedmahjoub
tgriep wrote:No, you would have to create 2 separate checks. One for H and one for J.
it worked fine

Re: Status information UNKNOWN

Posted: Wed Apr 08, 2015 2:45 pm
by jdalrymple
ziedmahjoub - looks like this one is solved? Can we lock and mark it as such?