Page 1 of 1
Error: Unknown command(s): check_service
Posted: Tue Oct 24, 2017 2:51 pm
by elpollodiablo
Not sure if this should be directed somewhere else. If so, could someone point me in the right direction?
I am getting error this error when trying to monitor services on a machine: Unknown command(s): check_service
I have installed NSClient on the remote machine. I do not see check_service either as a script in the NSClient directory or in the Core Config Manager commands. Is there something I need to add to get that command to work?
Re: Error: Unknown command(s): check_service
Posted: Tue Oct 24, 2017 2:56 pm
by dwhitfield
Where exactly do you see that error? Can you send a screenshot?
Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.
You can also generate a profile manually using the script at /usr/local/nagiosxi/html/includes/components/profile/getprofile.sh
That should generate a profile in /usr/local/nagiosxi/var/components/ which you can get off the server with an application such as FileZilla.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
If you get an error that PROFILE BUILD FAILED, please see
https://support.nagios.com/kb/article.p ... ategory=44
Re: Error: Unknown command(s): check_service
Posted: Tue Oct 24, 2017 3:07 pm
by elpollodiablo
I see it in the service status summary for an Exchange 2013 host I've added (via the config wizard).
I'm newly registered, so it won't allow me to PM. Should I upload the profile here or is that a bad idea?
Re: Error: Unknown command(s): check_service
Posted: Tue Oct 24, 2017 3:10 pm
by dwhitfield
Is this a service you added after the wizard?
You should be able to PM now. It's really up to you about the profile directly on the forum. If you use internal IPs, then it shouldn't be that big of a deal. You can always take a look first and see if it contains sensitive information.
Re: Error: Unknown command(s): check_service
Posted: Thu Oct 26, 2017 5:08 pm
by elpollodiablo
I'm sorry, I forgot to update the thread.
PM'd profile to you. This was not a service added at all. I just used the config wizard to set up the monitor. I figured it would set up the services for me.
I'm seeing the error when I go into the Service Status. Exchange Core Services shows the error from the subject here.
Re: Error: Unknown command(s): check_service
Posted: Fri Oct 27, 2017 11:03 am
by kyang
I'm taking a look at your profile, and I see a few errors that relate to what I see in the wizard and it says.
Exchange Services
Specify which Exchange services you'd like to monitor (these require installation of the Windows agent).
You must have the listed core service classes available for the wizard services to run correctly.
Core Services -> MSExchangeADTopology,MSExchangeAntispamUpdate,MSExchangeDagMgmt,MSExchangeDelivery,MSExchangeDiagnostics,MSExchangeEdgeSync,MSExchangeFastSearch,MSExchangeFrontEndTransport etc etc
Checks to make sure core services (specified below) that are essential to Exchange are running.
Services:
Do you have all of these Core Services on your exchange server? If you don't then that is why it will run incorrectly and return errors. (If not I would delete the ones you don't have)
Code: Select all
MSExchangeADTopology,MSExchangeAntispamUpdate,MSExchangeDagMgmt,MSExchangeDelivery,MSExchangeDiagnostics,MSExchangeEdgeSync,MSExchangeFastSearch,MSExchangeFrontEndTransport,etc etc
As for the Exchange Web Services -- > Do you have W3SVC running on your windows machine? You can find it by searching for Services --> find World Wide Web Publishing Service, right click and start.