Skip to main content

Hello

We have to add AIX Host using SNMP V2 on community Version. Requesting your help on the same. 

Hello @pravink o/

You can install the plugin `centreon-plugin-Operatingsystems-Aix-Snmp` on your Centreon platform and then use it like this :

/usr/lib/centreon/plugins/centreon_aix_snmp.pl --plugin os::aix::snmp::plugin --mode cpu --hostname=x.x.x.x --snmp-community=yourcommunity

This example give us the CPU of a AIX host.

You have several modes following what you want to monitor :

/usr/lib/centreon/plugins/centreon_aix_snmp.pl --plugin os::aix::snmp::plugin --list-mode

Modes Available:
cpu
interfaces
list-interfaces
list-processes
list-storages
processcount
storage
swap
time
uptime

And you need to create some commands in your interface like this one:

 $CENTREONPLUGINS$/centreon_aix_snmp.pl --plugin=os::aix::snmp::plugin --mode=cpu --hostname=$HOSTADDRESS$ --snmp-version='$_HOSTSNMPVERSION$' --snmp-community='$_HOSTSNMPCOMMUNITY$' $_HOSTSNMPEXTRAOPTIONS$ --warning-average='$_SERVICEWARNING$' --critical-average='$_SERVICECRITICAL$' $_SERVICEEXTRAOPTIONS$

And then create a service template that used this command.

And then create a host template linked to the service template and deploy the host template of your host :)

Feel free to ask in this thread if you need more help.


Hello @Kriko Thank you! Can you please guide us creating service template and host template. Any link or document for creating service and host template will really helpful.

 

Regards,

@pravink 


We don’t have such tutorial for the moment (I will a create a ticket for that) but here the main idea and the documentation :

  1. Once the command have been created with $_SERVICECUSTOMMACRO$ or $_HOSTCUSTOMMACRO$, you can create a service template that herited from generic-active-service-custom template to get the default monitoring parameters (a check everything 5 minutes, 24x7 for the timeperiod, and so on):

     

  2. If you set up service macros in the command they should appear on the template, and you can configure a default value that will be inherited on the final service:

     

  3. Then you can create the host template that inherited from generic-active-host-custom to get the default monitoring parameters (like the service). In the third tab relation, you can link service template and host template to automaticaly deploy your monitoring from the templates:

 

Here the links on the documentation:

If you have a small perimeter of monitoring, you can link your platform to a IT-100 token to get all the plugin pack and be relax on the template part :grin:


Reply