Nagios Plugins install

I followed the install doc for Nagios plugins. But when i try to have service check run i get this error. I made sure that all the files are executable.

sh: /usr/lib/nagios/plugins/check_ping.c: Permission denied
/usr/lib/nagios/plugins/check_http.c: line 1: /1: Permission denied
/usr/lib/nagios/plugins/check_http.c: line 2: addhost.php: command not found
/usr/lib/nagios/plugins/check_http.c: line 3: addhost.php: command not found
/usr/lib/nagios/plugins/check_http.c: line 4: addhost.php: command not found
/usr/lib/nagios/plugins/check_http.c: line 5: addhost.php: command not found
/usr/lib/nagios/plugins/check_http.c: line 6: syntax error near unexpected token (' /usr/lib/nagios/plugins/check_http.c: line 6:* Copyright © 1999-2014 Nagios Plugins Development Team’

How are you running that?

running it with ./check-services.php just to test it.
But i have the cron job setup also. But no matter what it fails or shows a down status.

This seems a local issue to me.

Can you pastebin the full output from running that command or is the above it?

do you think it permissions issue in the directory?

[root@nms librenms]# ./check-services.php
/usr/lib/nagios/plugins/check_ping.c: line 1: /1: Permission denied
/usr/lib/nagios/plugins/check_ping.c: line 2: addhost.php: command not found
/usr/lib/nagios/plugins/check_ping.c: line 3: addhost.php: command not found
/usr/lib/nagios/plugins/check_ping.c: line 4: addhost.php: command not found
/usr/lib/nagios/plugins/check_ping.c: line 5: addhost.php: command not found
/usr/lib/nagios/plugins/check_ping.c: line 6: syntax error near unexpected token (' /usr/lib/nagios/plugins/check_ping.c: line 6:* Copyright © 2000-2014 Nagios Plugins Development Team’

This appears to be an un-compiled c source file. I don’t think you installed the plugins properly. The plugins folder should only contain executable files that you can manually run to test.

Ohh you have to excuse me I’m a noob.