UJP - 技術情報2 Backup : Diff of MacOSX/HigiSierra/snmpd

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

3: 2019-05-27 (Mon) 21:08:51 nobuaki source Edit Backup No.3 as current. Cur: 2020-08-16 (Sun) 02:12:00 nobuaki source Edit
Line 42: Line 42:
 </plist>  </plist>
 $  $
- Disabled担っているので,起動してないのかな.+ Disabledになっているので,起動してないのかな.
 LaunchDaemonでSNMPDをroot権限で起動する.  LaunchDaemonでSNMPDをroot権限で起動する.
 $ sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist🆑  $ sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist🆑
Line 134: Line 134:
 $ sudo /usr/bin/snmpconf -i🆑  $ sudo /usr/bin/snmpconf -i🆑
 Password:🆑  Password:🆑
 + 
 The following installed configuration files were found:  The following installed configuration files were found:
 + 
   1:  ./snmpd.conf    1:  ./snmpd.conf
   2:  /etc/snmp/snmpd.conf🈁    2:  /etc/snmp/snmpd.conf🈁
 + 
 Would you like me to read them in?  Their content will be merged with the  Would you like me to read them in?  Their content will be merged with the
 output files created by this session.  output files created by this session.
 + 
 Valid answer examples: "all", "none","3","1,2,5"  Valid answer examples: "all", "none","3","1,2,5"
 + 
 Read in which (default = all):🈁  Read in which (default = all):🈁
Line 151: Line 151:
 Read in which (default = all): none🆑  Read in which (default = all): none🆑
 + 
 I can create the following types of configuration files for you.  I can create the following types of configuration files for you.
 Select the file type you wish to create:  Select the file type you wish to create:
 (you can create more than one as you run this program)  (you can create more than one as you run this program)
 + 
   1:  snmp.conf    1:  snmp.conf
   2:  snmptrapd.conf    2:  snmptrapd.conf
   3:  snmpd.conf    3:  snmpd.conf
 + 
 Other options: quit  Other options: quit
 + 
 Select File:  Select File:
Line 167: Line 167:
 Select File: 3🆑  Select File: 3🆑
 + 
 The configuration information which can be put into snmpd.conf is divided  The configuration information which can be put into snmpd.conf is divided
 into sections.  Select a configuration section for snmpd.conf  into sections.  Select a configuration section for snmpd.conf
 that you wish to create:  that you wish to create:
 + 
   1:  Agent Operating Mode    1:  Agent Operating Mode
   2:  Monitor Various Aspects of the Running Host    2:  Monitor Various Aspects of the Running Host
Line 178: Line 178:
   5:  Extending the Agent    5:  Extending the Agent
   6:  Access Control Setup    6:  Access Control Setup
 + 
 Other options: finished🈁  Other options: finished🈁
 + 
 Select section:  Select section:
Line 186: Line 186:
 Select section: finished🆑  Select section: finished🆑
 + 
 I can create the following types of configuration files for you.  I can create the following types of configuration files for you.
 Select the file type you wish to create:  Select the file type you wish to create:
 (you can create more than one as you run this program)  (you can create more than one as you run this program)
 + 
   1:  snmp.conf    1:  snmp.conf
   2:  snmptrapd.conf    2:  snmptrapd.conf
   3:  snmpd.conf    3:  snmpd.conf
 + 
 Other options: quit🈁  Other options: quit🈁
 + 
 Select File:  Select File:
   
Line 202: Line 202:
 Select File: quit🆑  Select File: quit🆑
 + 
 Error: An snmpd.conf file already exists in this directory.  Error: An snmpd.conf file already exists in this directory.
 + 
 'overwrite', 'skip', 'rename' or 'append'? :  'overwrite', 'skip', 'rename' or 'append'? :
Line 210: Line 210:
 'overwrite', 'skip', 'rename' or 'append'? : overwrite🆑  'overwrite', 'skip', 'rename' or 'append'? : overwrite🆑
