Join fellow LogicMonitor users at the Elevate Community Conference and get hands-on with our latest product innovations.

Register Now

Resources

Explore our blogs, guides, case studies, eBooks, and more actionable insights to enhance your IT monitoring and observability.

View Resources

About us

Get to know LogicMonitor and our team.

About us

Documentation

Read through our documentation, check out our latest release notes, or submit a ticket to our world-class customer service team.

View Resources

Troubleshooting Cron Jobmonitor

Last updated on 06 January, 2025
  1. Open the terminal and enter the following command: $ crontab -e
  2. Enter the password.  

Note: If you log in as a root user, you are not be required to enter the password.

  1. Update the Cron Jobomonitor by running the following command:54 11 * * * /usr/local/logicmonitor/agent/lib/lmbatchjobwrapper.sh <agent ip>:7214 nginx.corp.exactasystems.co "CORP-NGINX GixyTest 6am Daily" /etc/scripts/gixytest.sh > /<path>/anyfile.log 2>&1

    Update Cron Jobmonitor
  2. To apply the changes, restart the Cron Jobmonitor by running the following command:
    sudo systemctl restart cron
  3. To see if the Cron jobs are running correctly, run the following command:
    tail -f filename.log

    Cron Jobmonitor running
  4. To enable the Cron Jobmonitor logging, open /etc/rsyslog.d/50-default.conf file by running the following command and uncommenting the code:
    # Uncomment the following line to enable cron logging to a separate file cron.*       /var/log/cron.log cron.*       /var/log/cron.log
    Uncommenting
  5. Restart the Syslog service to ensure the logging configuration is updated and functional by running the following command:
    sudo systemctl restart rsyslog
  6.  In the LogicMonitor portal, navigate to Resource Tree > select the resource on which jobmonitor module is applied.
  7. Select Job Monitor Executions tab.
    The Cron Jobmonitor details are displayed.

Get Started with LogicMonitor