Hi:
I am attempting to run a plugin called check_cisco_switch.pl. When I run it from the command line either as root or nagios it works without an issue:
[nagios@emssvr libexec]$ ./check_cisco_switch.pl -H <Hostname> -C <value> -t cpu
Cpu: CRIT - Cpu Load 99% 62% 50% | cpu_5s=99percent;0;0 cpu_1m=62percent cpu_5m=50percent
When run from the interface I get:
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_cisco_switch, ...) failed. errno is 2: No such file or directory
I have never seen this issue before and I haven't had my morning coffee but I am drawing a blank. Thanks!
Plugin Issue - Cisco Switch
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Plugin Issue - Cisco Switch
Can you share your command definition, it looks like you are calling
instead of
Code: Select all
/usr/local/nagios/libexec/check_cisco_switchCode: Select all
/usr/local/nagios/libexec/check_cisco_switch.plRe: Plugin Issue - Cisco Switch
Ugh, thank you for being another set of eyes. That was indeed the issue. Thank you!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Plugin Issue - Cisco Switch
glad it is resolved!CameronWP wrote:Ugh, thank you for being another set of eyes. That was indeed the issue. Thank you!
Locking thread