- +  
 + 
 The following files were created:  The following files were created:
 + 
   snmpd.conf installed in /usr/share/snmp    snmpd.conf installed in /usr/share/snmp
 + 
 $  $
 ファイルができたようなので,中身を確認.  ファイルができたようなので,中身を確認.
Line 225: Line 225:
 #  - created by the snmpconf configuration program  #  - created by the snmpconf configuration program
 #  #
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
 + 
 $  $
 何も設定してないので,何もないね.  何も設定してないので,何もないね.
Line 252: Line 252:
 $ sudo /usr/bin/snmpconf -i🆑  $ sudo /usr/bin/snmpconf -i🆑
 Password:🆑  Password:🆑
 + 
 The following installed configuration files were found:  The following installed configuration files were found:
 + 
   1:  /etc/snmp/snmpd.conf    1:  /etc/snmp/snmpd.conf
   2:  /usr/share/snmp/snmpd.conf    2:  /usr/share/snmp/snmpd.conf
 + 
 Would you like me to read them in?  Their content will be merged with the  Would you like me to read them in?  Their content will be merged with the
 output files created by this session.  output files created by this session.
 + 
 Valid answer examples: "all", "none","3","1,2,5"  Valid answer examples: "all", "none","3","1,2,5"
 + 
 Read in which (default = all):  Read in which (default = all):
 2番の設定をマージするので2を選択.  2番の設定をマージするので2を選択.
 Read in which (default = all): 2🆑  Read in which (default = all): 2🆑
 + 
 I can create the following types of configuration files for you.  I can create the following types of configuration files for you.
 Select the file type you wish to create:  Select the file type you wish to create:
 (you can create more than one as you run this program)  (you can create more than one as you run this program)
 + 
   1:  snmptrapd.conf    1:  snmptrapd.conf
   2:  snmp.conf    2:  snmp.conf
   3:  snmpd.conf    3:  snmpd.conf
 + 
 Other options: quit  Other options: quit
 + 
 Select File:  Select File:
 3番を選択.  3番を選択.
 Select File: 3🆑  Select File: 3🆑
 + 
 The configuration information which can be put into snmpd.conf is divided  The configuration information which can be put into snmpd.conf is divided
 into sections.  Select a configuration section for snmpd.conf  into sections.  Select a configuration section for snmpd.conf
 that you wish to create:  that you wish to create:
 + 
   1:  Agent Operating Mode    1:  Agent Operating Mode
   2:  Monitor Various Aspects of the Running Host    2:  Monitor Various Aspects of the Running Host
Line 293: Line 293:
   5:  Extending the Agent    5:  Extending the Agent
   6:  Access Control Setup    6:  Access Control Setup
 + 
 Other options: finished  Other options: finished
 + 
 Select section:  Select section:
Line 301: Line 301:
 Select section: 4🆑  Select section: 4🆑
 + 
 Section: System Information Setup  Section: System Information Setup
 Description:  Description:
   This section defines some of the information reported in    This section defines some of the information reported in
   the "system" mib group in the mibII tree.    the "system" mib group in the mibII tree.
 + 
 Select from:  Select from:
 + 
   1:  The [typically physical] location of the system.🈁    1:  The [typically physical] location of the system.🈁
   2:  The contact information for the administrator    2:  The contact information for the administrator
   3:  The proper value for the sysServices object.    3:  The proper value for the sysServices object.
 + 
 Other options: finished, list  Other options: finished, list
 + 
 Select section:  Select section:
Line 322: Line 322:
 Select section: 1🆑  Select section: 1🆑
 + 
 Configuring: syslocation  Configuring: syslocation
 Description:  Description:
Line 332: Line 332:
     the variable.      the variable.
     arguments:  location_string      arguments:  location_string
 + 
 The location of the system:  The location of the system:
