Service definition problem with nagios 2.5

Thomas Knutson thomas.knutson at versimark.com
Fri Sep 29 19:44:04 CEST 2006


Actually it had nothing to do with my checkcommands.cfg file, as that was clearly defined using this syntax

# 'check_nt_disk' command definition
define command{
        command_name    check_nt_disk
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
        }


The problem was in my syntax in my service.cfg file, and how I was using the check command.  I was trying to call it as follows

check_nt_disk -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l C -w 95 -c 99


When I should have been calling it like this

check_nt_disk!C!95!99


Thank you for calling me an idiot, and for pointing me in the right direction.

-----Original Message-----
From: Marcel Mitsuto Fucatu Sugano [mailto:msugano at uolinc.com] 
Sent: Friday, September 29, 2006 12:03 PM
To: Thomas Knutson
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Service definition problem with nagios 2.5

On Fri, 2006-09-29 at 11:52 -0500, Thomas Knutson wrote:
> 
> Error: Service check command '"/usr/local/libexec/nagios/check_nt -H
> $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l C -w 95 -c 99"' specified in
> service 'DISK C:\' for host 'VMODEX01' not defined anywhere! 

Nagios is telling you what is wrong! Check your checkcommands.cfg os
whatever command.cfg you have with command definitions for your plugins.
I feel stupid telling you what to do, when nagios itself told you
before.




AVISO: A informação contida neste e-mail, bem como em qualquer de seus anexos, é CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatário(s) acima referido(s), podendo conter informações sigilosas e/ou legalmente protegidas. Caso você não seja o destinatário desta mensagem, informamos que qualquer divulgação, distribuição ou cópia deste e-mail e/ou de qualquer de seus anexos é absolutamente proibida. Solicitamos que o remetente seja comunicado imediatamente, respondendo esta mensagem, e que o original desta mensagem e de seus anexos, bem como toda e qualquer cópia e/ou impressão realizada a partir destes, sejam permanentemente apagados e/ou destruídos. Informações adicionais sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is CONFIDENTIAL and is intended only for use by the recipient named herein and may contain legally privileged and/or secret information. If you are not the e-mail´s intended recipient, you are hereby notified that any dissemination, distribution or copy of this e-mail, and/or any attachments thereto, is strictly prohibited. Please immediately notify the sender replying to the above mentioned e-mail address, and permanently delete and/or destroy the original and any copy of this e-mail and/or its attachments, as well as any printout thereof. Additional information about our company may be obtained through the site http://www.uol.com.br/ir/.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list