Error: Service check command
Travis Runyard
travisrunyard at gmail.com
Tue Jun 12 19:50:46 CEST 2012
Don't specify "-H ftpserver" in the service definition since the command
already knows which host to check.
Good:
define service{
use generic-service
hostgroup_name web-servers
service_description FTP
check_command check_ftp
}
Bad:
define service{
use generic-service
hostgroup_name web-servers
service_description FTP
check_command check_ftp -H ftpserver
}
On Tue, Jun 12, 2012 at 6:18 AM, Claudio Kuenzler <ck at claudiokuenzler.com>wrote:
>
> On Tue, Jun 12, 2012 at 2:39 PM, Henrique Machado <henri.mjr at gmail.com>wrote:
>
>> Hi.
>>
>> I'm trying to add the check_ftp command for one of my hosts. But i got
>> this error:
>>
>> Error: Service check command 'check_ftp -H ftpserver' specified in
>> service 'FTP' for host ' ftpserver' not defined anywhere!
>> Checked 89 services.
>>
>>
>> In my commands.cfg I have:
>>
>> # 'check_ftp' command definition
>> define command{
>> command_name check_ftp
>> command_line $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
>> }
>>
>>
>> What i'm missing?
>
>
> Show the service definition which fails.
> The command definition looks alright.
>
>
>>
>> Tks
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> 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
>>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120612/029faa7e/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-------------- next part --------------
_______________________________________________
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