Hello,
What is the model of your Moxa switches?
Edit: My bad didn’t see it was on the title
What you need first is to find the OIDs corresponding to your switches models EDS-516A and EDS-408A
Moxa root OID seems to be .1.3.6.1.4.1.8691.7 and the next OID correspond to the model
What you can do is try a snmpwalk to your switches, one of each model, to find the OID, like this
snmpwalk -v SNMPVERSION -c COMMUNITY SWITCH_IP 1.3.6.1.4.1.8691.7
If snmp is setup on your switches, you will have a big output
You need to find the OID after 7 to get the OID corresponding to your switch model
If your able to get the model, you can also try a snmpget on the complete OID for CPU
snmpget -v SNMPVERSION -c COMMUNITY SWITCH_IP 1.3.6.1.4.1.8691.7.OID_MODEL.1.53
Then you will have to add it to the available models on network/moxa/switch/snmp/mode/cpu.pm (and memory), like this
my $mapping = {
iks6726a => {
cpu_load5s => { oid => '.1.3.6.1.4.1.8691.7.116.1.53' },
cpu_load1m => { oid => '.1.3.6.1.4.1.8691.7.116.1.54' },
cpu_load5m => { oid => '.1.3.6.1.4.1.8691.7.116.1.55' }
},
eds516a => {
cpu_load5s => { oid => '.1.3.6.1.4.1.8691.7.MODEL_OID.1.53' },
cpu_load1m => { oid => '.1.3.6.1.4.1.8691.7.MODEL_OID.1.54' },
cpu_load5m => { oid => '.1.3.6.1.4.1.8691.7.MODEL_OID.1.55' }
},
eds408a => {
cpu_load5s => { oid => '.1.3.6.1.4.1.8691.7.MODEL_OID.1.53' },
cpu_load1m => { oid => '.1.3.6.1.4.1.8691.7.MODEL_OID.1.54' },
cpu_load5m => { oid => '.1.3.6.1.4.1.8691.7.MODEL_OID.1.55' }
},
Careful, you also have to add the model just below with other in the manage_selection function
And then you can try if it works with your plugin
Sorry i don’t have any MOXA to test all this, but i hope it will helps you at least
Hi vcoum,
I found the 3 OID needed to monitor the CPU, I’m searching the ones for the memory (I have values that does not exactly reflect what I can observe on the switch internal logs but I’m on the way).
Do you know how can I contact somebody to send this information to be included in the Centreon maintained plugin ?
thanks a lot.
Regards.
Hi @DIAMFred ,
IMO your best chance is to open an issue on Centreon Plugins Github (or make a Pull Request)
Regards
@DIAMFred, once done, please submit your PR and we will process it. If you cannot do this, then you can PM @omercier and see how to proceed to make changes officially available.
Here are the lines to add to the MOXA plugin to be able to monitor CPU & RAM on model EDS406A and EDS-516A:
CPU:
in section network/moxa/switch/snmp/mode/cpu.pm
my $mapping = {
add the following lines
eds408a => {
cpu_load5s => { oid => '.1.3.6.1.4.1.8691.7.7.1.53' },
cpu_load1m => { oid => '.1.3.6.1.4.1.8691.7.7.1.54' },
cpu_load5m => { oid => '.1.3.6.1.4.1.8691.7.7.1.55' }
},
eds516a => {
cpu_load5s => { oid => '.1.3.6.1.4.1.8691.7.11.1.53' },
cpu_load1m => { oid => '.1.3.6.1.4.1.8691.7.11.1.54' },
cpu_load5m => { oid => '.1.3.6.1.4.1.8691.7.11.1.55' }
},
and a little further down in the script
sub manage_selection {
values(%{$mapping->{eds408a}}),
values(%{$mapping->{eds516a}}),
RAM:
in section network/moxa/switch/snmp/mode/memory.pm
my $mapping = {
add the following lines
eds408a => {
total => { oid => '.1.3.6.1.4.1.8691.7.7.1.56' },
free => { oid => '.1.3.6.1.4.1.8691.7.7.1.57' },
used => { oid => '.1.3.6.1.4.1.8691.7.7.1.58' }
},
eds516a => {
total => { oid => '.1.3.6.1.4.1.8691.7.11.1.56' },
free => { oid => '.1.3.6.1.4.1.8691.7.11.1.57' },
used => { oid => '.1.3.6.1.4.1.8691.7.11.1.58' }
},
and a little further down in the script
sub manage_selection {
values(%{$mapping->{eds408a}}),
values(%{$mapping->{eds516a}}),
I also contacted @omercier to see if it is possible to add them officially.
Thanks for all.
Regards.