how to find command definition of predefined command

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
skhan28
Posts: 2
Joined: Tue Apr 25, 2017 2:46 pm

how to find command definition of predefined command

Post by skhan28 »

Hi,
i just want to know that how to find a command that is already defined in a service definition on commands.cfg, i mean to say the command definition of that particular command line in service definition. as there are various command defined in command definition. i hope you getting my point.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: how to find command definition of predefined command

Post by tmcdonald »

That is available in the web interface under Configure -> Core Configuration Manager -> Commands.
Former Nagios employee
skhan28
Posts: 2
Joined: Tue Apr 25, 2017 2:46 pm

Re: how to find command definition of predefined command

Post by skhan28 »

thanks for your reply but how to know that which command is taken from command.cfg in command line under service definition.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: how to find command definition of predefined command

Post by dwhitfield »

The service configs will give a command. These are going to be under the services directory in XI and the actual config will have a host name.

Match the command there with the command in commands.cfg...or match the CCM Service command with the CCM commands.

Please let us know if you have additional questions.
Locked