Service Nagios ERROR

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.
Hartly
Posts: 8
Joined: Mon Feb 18, 2013 12:37 pm

Service Nagios ERROR

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Service Nagios ERROR

Post by abrist »

What do your nsclient logs on the remote host show?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Hartly
Posts: 8
Joined: Mon Feb 18, 2013 12:37 pm

Re: Service Nagios ERROR

Post 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.

++
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Service Nagios ERROR

Post by slansing »

Great, we will get back to you after reviewing it.
Hartly
Posts: 8
Joined: Mon Feb 18, 2013 12:37 pm

Re: Service Nagios ERROR

Post 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
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: Service Nagios ERROR

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Service Nagios ERROR

Post 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.
Hartly
Posts: 8
Joined: Mon Feb 18, 2013 12:37 pm

Re: Service Nagios ERROR

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service Nagios ERROR

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Hartly
Posts: 8
Joined: Mon Feb 18, 2013 12:37 pm

Re: Service Nagios ERROR

Post 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
Locked