Line 338: Line 338:
 The location of the system: BCP🆑  The location of the system: BCP🆑
 + 
 Finished Output: syslocation  BCP🈁  Finished Output: syslocation  BCP🈁
 + 
 Section: System Information Setup  Section: System Information Setup
 Description:  Description:
   This section defines some of the information reported in    This section defines some of the information reported in
   the "system" mib group in the mibII tree.    the "system" mib group in the mibII tree.
 + 
 Select from:  Select from:
 + 
   1:  The [typically physical] location of the system.    1:  The [typically physical] location of the system.
   2:  The contact information for the administrator🈁    2:  The contact information for the administrator🈁
   3:  The proper value for the sysServices object.    3:  The proper value for the sysServices object.
 + 
 Other options: finished, list  Other options: finished, list
 + 
 Select section:  Select section:
Line 361: Line 361:
 Select section: 2🆑  Select section: 2🆑
 + 
 Configuring: syscontact  Configuring: syscontact
 Description:  Description:
Line 371: Line 371:
     the variable.      the variable.
     arguments:  contact_string      arguments:  contact_string
 + 
 The contact information:  The contact information:
Line 377: Line 377:
 The contact information: 管理者メールアドレス  The contact information: 管理者メールアドレス
 + 
 Finished Output: syscontact  管理者メールアドレス  Finished Output: syscontact  管理者メールアドレス
 + 
 Section: System Information Setup  Section: System Information Setup
 Description:  Description:
   This section defines some of the information reported in    This section defines some of the information reported in
   the "system" mib group in the mibII tree.    the "system" mib group in the mibII tree.
 + 
 Select from:  Select from:
 + 
   1:  The [typically physical] location of the system.    1:  The [typically physical] location of the system.
   2:  The contact information for the administrator    2:  The contact information for the administrator
   3:  The proper value for the sysServices object.🈁    3:  The proper value for the sysServices object.🈁
 + 
 Other options: finished, list  Other options: finished, list
 + 
 Select section:  Select section:
Line 400: Line 400:
 Select section: 3🆑  Select section: 3🆑
 + 
 Configuring: sysservices  Configuring: sysservices
 Description:  Description:
   The proper value for the sysServices object.    The proper value for the sysServices object.
     arguments:  sysservices_number      arguments:  sysservices_number
 + 
 does this host offer physical services (eg, like a repeater) [answer 0 or 1]:🈁  does this host offer physical services (eg, like a repeater) [answer 0 or 1]:🈁
Line 425: Line 425:
 Finished Output: sysservices 76🈁  Finished Output: sysservices 76🈁
 + 
 Section: System Information Setup  Section: System Information Setup
 Description:  Description:
   This section defines some of the information reported in    This section defines some of the information reported in
   the "system" mib group in the mibII tree.    the "system" mib group in the mibII tree.
 + 
 Select from:  Select from:
 + 
   1:  The [typically physical] location of the system.    1:  The [typically physical] location of the system.
   2:  The contact information for the administrator    2:  The contact information for the administrator
   3:  The proper value for the sysServices object.    3:  The proper value for the sysServices object.
 + 
 Other options: finished, list  Other options: finished, list
 + 
 Select section:  Select section:
Line 450: Line 450:
   syscontact  管理者メールアドレス🈁    syscontact  管理者メールアドレス🈁
   sysservices 76🈁    sysservices 76🈁
 + 
 Section: System Information Setup  Section: System Information Setup
 Description:  Description:
   This section defines some of the information reported in    This section defines some of the information reported in
   the "system" mib group in the mibII tree.    the "system" mib group in the mibII tree.
 + 
 Select from:  Select from:
 + 
   1:  The [typically physical] location of the system.    1:  The [typically physical] location of the system.
   2:  The contact information for the administrator    2:  The contact information for the administrator
   3:  The proper value for the sysServices object.    3:  The proper value for the sysServices object.
 + 
 Other options: finished, list  Other options: finished, list
 + 
 Select section:  Select section:
Line 469: Line 469:
 Select section: finished🆑  Select section: finished🆑
 + 
 The configuration information which can be put into snmpd.conf is divided  The configuration information which can be put into snmpd.conf is divided
 into sections.  Select a configuration section for snmpd.conf  into sections.  Select a configuration section for snmpd.conf
 that you wish to create:  that you wish to create:
 + 
   1:  Agent Operating Mode    1:  Agent Operating Mode
   2:  Monitor Various Aspects of the Running Host    2:  Monitor Various Aspects of the Running Host
