No such file or directory when executing script in Check_MK

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

No such file or directory when executing script in Check_MK

Postby joseph3674 » Fri Mar 09, 2018 4:40 am


Im trying to execute a simple notification script but when check_km try to execute it give me the next error:

2018-03-09 11:00:19 Executing 1 notifications:
2018-03-09 11:00:19 * notifying Prueba via scriptPrueba, parameters: (no parameters), bulk: no
2018-03-09 11:00:19 executing /omd/sites/check_mk/local/share/check_mk/notifications/scriptPrueba
2018-03-09 11:00:19 ERROR: [Errno 2] No such file or directory
2018-03-09 11:00:19 Traceback (most recent call last):
File "/omd/sites/check_mk/share/check_mk/modules/", line 466, in notify_rulebased
call_notification_script(plugin, plugin_context)
File "/omd/sites/check_mk/share/check_mk/modules/", line 1169, in call_notification_script
stderr=subprocess.STDOUT, env=notification_script_env(plugin_context))
File "/usr/lib/python2.7/", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

I put the script here with the permisons: /omd/sites/check_mk/local/share/check_mk/notifications/

The script Im trying to execute is the example script placed on the check_mk page:

# encoding: utf-8
# Prueba

env | grep NOTIFY_ | sort > $OMD_ROOT/tmp/foobar.out
echo "Successfully written $OMD_ROOT/tmp/foobar.out"
exit 0

Posts: 1
Joined: Fri Mar 09, 2018 4:26 am

Re: No such file or directory when executing script in Check

Postby cdienger » Fri Mar 09, 2018 4:20 pm

Check_MK is another monitoring utility not associated with Nagios. They do have a mailing list which may be of better assistance on this matter:
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Support Tech
Posts: 1410
Joined: Tue Feb 07, 2017 11:26 am

Return to Nagios Core

Who is online

Users browsing this forum: Christopheric1 and 40 guests