Page 1 of 2

Service Nagios ERROR

Posted: Mon Feb 18, 2013 1:05 pm
by Hartly
Hello all,

My name is Baptiste, I am French and currently in workplacement for my studies.

My mission is to install nagios 3.4.1 on an Ubuntu server 12.10 and Ihave some problems. I first look on french forums, finding no answers, I'm here, hoping to find the help I need.

I installed NSClient++ on the server I must monitoring. I told my hosts in windows.cfg. There is no problem, they appears on my web interface so it's a good thing for begin. Now, I want to put service to check their good performance, and this is there I meet problems.

When I put this command, there is no problems.

Code: Select all

root@server001:~# /usr/local/nagios/libexec/check_nt -H 10.0.2.17 -p 12489 -s "" -v CLIENTVERSION
NSClient++ 0.3.8.75 2010-05-27
But when I want to know the used space disk or the usage memory, I have an error :

Code: Select all

root@server001:~# /usr/local/nagios/libexec/check_nt -H 10.0.2.17 -p 12489 -s "" -v USEDDISKSPACE -l C -w 80 -c 90
NSClient - ERROR: Could not complete the request check log file for more information

Code: Select all

root@server001:~# /usr/local/nagios/libexec/check_nt -H 10.0.2.17 -p 12489 -s "" -v MEMUSE -w 80 - c 90
NSClient - ERROR: Could not complete the request check log file for more information
I ask you for help and you will be very grateful

Thank you again

Ps: Sorry for my broken English

Baptiste

Re: Service Nagios ERROR

Posted: Mon Feb 18, 2013 1:17 pm
by abrist
What do your nsclient logs on the remote host show?

Re: Service Nagios ERROR

Posted: Mon Feb 18, 2013 1:58 pm
by Hartly
abrist wrote:What do your nsclient logs on the remote host show?
Thank you for your answer. I post the NSClient log tomorrow morning when I arrived at work.

++

Re: Service Nagios ERROR

Posted: Mon Feb 18, 2013 2:21 pm
by slansing
Great, we will get back to you after reviewing it.

Re: Service Nagios ERROR

Posted: Tue Feb 19, 2013 6:17 am
by Hartly
I had this message when I was on my virtual environment. But this morning, when I try again, the problem was solve. Indeed, my host replies me the good information about the CPU or USEDDISKSPACE.

So I don't know where the problem comes from, maybe I forget to restart NSClient++ after a modification of a file.

But now, I must install NSClient on my servers. On the Windows 2003, no problem, but on the 2008, I have the same message when I try to test a service (NSClient - Error ...). More, I haven't any log file on the NSClient folder/file (I don't how we say "dossier" in english ..) of my host.

Do you think there is a problem with compatibility ? I don't see another issue because on my 2003 it's work fine, but on 2008 problem ..

++ Thank you.

Baptiste

Re: Service Nagios ERROR

Posted: Tue Feb 19, 2013 10:12 am
by gshergill
Hi Hartly,

I had this problem before on Windows Server 2008 and ended up installing 0.3.7, but that problem was with NSClient 0.3.9.

I just installed NSClient 0.3.8 on a fresh 2008 server (32 bit and 64 bit) and it went fine, no problems.

Are you installing from the .msi or using another method (e.g. from the .zip)? I think I remember it having to do with missing a file.

Below is the link of the client versions if you want to try another one (or try using the .msi if you aren't already).
Good luck.

Kind Regards,

Gary Shergill

Re: Service Nagios ERROR

Posted: Tue Feb 19, 2013 10:21 am
by slansing
Thanks for letting us know that that specific issue was resolved, great tips GShergill, we also recommend using NSClient++ 0.3.9 or 0.3.8 rather than the newest versions as they are quite unstable as they sit now.

Re: Service Nagios ERROR

Posted: Tue Feb 19, 2013 10:58 am
by Hartly
gshergill wrote:Hi Hartly,

I had this problem before on Windows Server 2008 and ended up installing 0.3.7, but that problem was with NSClient 0.3.9.

I just installed NSClient 0.3.8 on a fresh 2008 server (32 bit and 64 bit) and it went fine, no problems.

Are you installing from the .msi or using another method (e.g. from the .zip)? I think I remember it having to do with missing a file.

Below is the link of the client versions if you want to try another one (or try using the .msi if you aren't already).
Good luck.

Kind Regards,

Gary Shergill
Thank you for your answer Gary.

I install NSClient with the .msi and the version of NSClient was 0.3.8. Maybe I had a problem with my NSC.ini file. I don't know, I didn't try again since this morning.

I am currently with the 0.3.8 version on my server windows 2000 & 2003, and I have no problem. Because I have 35 servers with W2000 & 2003, I have not finished yet.

I try again with 2008 tomorrow, and I come back if I have the same problem.

Thank you again

Re: Service Nagios ERROR

Posted: Tue Feb 19, 2013 2:47 pm
by lmiltchev
I try again with 2008 tomorrow, and I come back if I have the same problem.
Let us know if you have any more issues.

Re: Service Nagios ERROR

Posted: Wed Feb 20, 2013 8:56 am
by Hartly
Hi !

I haven't yet solved the problem with the servers under Windows 2008, but I have a problem with service nagios verification's.

I would like to test executables services present on my servers 2003 (spoolsv.exe & winlogon.exe).

Here an extract of my windows.cfg file :

Code: Select all

define service{
use                            generic-service
name                         Test du SPOOL
service_description     Process serveur d'impression
host_name                 00_wstoulssdo101a
check_command         check_process!spoolsv.exe
}
The problem is I can relance Nagios with "service nagios restart". I've no error. But I can't see anything about spool on my web interface.

Do you think I must define a command to check this service or can I do it with check_nt ?

Thank you. ++

Baptiste