I'm having some issues with a new plugin I've just uploaded to my Nagios XI server.
If I run the script from the command line it successfully displays the output data:
Code: Select all
[root@lvwtelcotnagiosprd01 pruebas]# perl /usr/local/nagios/libexec/check_iftraffic64.pl -H 15.0.0.11 -C public -i GigabitEthernet0/0 -B
OK - Average IN: 331.18Kb (0.03%), Average OUT: 316.94Kb (0.03%)Total RX: 1604.18Gbits, Total TX: 1534.42Gbits|inUsage=0.03%;85;98 outUsage=0.03%;85;98 inBandwidth=41397.54B outBandwidth=39616.92B inAbsolut=200522425779c outAbsolut=191802627302c
Code: Select all
[root@lvwtelcotnagiosprd01 pruebas]# su -c 'perl /usr/local/nagios/libexec/check_iftraffic64.pl -H 15.0.0.11 -C public -i GigabitEthernet0/0 -B' nagios
[root@lvwtelcotnagiosprd01 pruebas]#
Code: Select all
[root@lvwtelcotnagiosprd01 pruebas]# ls -l /usr/local/nagios/libexec/check_iftraffic64.pl
-rwxr-xr-x 1 apache apache 38942 Oct 26 15:36 /usr/local/nagios/libexec/check_iftraffic64.pl
Thanks in advance.