stopsrc issued Thu Dec 2 JST 2010 DPI sub-agent (AIX Enterprise MIB Support subagent): connected, ready to receive requests...After we confirmed the SNMP access and response, we can start configuring Nagios.That is, what you give as an example to question 2 is exactly what you want to do, unless I'm totally missing the point of the question. I have a generic profile that I install on every machine I work on that looks like this, to accommodate for potentially-missing directories: export PATH=/opt/bin:/usr/local/bin:/usr/contrib/bin:/bin:/usr/bin:/usr/sbin:/usr/bin/X11 # add optional items to the path for bindir in $HOME/local/bin $HOME/bin; do if [ -d $bindir ]; then PATH=$PATH:$ fi done Inclusion basically incorporates the "called" script in the "calling" script. So it's effective inside the "calling" script or program.
at the end (to be searched after all other directories, in case there is a program by the same name in multiple directories) or at the beginning (to be searched before all other directories). gets built by many different components, you might end up with duplicate entries.See How to add home directory path to be discovered by Unix which command?and Remove duplicate $PATH entries with awk command to avoid adding duplicates or remove them. PATH is just an environment variable, and if you want to add to the PATH, you have to rebuild the variable with exactly the contents you want.IBM's AIX SNMP dameon's configuration file is /etc/snmpdv3Important configuration settings to change are: VACM_VIEW default View 220.127.116.11.18.104.22.168.22.214.171.124 - included - VACM_VIEW default View 126.96.36.199.188.8.131.52.191.1.6 - included - # exclude snmpv3 related MIBs from the default view VACM_VIEW default View snmp Modules - excluded - VACM_VIEW default View 184.108.40.206.220.127.116.11.4 - included - VACM_VIEW default View 18.104.22.168.22.214.171.124.5 - included - VACM_ACCESS group1 - - no Auth No Priv SNMPv1 default View - default View - NOTIFY notify1 traptag trap - TARGET_ADDRESS Target1 UDP 127.0.0.1 traptag trapparms1 - - - TARGET_PARAMETERS trapparms1 SNMPv1 SNMPv1 public no Auth No Priv - # The line below only sets the community string, but allows access # from any IP using the 0.0.0.0 (IP) and 0.0.0.0 (netmask) wildcard #COMMUNITY SECro SECro no Auth No Priv 0.0.0.0 0.0.0.0 - # If we want to restrict access by IP, we need to allow localhost # communication with the SNMP subagents (aixmibd, snmpmibd, ...) COMMUNITY SECro SECro no Auth No Priv 127.0.0.1 255.255.255.255 - # Here we restrict the SNMP access to the Nagios server IP address COMMUNITY SECro SECro no Auth No Priv 192.168.1.34 255.255.255.255 - DEFAULT_SECURITY no-access - - logging file=/usr/tmp/snmpdv3enabled logging size=100000 level=0 smux 126.96.36.199.188.8.131.52.184.108.40.206 gated_password # gated smux 220.127.116.11.18.104.22.168.22.214.171.124.1 muxatmd_password #muxatmd We typically start all three AIX SNMP MIB subagents on our systems: aixmibd, hostmibd and snmpmibd.These agents provide additional system data to be queried through SNMP.