Network Monitoring Plug-in

Checks for downed interfaces, collisions, errors etc. (Tested: Solaris).
Provided by Cook IT Services

BigBrother-net2

Note: ksh - must be installed

Login as bbuser:

[bbuser@centos6 ~]$ wget https://dl.dropboxusercontent.com/u/21622770/network2-3_5.tar.gz
[bbuser@centos6 ~]$ tar zxvf network2-3_5.tar.gz
network2.sh
[bbuser@centos6 ~]$ rm network2-3_5.tar.gz
[bbuser@centos6 ~]$ cp /home/bbuser/bb19c/etc/bb-bbexttab.DIST /home/bbuser/bb19c/etc/bb-bbexttab (create a bb-bbexttab, where you will add new plug-in entries)
[bbuser@centos6 ~]$ vi /home/bbuser/bb19c/etc/bb-bbexttab

Uncomment everything then create a new line like this:

localhost :  : network2.sh

[root@centos6 ~]$ vi /home/bbuser/bb19c/etc/bbsys.local

Add the following line below:

#
# Start of lines to put in bbsys.local (without the "#")
#
FSTAB="/etc/mtab"      #Original entry: FSTAB="/etc/mnttab" (commonly used by Solaris)
SHARE_TAB="/etc/dfs/sharetab"
IFCONFIG="/sbin/ifconfig"
NETSTAT="/bin/netstat"	#Original entry NETSTAT="/usr/bin/netstat"
YPWHICH="/usr/bin/ypwhich"
LDAP_CACHEMGR="/usr/lib/ldap/ldap_cachemgr"
export FSTAB SHARE_TAB IFCONFIG NETSTAT YPWHICH LDAP_CACHEMGR
#
# End of lines to put in bbsys.local
#

[bbuser@centos6 ~]$ mv network2.sh /home/bbuser/bb19c/ext/
[bbuser@centos6 ~]$ chmod 775 /home/bbuser/bb19c/ext/network2.sh

———————————————————————-

Memory Usage Monitoring Plug-in

Extension script for monitoring memory and swap on Unix- and Windows-based Big Brother clients. Based on bb-memory 2.0.1, with additional improvements from various people and enhanced Win32 support. 3.1 fixes a bug in HP-UX memory support, and adds collection of “netstat” data for Win32 systems.

BigBrother-Memory

[bbuser@centos6 ~]$ wget https://dl.dropboxusercontent.com/u/21622770/bb-memory-3.1.tar.gz

[bbuser@centos6 ~]$ tar zxvf bb-memory-3.1.tar.gz
bb-memory-3.1/
bb-memory-3.1/bb_memory.exe
bb-memory-3.1/README
bb-memory-3.1/Changes
bb-memory-3.1/bb-memory.sh
bb-memory-3.1/LICENSE.BEN
bb-memory-3.1/netstat-larrd-win32.patch
bb-memory-3.1/INSTALL.UNIX
bb-memory-3.1/source/
bb-memory-3.1/source/hpux/
bb-memory-3.1/source/hpux/Makefile
bb-memory-3.1/source/hpux/bb-hp-memsz.c
bb-memory-3.1/source/win32/
bb-memory-3.1/source/win32/bb_memory.c
bb-memory-3.1/memory.html
bb-memory-3.1/INSTALL.WIN
[bbuser@centos6 ~]$ rm bb-memory-3.1.tar.gz (removed download file)
[bbuser@centos6 ~]$ mv /home/bbuser/bb-memory-3.1/bb-memory.sh /home/bbuser/bb19c/ext
[bbuser@centos6 ~]$ chmod 775 /home/bbuser/bb19c/ext/bb-memory.sh
[bbuser@centos6 ~]$ rm -rf bb-memory-3.1 (Since we will be using only linux/unix script the rest can be deleted)
[bbuser@centos6 ~]$ cp /home/bbuser/bb19c/etc/bb-bbexttab.DIST /home/bbuser/bb19c/etc/bb-bbexttab
[bbuser@centos6 ~]$ vi /home/bbuser/bb19c/etc/bb-bbexttab

localhost :  : bb-memory.sh

Restart BigBrother

———————————————————————-

Inode Monitoring Plug-in

bb-disk.sh from BigBrother 1.9c modified to check inode usage instead of space usage. Uses the same percentage parameters in bb-disktab as bb-disk.sh. Requires GNU df, or at least a df that has the -i option for inodes. Compatible with larrd-0.44.

BigBrother-inode

[bbuser@centos6 ~]$ wget https://dl.dropboxusercontent.com/u/21622770/bb-inode.tar.gz
[bbuser@centos6 ~]$ tar zxvf bb-inode.tar.gz
bb-inode.sh
[bbuser@centos6 ~]$ rm bb-inode.tar.gz
[bbuser@centos6 ~]$ mv /home/bbuser/bb-inode.sh /home/bbuser/bb19c/ext
[bbuser@centos6 ~]$ chmod 775 /home/bbuser/bb19c/ext/bb-inode.sh
[bbuser@centos6 ~]$ vi /home/bbuser/bb19c/etc/bb-bbexttab

localhost :  : bb-inode.sh

There will be an error such as:
bb-inode.sh /bin/sort: open failed: +4: No such file or directory

to resolve this you need to edit this lines:

on line 72:
eval "$DFCMD -i | $EGREP \"$DFUSE\" | $EGREP -v \"$DFEXCLUDE\" | $SORT \"+${DFSORT}\" > $BBTMP/DFOUT.$$"

change to:
eval "$DFCMD -i | $EGREP \"$DFUSE\" | $EGREP -v \"$DFEXCLUDE\" | $SORT \"-k${DFSORT}\" > $BBTMP/DFOUT.$$"

on line 87
wclen1=`eval "$DFCMD | $EGREP \"$DFUSE\" | $EGREP -v \"$DFEXCLUDE\" | $SORT \"+${DFSORT}\" | $WC"`

change to:
wclen1=`eval "$DFCMD | $EGREP \"$DFUSE\" | $EGREP -v \"$DFEXCLUDE\" | $SORT \"-k${DFSORT}\" | $WC"`

[root@centos6 ~]# vi /home/bbuser/bb19c/etc/bbsys.local

Add entry:
DFUSE="^/dev"

to monitor non-local filesystem 

————————————————————————

NTP Monitoring Plug-In

Test NTP. Warns when time drifts too far. Provided by Cook IT Services

BigBrother-ntp

Note: you must have ntp-perl installed

[bbuser@centos6 ~]$ wget https://dl.dropboxusercontent.com/u/21622770/bb-ntp-1_5.sh.gz
[bbuser@centos6 ~]$ gunzip bb-ntp-1_5.sh.gz
[bbuser@centos6 ~]$ mv /home/bbuser/bb-ntp-1_5.sh /home/bbuser/bb19c/ext/bb-ntp.sh
[bbuser@centos6 ~]$ chmod 775 /home/bbuser/bb19c/ext/bb-ntp.sh
[bbuser@centos6 ~]$ vi /home/bbuser/bb19c/etc/bb-bbexttab

localhost :  : bb-ntp.sh

[root@centos6 ~]# vi /home/bbuser/bb19c/etc/bbsys.local

#
# Start of lines to put in bbsys.local
#
NTPTRACE="/usr/sbin/ntptrace"
NTPTRACE_HOST="-n "
export NTPTRACE NTPTRACE_OPT
#
# End of lines to put in bbsys.local
#

————————————————————————–

More to update…

Advertisements
Comments
  1. Isam says:

    thank you

  2. Roshan says:

    This is great work…!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s