Search found 4 matches

by RegIT
Fri Jun 28, 2024 5:11 am
Forum: Nagios XI
Topic: Python scripts
Replies: 7
Views: 2617

Re: Python scripts

I've managed this issue changing the ncpa.cfg modifying the string when calling the .py

I've changed from "python3 $plugin_name $plugin_args" to "python $plugin_name $plugin_args".

Now the script works but in the status information i see this:


Any tips?
by RegIT
Thu Jun 27, 2024 10:55 am
Forum: Nagios XI
Topic: Python scripts
Replies: 7
Views: 2617

Re: Python scripts

When i try to execute a script i receive this alert
by RegIT
Thu Jun 27, 2024 10:00 am
Forum: Nagios XI
Topic: Python scripts
Replies: 7
Views: 2617

Re: Python scripts

Here the log 2024-06-27 16:59:08,331 listener.server ERROR Exception on /api/plugins/REGESTA.py/ [GET] Traceback (most recent call last): File "listener\nodes.py", line 351, in run_check File "listener\nodes.py", line 315, in get_values AttributeError: 'PluginNode' object has no ...
by RegIT
Wed Jun 26, 2024 11:49 am
Forum: Nagios XI
Topic: Python scripts
Replies: 7
Views: 2617

Python scripts

Hi to everyone, I would like to monitor a Windows Server taking advantage of Python scripts. The script are already located in the NCPA's plugins folder. The services configuration in Nagios is set like the image in attachments. The "Status information" error is: UNKNOWN: An error occured ...