Line 480: Line 480:
   5:  Extending the Agent    5:  Extending the Agent
   6:  Access Control Setup    6:  Access Control Setup
 + 
 Other options: finished  Other options: finished
 + 
 Select section: finished🆑  Select section: finished🆑
 + 
 I can create the following types of configuration files for you.  I can create the following types of configuration files for you.
 Select the file type you wish to create:  Select the file type you wish to create:
 (you can create more than one as you run this program)  (you can create more than one as you run this program)
 + 
   1:  snmptrapd.conf    1:  snmptrapd.conf
   2:  snmpd.conf    2:  snmpd.conf
   3:  snmp.conf    3:  snmp.conf
 + 
 Other options: quit🆑  Other options: quit🆑
 + 
 Select File: quit  Select File: quit
- +  
 + 
 The following files were created:  The following files were created:
 + 
   snmpd.conf installed in /usr/share/snmp    snmpd.conf installed in /usr/share/snmp
 $  $
Line 511: Line 511:
 #  - created by the snmpconf configuration program  #  - created by the snmpconf configuration program
 #  #
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
 + 
 ###########################################################################  ###########################################################################
 # SECTION: System Information Setup  # SECTION: System Information Setup
Line 525: Line 525:
 #  This section defines some of the information reported in  #  This section defines some of the information reported in
 #  the "system" mib group in the mibII tree.  #  the "system" mib group in the mibII tree.
 + 
 # syslocation: The [typically physical] location of the system.  # syslocation: The [typically physical] location of the system.
 #  Note that setting this value here means that when trying to  #  Note that setting this value here means that when trying to
Line 533: Line 533:
 #  the variable.  #  the variable.
 #  arguments:  location_string  #  arguments:  location_string
 + 
 syslocation  BCP  syslocation  BCP
 + 
 # syscontact: The contact information for the administrator  # syscontact: The contact information for the administrator
 #  Note that setting this value here means that when trying to  #  Note that setting this value here means that when trying to
Line 543: Line 543:
 #  the variable.  #  the variable.
 #  arguments:  contact_string  #  arguments:  contact_string
 + 
 syscontact  管理者メールアドレス  syscontact  管理者メールアドレス
 + 
 # sysservices: The proper value for the sysServices object.  # sysservices: The proper value for the sysServices object.
 #  arguments:  sysservices_number  #  arguments:  sysservices_number
 + 
 sysservices 76  sysservices 76
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
 + 
 $  $
Line 570: Line 570:
 $ sudo /usr/bin/snmpconf -i🆑  $ sudo /usr/bin/snmpconf -i🆑
 Password:🆑  Password:🆑
 + 
 The following installed configuration files were found:  The following installed configuration files were found:
 + 
   1:  /etc/snmp/snmpd.conf    1:  /etc/snmp/snmpd.conf
   2:  /usr/share/snmp/snmpd.conf🈁    2:  /usr/share/snmp/snmpd.conf🈁
 + 
 Would you like me to read them in?  Their content will be merged with the  Would you like me to read them in?  Their content will be merged with the
 output files created by this session.  output files created by this session.
 + 
 Valid answer examples: "all", "none","3","1,2,5"  Valid answer examples: "all", "none","3","1,2,5"
 + 
 Read in which (default = all): 2🆑  Read in which (default = all): 2🆑
 + 
 I can create the following types of configuration files for you.  I can create the following types of configuration files for you.
 Select the file type you wish to create:  Select the file type you wish to create:
 (you can create more than one as you run this program)  (you can create more than one as you run this program)
 + 
   1:  snmp.conf    1:  snmp.conf
   2:  snmptrapd.conf    2:  snmptrapd.conf
   3:  snmpd.conf🈁    3:  snmpd.conf🈁
 + 
 Other options: quit  Other options: quit
 + 
 Select File: 3🆑  Select File: 3🆑
 + 
 The configuration information which can be put into snmpd.conf is divided  The configuration information which can be put into snmpd.conf is divided
 into sections.  Select a configuration section for snmpd.conf  into sections.  Select a configuration section for snmpd.conf
 that you wish to create:  that you wish to create:
 + 
   1:  Agent Operating Mode    1:  Agent Operating Mode
   2:  Monitor Various Aspects of the Running Host🈁    2:  Monitor Various Aspects of the Running Host🈁
