Check_centreon_snmp_traffic Centreon issue

Solved
gnowar Posted messages 15 Status Membre -  
 kriss974 -
Hello,

I have a problem when executing this command through the Centreon interface, it indeed returns an error.

The Nagios server and the Centreon interface run on a machine under CentOS, the host to be monitored is a Windows machine on which SNMP is correctly installed.

When I run the command directly in the directory /usr/local/nagios/libexec/, it works fine.

[nagios@localhost libexec]$ ./check_centreon_snmp_traffic -H 172.20.1.125
Traffic In : 518.29 kb/s (0.5 %), Out : 529.74 kb/s (0.5 %) - Total RX Bits In : 75.24 MB, Out : 20.73 MB|traffic_in=518293.4Bits/s traffic_out=529742.5Bits/s


When this command is launched via the Centreon interface, I get the following error:

Command Line /usr/local/nagios/libexec/check_centreon_snmp_traffic -H 172.20.1.125 -n -i 'eth0' -w '80' -c '90' -C public -v '1'
Output ERROR: Interface Status Request: Received noSuchName(2) error-status at error-index 1
Status UNKNOWN


I tried checking by modifying the command as follows:
Command Line /usr/local/nagios/libexec/check_centreon_snmp_traffic -H 172.20.1.125 -n -i '2' -w '80' -c '90' -C public -v '2'

I still get the same error response.
If you have any ideas, I am open to suggestions.

P.S.: I have Nagios v3 and Centreon v2, there used to be issues regarding this check on Windows machines, but this has been resolved (as evidenced by the command running fine directly in the command line).

!
Configuration: Windows XP Firefox 2.0.0.20

2 réponses

gnowar Posted messages 15 Status Membre 6
 
Edit: problem solved!

I actually tested several commands manually through the Centreon test interface, but it turns out it's faulty.

I had to test the commands one by one by modifying the config files and restarting my Nagios service each time.

Today I have values, but the command still does not pass through the Centreon test interface :)

Moral: test the commands with ALL arguments in the command line under the Nagios user (Very important!!! definitely not as root!!!) and do not use the Centreon command test interface.
4
kriss974
 
Hello, I have another issue with check_centreon_snmp_traffic; it doesn't return the information on the traffic correctly because there is also traffic on the non-interfaces. Thank you in advance.
-1