Cron job addition

Cron job addition

Steps to configure cron job
1)Check whether curl is installed in the system where cron jobs are running, by executing the below command in terminal
 $curl -V
 Output should be similar as below


2)Check the script added in the cron job addition is having executable permission
$ls -al <script added in Job script path>




3)Under Settings -> User Management ->Click on Admin User and generate the API key by clicking the Click here as shown



4)Replace the <ADMIN_API_KEY> with the api key generated above 
5)After replacing paste the content in the target server where cron job is running by following the steps below
  1. In target server terminal execute     
                $ crontab -e 
  1. A cron editor will open 
  2. Paste the curl content and save and exit 
  3. The terminal should return the following
                  crontab: installing new crontab

If cron job details are not getting updated in Applications Manager even after performing the above steps , check whether the target server can access the Applications Manager installed machine and  the port in which it is running by executing the below command in the target server.

telnet remote_server_ip port_number

remote_server_ip/hostname - Replace remote_server_ip with the hostname/ipaddress of machine in which Applications Manager is running.
port_number - Replace Port number with port number in which Applications Manager is running

Example
http://127.0.0.1:9666 - APM build link
telnet 127.0.0.1 9666

                    New to ADSelfService Plus?

                      • Related Articles

                      • Prerequisites for monitoring Cron jobs

                        Below is the list of prerequisites for monitoring Cron jobs: Curl must be installed in the remote Linux machine.  Script linked to the cron job must have executable permission. The machine where Applications Manager is installed should be reachable ...
                      • AWS Monitor Addition - FAQs

                        Best Practices while adding an Amazon monitor in Applications Manager: Provide proper 'Display name' for the Amazon monitor. Select the Amazon services you want to discover from the Amazon services drop box. By default, all the services will be ...
                      • Monitor Addition Restriction in Managed Servers

                        In Applications Manager, there is a fixed limit on the total number of monitors a user can add to a managed server. When a user attempts to add a new monitor to a managed server that has reached its limit, a warning message will be displayed on the ...
                      • Troubleshooting errors that occur during monitor addition and data collection in Microsoft 365 monitor (For versions 16310 onwards)

                        From Applications Manager version 16310 onwards, Microsoft 365 monitor will use Microsoft Graph API as the primary mode of data collection. We have migrated from PowerShell to Graph API as Microsoft 365 PowerShell commands were taking more time to ...
                      • Duplicate Child Monitors Added in Amazon Monitor

                        Reason: When duplicate child monitors are added in Amazon monitor, it may be a result of multiple discovery threads (Amazon parent monitor) being initiated during the monitor addition. The issue of duplicate monitors may occur when multiple polls are ...