Line 605: Line 605:
   5:  Extending the Agent    5:  Extending the Agent
   6:  Access Control Setup    6:  Access Control Setup
 + 
 Other options: finished  Other options: finished
 + 
 Select section: 2🆑  Select section: 2🆑
 + 
 Section: Monitor Various Aspects of the Running Host  Section: Monitor Various Aspects of the Running Host
 Description:  Description:
   The following check up on various aspects of a host.    The following check up on various aspects of a host.
 + 
 Select from:  Select from:
 + 
   1:  Check for processes that should be running.🈁    1:  Check for processes that should be running.🈁
   2:  Check for disk space usage of a partition.    2:  Check for disk space usage of a partition.
   3:  Check for unreasonable load average values.    3:  Check for unreasonable load average values.
   4:  Check on the size of a file.    4:  Check on the size of a file.
 + 
 Other options: finished, list  Other options: finished, list
 + 
 Select section:  Select section:
Line 632: Line 632:
 Select section: 1🆑  Select section: 1🆑
 + 
 Configuring: proc🈁  Configuring: proc🈁
 Description:  Description:
   Check for processes that should be running.    Check for processes that should be running.
       proc NAME [MAX=0] [MIN=0]        proc NAME [MAX=0] [MIN=0]
 + 
       NAME:  the name of the process to check for.  It must match        NAME:  the name of the process to check for.  It must match
             exactly (ie, http will not find httpd processes).              exactly (ie, http will not find httpd processes).
       MAX:  the maximum number allowed to be running.  Defaults to 0.        MAX:  the maximum number allowed to be running.  Defaults to 0.
       MIN:  the minimum number 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      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      Special Case:  When the min and max numbers are both 0, it assumes
     you want a max of infinity and a min of 1.      you want a max of infinity and a min of 1.
 + 
 Name of the process you want to check on:  Name of the process you want to check on:
Line 655: Line 655:
 Maximum number of processes named 'smbd' that should be running [default = 0]:🆑  Maximum number of processes named 'smbd' that should be running [default = 0]:🆑
 Minimum number of processes named 'smbd' that should be running [default = 0]:🆑  Minimum number of processes named 'smbd' that should be running [default = 0]:🆑
 + 
 Finished Output: proc  smbd  Finished Output: proc  smbd
 + 
 Section: Monitor Various Aspects of the Running Host  Section: Monitor Various Aspects of the Running Host
 Description:  Description:
   The following check up on various aspects of a host.    The following check up on various aspects of a host.
 + 
 Select from:  Select from:
 + 
   1:  Check for processes that should be running.    1:  Check for processes that should be running.
   2:  Check for disk space usage of a partition.    2:  Check for disk space usage of a partition.
   3:  Check for unreasonable load average values.    3:  Check for unreasonable load average values.
   4:  Check on the size of a file.    4:  Check on the size of a file.
 + 
 Other options: finished, list  Other options: finished, list
 + 
 Select section:  Select section:
Line 680: Line 680:
 select section: 2🆑  select section: 2🆑
 + 
  Configuring: disk🈁   Configuring: disk🈁
  Description:   Description:
