Commands are not added in commands.cfg from CCM

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Commands are not added in commands.cfg from CCM

Post by absarcompass »

Hi All,
I was trying to setup ntp checks and found the plugins in /usr/local/nagios/libexec/
"check_ntp
check_ntp_peer
check_ntp_time"
I can see these three in the /usr/local/nagios/libexec/ directory with permissions "-rwxrwxr-x 1 apache nagios" but when I am trying to setup the service none of them are being shown on web in check command drop down menu.
I have checked the commands.cfg at directory "/usr/local/nagios/etc/commands.cfg" and these three are not added as commands in the commands.cfg
I have tried moving them to /tmp and copy back with setting the permissions again but they are not added.

Can any one help me in this regard, why possibly they are not getting there??
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Commands are not added in commands.cfg from CCM

Post by hsmith »

You'll need to add them to the commands.cfg file, using the CCM. The drop down does not look for all plugins that are in a directory, instead it looks at your commands.cfg, and loads commands based on those. Does this make sense?
Former Nagios Employee.
me.
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Commands are not added in commands.cfg from CCM

Post by absarcompass »

Thanks hsmith :)
yes figured that out later.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Commands are not added in commands.cfg from CCM

Post by rkennedy »

Did you have any more questions, or am I good to mark this as resolved?
Former Nagios Employee
absarcompass
Posts: 182
Joined: Thu May 14, 2015 9:57 pm

Re: Commands are not added in commands.cfg from CCM

Post by absarcompass »

Yup!
That's resolved now.

Thanks
Locked