monster400
(Monster400)
1
Hello
Im trying to get some checks to work on Pfsense
i got this check: Check_MEM, and i get this error:
execvpe(/usr/local/libexec/nagios/check_mem.pl) failed: No such file or directory
but the file is there:
[2.4.4-RELEASE][root@pfSense-vultr]/usr/local/libexec/nagios: ls -la | grep check_mem.pl
-rwxr-xr-x 1 root wheel 15013 Feb 14 03:27 check_mem.pl
Any idea what´s wrong?
dnsmichi
(Michael Friedrich)
2
How is that service configured and executed? I‘d guess that pfsense is queried as an agent host from the Icinga master?
monster400
(Monster400)
3
Yea i use director, so master > sat > pfsense, the strange thing is the same check works on linux servers connected to the same sat.
monster400
(Monster400)
4
Hey somemore info:
[2019-02-14 21:33:30 +0100] warning/PluginCheckTask: Check command for object 'pfsense-hadsund' (PID: 49489, arguments: '/usr/local/libexec/nagios/check_mem.pl' '-C' '-c' '10' '-f' '-w' '20') terminated with exit code 128, output: execvpe(/usr/local/libexec/nagios/check_mem.pl) failed: No such file or directory
and when i try the same:
[2.4.4-RELEASE][root@pfSense-hadsund]/usr/local/libexec/nagios: perl /usr/local/libexec/nagios/check_mem.pl -C -c 10 -f -w 20
OK - 92.7% (3721112 kB) free.|TOTAL=4012696KB;;;; USED=291584KB;3210156;3611426;; FREE=3721112KB;;;; CACHES=0KB;;;;
monster400
(Monster400)
5
Found the issue, look at the top of the script for the location of perl.
change it to #!/usr/local/bin/perl -w
1 Like