Line 686: Line 686:
     The agent can check the amount of available disk space, and make      The agent can check the amount of available disk space, and make
     sure it is above a set limit.      sure it is above a set limit.
 + 
       disk PATH [MIN=100000]        disk PATH [MIN=100000]
 + 
       PATH:  mount path to the disk in question.        PATH:  mount path to the disk in question.
       MIN:  Disks with space below this value will have the Mib's errorFlag set.        MIN:  Disks with space below this value will have the Mib's errorFlag set.
             Can be a raw integer value (units of kB) or a percentage followed by the %              Can be a raw integer value (units of kB) or a percentage followed by the %
             symbol.  Default value = 100000.              symbol.  Default value = 100000.
 + 
     The results are reported in the dskTable section of the UCD-SNMP-MIB tree      The results are reported in the dskTable section of the UCD-SNMP-MIB tree
 + 
  Enter the mount point for the disk partion to be checked on: /Volumes/RAID0_12TB🆑   Enter the mount point for the disk partion to be checked on: /Volumes/RAID0_12TB🆑
  Enter the minimum amount of space that should be available on /Volumes/RAID0_12TB: 95%🆑   Enter the minimum amount of space that should be available on /Volumes/RAID0_12TB: 95%🆑
 + 
 Finished Output: disk  /Volumes/RAID0_12TB 95%🈁  Finished Output: disk  /Volumes/RAID0_12TB 95%🈁
 + 
 Section: Monitor Various Aspects of the Running Host  Section: Monitor Various Aspects of the Running Host
 Description:  Description:
   The following check up on various aspects of a host.    The following check up on various aspects of a host.
 + 
 Select from:  Select from:
 + 
   1:  Check for processes that should be running.    1:  Check for processes that should be running.
   2:  Check for disk space usage of a partition.    2:  Check for disk space usage of a partition.
   3:  Check for unreasonable load average values.    3:  Check for unreasonable load average values.
   4:  Check on the size of a file.    4:  Check on the size of a file.
 + 
 Other options: finished, list  Other options: finished, list
 + 
 Select section:  Select section:
Line 723: Line 723:
 Select section: 3🆑  Select section: 3🆑
 + 
 Configuring: load  Configuring: load
 Description:  Description:
   Check for unreasonable load average values.    Check for unreasonable load average values.
     Watch the load average levels on the machine.      Watch the load average levels on the machine.
 + 
     load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]      load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
 + 
     1MAX:  If the 1 minute load average is above this limit at query      1MAX:  If the 1 minute load average is above this limit at query
             time, the errorFlag will be set.              time, the errorFlag will be set.
     5MAX:  Similar, but for 5 min average.      5MAX:  Similar, but for 5 min average.
     15MAX:  Similar, but for 15 min average.      15MAX:  Similar, but for 15 min average.
 + 
     The results are reported in the laTable section of the UCD-SNMP-MIB tree      The results are reported in the laTable section of the UCD-SNMP-MIB tree
 + 
 Enter the maximum allowable value for the 1 minute load average: 12🆑  Enter the maximum allowable value for the 1 minute load average: 12🆑
 Enter the maximum allowable value for the 5 minute load average: 8🆑  Enter the maximum allowable value for the 5 minute load average: 8🆑
 Enter the maximum allowable value for the 15 minute load average: 4🆑  Enter the maximum allowable value for the 15 minute load average: 4🆑
 + 
 Finished Output: load  12 8 4🈁  Finished Output: load  12 8 4🈁
 + 
 Section: Monitor Various Aspects of the Running Host  Section: Monitor Various Aspects of the Running Host
 Description:  Description:
   The following check up on various aspects of a host.    The following check up on various aspects of a host.
 + 
 Select from:  Select from:
 + 
   1:  Check for processes that should be running.    1:  Check for processes that should be running.
   2:  Check for disk space usage of a partition.    2:  Check for disk space usage of a partition.
   3:  Check for unreasonable load average values.    3:  Check for unreasonable load average values.
   4:  Check on the size of a file.    4:  Check on the size of a file.
 + 
 Other options: finished, list  Other options: finished, list
 + 
 Select section:  Select section:
Line 767: Line 767:
 Select section: 4🆑  Select section: 4🆑
 + 
 Configuring: file  Configuring: file
 Description:  Description:
