Enterprise Control Configuration and Logging
Find a file
Richard Frith-MacDonald aaaa6f242c check for mallinfo in -lmalloc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@35649 72102866-910b-0410-8b05-ffd578937521
2012-10-07 13:48:51 +00:00
ChangeLog bunp version to 1.0 for initial release 2012-10-05 14:51:40 +00:00
Command.m Add gnustep PEN 2012-03-16 11:00:41 +00:00
config.guess Enterprise Control/Configuration/Logging package ... preliminary check in. 2012-02-19 11:59:22 +00:00
config.h.in check for mallinfo in -lmalloc 2012-10-07 13:48:51 +00:00
config.make.in try to make snmp optional 2012-03-09 14:28:00 +00:00
config.sub Enterprise Control/Configuration/Logging package ... preliminary check in. 2012-02-19 11:59:22 +00:00
configure check for mallinfo in -lmalloc 2012-10-07 13:48:51 +00:00
configure.ac check for mallinfo in -lmalloc 2012-10-07 13:48:51 +00:00
Console.m tweaks for allowing registration domain values to be defined 2012-03-16 11:19:17 +00:00
Control.m Add gnustep PEN 2012-03-16 11:00:41 +00:00
COPYING.LESSER Add copyright 2012-02-19 12:53:41 +00:00
EcAlarm.h Add copyright 2012-02-19 12:53:41 +00:00
EcAlarm.m Use well known host name more consistenctly 2012-05-08 16:08:30 +00:00
EcAlarmDestination.h Add copyright 2012-02-19 12:53:41 +00:00
EcAlarmDestination.m Add copyright 2012-02-19 12:53:41 +00:00
EcAlarmSinkSNMP.h Add gnustep PEN 2012-03-16 11:00:41 +00:00
EcAlarmSinkSNMP.m snmp tweaks 2012-03-16 12:07:09 +00:00
EcAlerter.h Add copyright 2012-02-19 12:53:41 +00:00
EcAlerter.m Use well known host name more consistenctly 2012-05-08 16:08:30 +00:00
EcBroadcastProxy.h Add copyright 2012-02-19 12:53:41 +00:00
EcBroadcastProxy.m Add copyright 2012-02-19 12:53:41 +00:00
EcClientI.h Allow class of tools to be overridden with local version. 2012-02-19 14:42:50 +00:00
EcClientI.m Allow class of tools to be overridden with local version. 2012-02-19 14:42:50 +00:00
EcCommand.m fix test against NSNotFound 2012-10-07 13:40:11 +00:00
EcConsole.m Twaek for use of host well known names 2012-10-05 14:40:19 +00:00
EcControl.m Twaek for use of host well known names 2012-10-05 14:40:19 +00:00
EcHost.h Backward compatibility user default name fixes 2012-10-05 11:31:23 +00:00
EcHost.m Backward compatibility user default name fixes 2012-10-05 11:31:23 +00:00
EcLogger.h Add copyright 2012-02-19 12:53:41 +00:00
EcLogger.m Tidy/simplify locking code a little. 2012-07-29 06:32:19 +00:00
EcProcess.h Add action cach reset method and make actions thread-safe 2012-07-05 13:15:27 +00:00
EcProcess.m Twaek for use of host well known names 2012-10-05 14:40:19 +00:00
EcUserDefaults.h Add copyright 2012-02-19 12:53:41 +00:00
EcUserDefaults.m fix error setting domain 2012-02-20 14:00:38 +00:00
GNUmakefile add svn module info 2012-10-05 14:55:26 +00:00
GNUmakefile.postamble add config.h 2012-02-19 16:47:03 +00:00
GNUmakefile.preamble fixup includes 2012-10-07 12:42:06 +00:00
GNUSTEP-MIB.txt Add gnustep PEN 2012-03-16 11:00:41 +00:00
install-sh Enterprise Control/Configuration/Logging package ... preliminary check in. 2012-02-19 11:59:22 +00:00
local.make tweaks for allowing registration domain values to be defined 2012-03-16 11:19:17 +00:00
NSFileHandle+Printf.h Add copyright 2012-02-19 12:53:41 +00:00
NSFileHandle+Printf.m Add copyright 2012-02-19 12:53:41 +00:00
README.SNMP Add gnustep PEN 2012-03-16 11:00:41 +00:00
Terminate.m build Terminate 2012-06-09 05:37:10 +00:00

Here's the sort of thing you might do to set up SNMP support on your
system, assuming that you have net-snmp installed in the normal
locations for something like RedHat Linux.

0. Edit the example GNUSTEP-MIB.txt to contain your own organisation's
   Private Enterprise Number.  This stage is optional, you may use the
   MIB 'as-is' with the GNUstep PEN if you wish.  You only need to use
   an edited version if your organisation wishes to use its own MIB
   with additional features not in the GNUstep one.
   If you are using your own MIB, replace all ocurrances below of
   GNUSTEP-MIB.txt with the name of your own MIB file.

1. install GNUSTEP-MIB.txt in /usr/share/snmp/mibs

2. edit '/etc/sysconfig/snmpd.options' to contain:
   OPTIONS="$OPTIONS -Dgnustep -Lf /var/log/snmpd"
   export OPTIONS
   so that any debug for the gnustep module would be logged
   in /var/log/snmpd

3. edit '/etc/sysconfig/snmptrapd.options' to contain:
   OPTIONS="$OPTIONS -Dgnustep -Lf /var/log/snmptrapd"
   export OPTIONS
   so that any debug for the gnustep module would be logged
   in /var/log/snmptrapd

4. edit /etc/snmp/snmpd.conf to get it to send traps to snmptrapd ...

rwcommunity     public
trap2sink       localhost public

   and to accept agentx connections via tcp ...

agentxsocket    tcp:localhost:705
master          agentx

   having the snmp daemon listening on port 705 for agentx connections is
   essential for the default setup of alarming, but you can use a different
   host and port if you wish (see the EcAlarmSinkSNMP initialisation for
   details).

5. restart with '/etc/rc.d/init.d/snmpd restart'

6. build/install/run the Control server

7. test with snmpwalk ...

To look at EVERYTHING:
snmpwalk -v 1 -c public localhost GNUSTEP-MIB::gnustep

To look at the current alarms table:
snmpwalk -v 1 -c public localhost GNUSTEP-MIB::gnustep.alarms.alarmsTable

To look at the current alarms table in a tabular format (rows of columns) which will be far too wide to view in a normal terminal window:
snmptable -v 1 -c public localhost GNUSTEP-MIB::gnustep.alarms.alarmsTable

To look at the managed objects table:
snmpwalk -v 1 -c public localhost GNUSTEP-MIB::gnustep.objects

You should be able to get the heartbeat poll interval with:
snmpget -v 1 -c public localhost GNUSTEP-MIB::pollHeartBeat.0

You should be able to set the heartbeat poll interval to two minutes with 
snmpset -v 1 -c public localhost GNUSTEP-MIB::pollHeartBeat.0 i 2

You should be able to set the resync flag interval with
snmpset -v 1 -c public localhost GNUSTEP-MIB::resyncFlag.0 i 1
and set it back to normal with
snmpset -v 1 -c public localhost GNUSTEP-MIB::resyncFlag.0 i 0