Configure SNMP for Citrix - XenServer




Enable snmpd service
1. To enable snmpd service run the following command:
# chkconfig snmpd on
2. Start the snmpd service:
# service snmpd start

Change SNMP configuration
1. To change snmp configuration edit the /etc/snmp/snmpd.conf file.
2. Restart the snmpd service:
# service snmpd restart


SNMP configuration examples
Default settings
You can view only systemview subtree .1.3.6.1.2.1.1
View whole subtree

1. Change lines as follows:
Current lines:
view     systemview     included     .1.2.6.1.2.1.1
view     systemview     included     .1.3.6.1.2.1.25.1.1
Add line:
view     all          included     .1
Change line:
access     notConfigGroup “”     any     noauth     exact     systemview     none      none
To:
access     notConfigGroup “”     any     noauth     exact     all          none      none

2. Save the file.
3. Restart the service:
# service snmpd restart
Change community string (default is “public”)
Change line:
com2sec notConfigUser     default     public
To:
com2sec notConfigUser     default     anything_you_need

Configure firewall rules
Add the next line after the 5353 port line and before the reject last line:

-A RH-Firewall-1-INPUT -m state –state NEW -m udp -p udp –dport 161 -j ACCEPT


Reference:
http://support.citrix.com/article/CTX122337
http://www.charleslabri.com/getting-snmp-rolling-on-xenserver-6/

¿Desea donar?/Do you wish to give some money to the author?


Give money to the author/writer

Comentarios

Entradas populares de este blog

Xencenter on GNU/Linux

ICMP Monitor With MySQL - Linux

Citrix - Xenserver - Migrate MAC address