Line 773: Line 773:
     Display a files size statistics.      Display a files size statistics.
     If it grows to be too large, report an error about it.      If it grows to be too large, report an error about it.
 + 
     file /path/to/file [maxsize_in_kilobytes]      file /path/to/file [maxsize_in_kilobytes]
 + 
       if maxsize is not specified, assume only size reporting is needed.        if maxsize is not specified, assume only size reporting is needed.
 + 
     The results are reported in the fileTable section of the UCD-SNMP-MIB tree      The results are reported in the fileTable section of the UCD-SNMP-MIB tree
 + 
 Enter the path to the file you wish to monitor: /var/log/system.log🆑  Enter the path to the file you wish to monitor: /var/log/system.log🆑
 Enter the maximum size (in kilobytes) allowable for /var/log/system.log: 30000🆑  Enter the maximum size (in kilobytes) allowable for /var/log/system.log: 30000🆑
 + 
 Finished Output: file  /var/log/system.log 30000  Finished Output: file  /var/log/system.log 30000
 + 
 Section: Monitor Various Aspects of the Running Host  Section: Monitor Various Aspects of the Running Host
 Description:  Description:
   The following check up on various aspects of a host.    The following check up on various aspects of a host.
 + 
 Select from:  Select from:
 + 
   1:  Check for processes that should be running.    1:  Check for processes that should be running.
   2:  Check for disk space usage of a partition.    2:  Check for disk space usage of a partition.
   3:  Check for unreasonable load average values.    3:  Check for unreasonable load average values.
   4:  Check on the size of a file.    4:  Check on the size of a file.
 + 
 Other options: finished, list  Other options: finished, list
 + 
 Select section:  Select section:
Line 812: Line 812:
   load  12 8 4    load  12 8 4
   file  /var/log/system.log 30000    file  /var/log/system.log 30000
 + 
 Section: Monitor Various Aspects of the Running Host  Section: Monitor Various Aspects of the Running Host
 Description:  Description:
   The following check up on various aspects of a host.    The following check up on various aspects of a host.
 + 
 Select from:  Select from:
 + 
   1:  Check for processes that should be running.    1:  Check for processes that should be running.
   2:  Check for disk space usage of a partition.    2:  Check for disk space usage of a partition.
   3:  Check for unreasonable load average values.    3:  Check for unreasonable load average values.
   4:  Check on the size of a file.    4:  Check on the size of a file.
 + 
 Other options: finished, list  Other options: finished, list
Line 829: Line 829:
 Select section: finished🆑  Select section: finished🆑
 + 
 The configuration information which can be put into snmpd.conf is divided  The configuration information which can be put into snmpd.conf is divided
 into sections.  Select a configuration section for snmpd.conf  into sections.  Select a configuration section for snmpd.conf
 that you wish to create:  that you wish to create:
 + 
   1:  Agent Operating Mode    1:  Agent Operating Mode
   2:  Monitor Various Aspects of the Running Host    2:  Monitor Various Aspects of the Running Host
Line 840: Line 840:
   5:  Extending the Agent    5:  Extending the Agent
   6:  Access Control Setup    6:  Access Control Setup
 + 
 Other options: finished🈁  Other options: finished🈁
 + 
 Select section: finished🆑  Select section: finished🆑
 + 
 I can create the following types of configuration files for you.  I can create the following types of configuration files for you.
 Select the file type you wish to create:  Select the file type you wish to create:
 (you can create more than one as you run this program)  (you can create more than one as you run this program)
 + 
   1:  snmp.conf    1:  snmp.conf
   2:  snmptrapd.conf    2:  snmptrapd.conf
   3:  snmpd.conf    3:  snmpd.conf
 + 
 Other options: quit🈁  Other options: quit🈁
 + 
 Select File: quit🆑  Select File: quit🆑
- +  
 + 
 The following files were created:  The following files were created:
 + 
   snmpd.conf installed in /usr/share/snmp🈁    snmpd.conf installed in /usr/share/snmp🈁
 $  $
Line 876: Line 876:
 #  - created by the snmpconf configuration program  #  - created by the snmpconf configuration program
 #  #
- +  
- +  
 + 
 ###########################################################################  ###########################################################################
 # SECTION: Monitor Various Aspects of the Running Host  # SECTION: Monitor Various Aspects of the Running Host
 #  #
 #  The following check up on various aspects of a host.  #  The following check up on various aspects of a host.
 + 
 # proc: Check for processes that should be running.  # proc: Check for processes that should be running.
 #    proc NAME [MAX=0] [MIN=0]  #    proc NAME [MAX=0] [MIN=0]
