Script to monitor and parse the API out

Introduction

wrote a python script to monitor and parse the API out The script is Configured and it is working fine in the command line but on the Icinga board it shows as unknow.?

/usr/lib64/nagios/plugins/mobi/check_log_time.py --process=“POLICY_UPDATES” --logsURL=“http://juing*p1:8020/mobi-platform-rollup-solr-service/solr/monitor/rollup/policy.json” --hours=“4”
OK
root@juing01p1.integration: /etc/nrpe.d# echo $?
0

Requirements

  • Icinga 2 v2.8.x
  • Icinga Web 2 v2.5.x

Linux

centos 7

Hello there!

I’m afraid, that I can’t help you with your problem, but I would like to point you to our markdown formatting help.
With a few little changes, like adding a code block around your script, you can make your question a lot more readable and easier to answer :slight_smile:

Have a nice weekend,
Feu

The user profile is not fully loaded inside icinga, so maybe you are missing some envrionment variables f.e. the proxy configuration is affected by that.

Hello,

never test plugins as root. Do sudo -u icinga bash and then test it.

Regards,
Carsten

1 Like

Thank you for your time . The issue is resolved now. it $Aru was not defined right