Problems with monitoring processes on Solaris 9
James Mckenzie <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <7819215.1158607042511.JavaMail.root@elwamui-royal.atl.sa.earthlink.net> |
Per instructions received on the list and the readme.solaris file, I built NetSNMP 5.3.1 for Solaris. However, I have problems when I attempt to monitor processes using the instructions and have added the snmp.conf and snmp.log files here. James McKenzie ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
snmpd.conf
(text/plain, 4.8 KB)
########################################################################### # # snmpd.conf # # - created by the snmpconf configuration program # ########################################################################### # SECTION: System Information Setup # # This section defines some of the information reported in # the "system" mib group in the mibII tree. # syslocation: The [typically physical] location of the system. # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysLocation.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: location_string syslocation "TIC Raised Floor" # syscontact: The contact information for the administrator # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysContact.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: contact_string syscontact "System Administrator" # sysservices: The proper value for the sysServices object. # arguments: sysservices_number sysservices 0 ########################################################################### # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent. # rocommunity: a SNMPv1/SNMPv2c read-only access community name # arguments: community [default|hostname|network/bits] [oid] rocommunity public # rwcommunity: a SNMPv1/SNMPv2c read-write access community name # arguments: community [default|hostname|network/bits] [oid] rwcommunity private 127.0.0.1 ########################################################################### # SECTION: Trap Destinations # # Here we define who the agent will send traps to. # trapsink: A SNMPv1 trap receiver # arguments: host [community] [portnum] trapsink xxx.xxx.xxx.50 public trapsink xxx.xxx.xxx.26 public # trap2sink: A SNMPv2c trap receiver # arguments: host [community] [portnum] trap2sink xxx.xxx.xxx.50 public trap2sink xxx.xxx.xxx.26 public # informsink: A SNMPv2c inform (acknowledged trap) receiver # arguments: host [community] [portnum] informsink xxx.xxx.xxx.50 informsink xxx.xxx.xxx.26 # trapcommunity: Default trap sink community to use # arguments: community-string trapcommunity public # authtrapenable: Should we send traps when authentication failures occur # arguments: 1 | 2 (1 = yes, 2 = no) authtrapenable 1 ########################################################################### # SECTION: Monitor Various Aspects of the Running Host # # The following check up on various aspects of a host. # proc: Check for processes that should be running. # proc NAME [MAX=0] [MIN=0] # # NAME: the name of the process to check for. It must match # exactly (ie, http will not find httpd processes). # MAX: the maximum number allowed to be running. Defaults to 0. # MIN: the minimum number to be running. Defaults to 0. # # The results are reported in the prTable section of the UCD-SNMP-MIB tree # Special Case: When the min and max numbers are both 0, it assumes # you want a max of infinity and a min of 1. proc httpd 10 2 proc arserverd 2 1 proc armonitor 2 1 proc arsvcdsp 2 1 monitor -r 30 -i -o prNames.1 -o prErrMessage.1 "Process httpd" prErrorFlag.1 !=0 monitor -r 30 -i -o prNames.2 -o prErrMessage.2 "Process ARS Server" prErrorFlag.2 !=0 monitor -r 30 -i -o prNames.3 -o prErrMessage.3 "Process ARS Monitor" prErrorFlag.3 !=0 monitor -r 30 -i -o prNames.4 -o prErrMessage.4 "Process ARS Approval" prErrorFlag.4 !=0 # disk: Check for disk space usage of a partition. # The agent can check the amount of available disk space, and make # sure it is above a set limit. # # disk PATH [MIN=100000] # # PATH: mount path to the disk in question. # MIN: Disks with space below this value will have the Mib's errorFlag set. # Can be a raw byte value or a percentage followed by the % # symbol. Default value = 100000. # # The results are reported in the dskTable section of the UCD-SNMP-MIB tree disk / 90% disk /opt 90% disk /var/tmp 70% # load: Check for unreasonable load average values. # Watch the load average levels on the machine. # # load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0] # # 1MAX: If the 1 minute load average is above this limit at query # time, the errorFlag will be set. # 5MAX: Similar, but for 5 min average. # 15MAX: Similar, but for 15 min average. # # The results are reported in the laTable section of the UCD-SNMP-MIB tree load 5 3 2 load 5 3 2
snmpd.log
(application/octet-stream, 3.8 KB)
/usr/local/share/snmp/snmpd.conf: line 129: Warning: Couldn't find device for disk /opt /usr/local/share/snmp/snmpd.conf: line 130: Warning: Couldn't find device for disk /var/tmp /usr/local/share/snmp/snmpd.conf: line 110: Error: Already have an entry for this process. /usr/local/share/snmp/snmpd.conf: line 111: Error: Already have an entry for this process. /usr/local/share/snmp/snmpd.conf: line 112: Error: Already have an entry for this process. /usr/local/share/snmp/snmpd.conf: line 113: Error: Already have an entry for this process. /usr/local/share/snmp/snmpd.conf: line 129: Warning: Couldn't find device for disk /opt /usr/local/share/snmp/snmpd.conf: line 130: Warning: Couldn't find device for disk /var/tmp net-snmp: 4 error(s) in config file(s) snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session NET-SNMP version 5.3.1 Reconfiguring daemon NET-SNMP version 5.3.1 restarted /usr/local/share/snmp/snmpd.conf: line 114: Error: You must specify a default user name using the agentSecName token /usr/local/share/snmp/snmpd.conf: line 115: Error: You must specify a default user name using the agentSecName token /usr/local/share/snmp/snmpd.conf: line 116: Error: You must specify a default user name using the agentSecName token /usr/local/share/snmp/snmpd.conf: line 117: Error: You must specify a default user name using the agentSecName token /usr/local/share/snmp/snmpd.conf: line 133: Warning: Couldn't find device for disk /opt /usr/local/share/snmp/snmpd.conf: line 134: Warning: Couldn't find device for disk /var/tmp /usr/local/share/snmp/snmpd.conf: line 110: Error: Already have an entry for this process. /usr/local/share/snmp/snmpd.conf: line 111: Error: Already have an entry for this process. /usr/local/share/snmp/snmpd.conf: line 112: Error: Already have an entry for this process. /usr/local/share/snmp/snmpd.conf: line 113: Error: Already have an entry for this process. /usr/local/share/snmp/snmpd.conf: line 114: Error: You must specify a default user name using the agentSecName token /usr/local/share/snmp/snmpd.conf: line 115: Error: You must specify a default user name using the agentSecName token /usr/local/share/snmp/snmpd.conf: line 116: Error: You must specify a default user name using the agentSecName token /usr/local/share/snmp/snmpd.conf: line 117: Error: You must specify a default user name using the agentSecName token /usr/local/share/snmp/snmpd.conf: line 133: Warning: Couldn't find device for disk /opt /usr/local/share/snmp/snmpd.conf: line 134: Warning: Couldn't find device for disk /var/tmp net-snmp: 12 error(s) in config file(s) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) error on subcontainer '' insert (-1) snmpd: send_trap: Cannot send V1 PDU on V2 session (Sub-id not found: (top) -> prErrMessage) snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session snmpd: send_trap: Cannot send V1 PDU on V2 session