Page 1 of 1

Plugin Issue - Cisco Switch

Posted: Tue Sep 25, 2018 7:54 am
by CameronWP
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!

Re: Plugin Issue - Cisco Switch

Posted: Tue Sep 25, 2018 8:58 am
by scottwilkerson
Can you share your command definition, it looks like you are calling

Code: Select all

/usr/local/nagios/libexec/check_cisco_switch
instead of

Code: Select all

/usr/local/nagios/libexec/check_cisco_switch.pl

Re: Plugin Issue - Cisco Switch

Posted: Tue Sep 25, 2018 9:08 am
by CameronWP
Ugh, thank you for being another set of eyes. That was indeed the issue. Thank you!

Re: Plugin Issue - Cisco Switch

Posted: Tue Sep 25, 2018 9:11 am
by scottwilkerson
CameronWP wrote:Ugh, thank you for being another set of eyes. That was indeed the issue. Thank you!
glad it is resolved!

Locking thread