Line 895: Line 895:
 #  Special Case:  When the min and max numbers are both 0, it assumes  #  Special Case:  When the min and max numbers are both 0, it assumes
 #  you want a max of infinity and a min of 1.  #  you want a max of infinity and a min of 1.
 + 
 proc  smbd🈁  proc  smbd🈁
 + 
 # disk: Check for disk space usage of a partition.  # disk: Check for disk space usage of a partition.
 #  The agent can check the amount of available disk space, and make  #  The agent can check the amount of available disk space, and make
Line 910: Line 910:
 #  #
 #  The results are reported in the dskTable section of the UCD-SNMP-MIB tree  #  The results are reported in the dskTable section of the UCD-SNMP-MIB tree
 + 
 disk  /Volumes/RAID0_12TB 95%🈁  disk  /Volumes/RAID0_12TB 95%🈁
 + 
 # load: Check for unreasonable load average values.  # load: Check for unreasonable load average values.
 #  Watch the load average levels on the machine.  #  Watch the load average levels on the machine.
Line 924: Line 924:
 #  #
 #  The results are reported in the laTable section of the UCD-SNMP-MIB tree  #  The results are reported in the laTable section of the UCD-SNMP-MIB tree
 + 
 load  12 8 4🈁  load  12 8 4🈁
 + 
 # file: Check on the size of a file.  # file: Check on the size of a file.
 #  Display a files size statistics.  #  Display a files size statistics.
Line 936: Line 936:
 #  #
 #  The results are reported in the fileTable section of the UCD-SNMP-MIB tree  #  The results are reported in the fileTable section of the UCD-SNMP-MIB tree
 + 
 file  /var/log/system.log 30000🈁  file  /var/log/system.log 30000🈁
- +  
- +  
- +  
- +  
- +  
 + 
 ###########################################################################  ###########################################################################
 # SECTION: System Information Setup  # SECTION: System Information Setup
Line 949: Line 949:
 #  This section defines some of the information reported in  #  This section defines some of the information reported in
 #  the "system" mib group in the mibII tree.  #  the "system" mib group in the mibII tree.
 + 
 # syslocation: The [typically physical] location of the system.  # syslocation: The [typically physical] location of the system.
 #  Note that setting this value here means that when trying to  #  Note that setting this value here means that when trying to
Line 957: Line 957:
 #  the variable.  #  the variable.
 #  arguments:  location_string  #  arguments:  location_string
 + 
 syslocation  BCP🈁  syslocation  BCP🈁
 + 
 # syscontact: The contact information for the administrator  # syscontact: The contact information for the administrator
 #  Note that setting this value here means that when trying to  #  Note that setting this value here means that when trying to
Line 967: Line 967:
 #  the variable.  #  the variable.
 #  arguments:  contact_string  #  arguments:  contact_string
 + 
 syscontact  管理者メールアドレス  syscontact  管理者メールアドレス
 + 
 # sysservices: The proper value for the sysServices object.  # sysservices: The proper value for the sysServices object.
 #  arguments:  sysservices_number  #  arguments:  sysservices_number
 + 
 sysservices 76🈁  sysservices 76🈁
- +  
- +  
- +  
- +  
- +  
- +  
- +  
- +  
 + 
 $  $
Line 992: Line 992:
 syscontact  管理者メールアドレス  syscontact  管理者メールアドレス
 sysservices 76  sysservices 76
 + 
 proc  smbd  proc  smbd
 disk  /Volumes/RAID0_12TB 95%  disk  /Volumes/RAID0_12TB 95%
Line 998: Line 998:
 load  12 8 4  load  12 8 4
 file  /var/log/system.log 30000  file  /var/log/system.log 30000
 + 
 $  $


Front page   Edit Diff Backup Upload Copy Rename Reload   New Page Page list Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)
Counter: 3067, today: 1, yesterday: 0

広告スペース
Google