Page 1 of 1

Commands are not added in commands.cfg from CCM

Posted: Tue Feb 02, 2016 10:29 pm
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??

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

Posted: Wed Feb 03, 2016 10:30 am
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?

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

Posted: Wed Feb 03, 2016 6:13 pm
by absarcompass
Thanks hsmith :)
yes figured that out later.

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

Posted: Thu Feb 04, 2016 9:55 am
by rkennedy
Did you have any more questions, or am I good to mark this as resolved?

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

Posted: Thu Feb 04, 2016 4:36 pm
by absarcompass
Yup!
That's resolved now.

Thanks