Where to enable service check commands.
Sudheer Muddappa
sudheer at tgs-solutions.com
Sat Oct 15 00:35:39 CEST 2005
Thanks for helping Kevin.
In Debian, If I have to add any new or say this check_icmp command
then I need to enter it in "checkcommands.cfg " or have to run this
command "update-nagios" ( which I did not find).
Now its working fine.
Thanks,
Sudheer Muddappa
Kevin Hanser wrote:
> Did you include icmp.cfg in your nagios.cfg file?
>
> ie, do you have a line something like this in nagios.cfg:
>
> cfg_file=<path to your nagios config files>/icmp.cfg
>
> Also, does /usr/lib/nagios/plugins/check_icmp exist? And is
> executable? (if you run it from a command prompt, what does it do?)
>
> If you can re-post your config files in their current state that may
> help too (icmp.cfg and the config for the service that's trying to
> call that command)
>
> k
>
> Sudheer Muddappa wrote:
>
>> did that. dose not seam to work :(
>>
>> same error
>>
>> Thanks,
>>
>> Sudheer Muddappa
>>
>>
>>
>>
>> Kevin Hanser wrote:
>>
>>>
>>>
>>> I have created a icmp.cfg file like below.
>>>
>>>>
>>>> # 'check_icmp' command definition
>>>> define command{
>>>> command_name check-icmp
>>>> command_line /usr/lib/nagios/plugins/check_icmp -H
>>>> $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
>>>> }
>>>>
>>>> When I run a flight check i get this error
>>>> Service check command 'check_icmp' specified in service 'ICMP' for
>>>> host 'navigant_prod' not defined anywhere!
>>>>
>>> In your command definition above, your "command_name" is
>>> "check-icmp". The error message indicates that it's looking for
>>> "check_icmp". If you notice, in the command definition you're using
>>> a dash ( - ), and in the error message it's using an underscore ( _ ).
>>>
>>> Change the command_name to check_icmp and it may take care of it..
>>>
>>> k
>>>
>>>
>>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> 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
>
>
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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