Plugin Issue - Cisco Switch

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CameronWP
Posts: 134
Joined: Fri Apr 17, 2015 2:17 pm

Plugin Issue - Cisco Switch

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Plugin Issue - Cisco Switch

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
CameronWP
Posts: 134
Joined: Fri Apr 17, 2015 2:17 pm

Re: Plugin Issue - Cisco Switch

Post by CameronWP »

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked