Cricket for Monitoring UNIX

From: Srinivasa Cherukuri (SCherukuri@yak.ca)
Date: Tue Oct 04 2005 - 14:44:29 EDT


We have installed cricket (http://cricket.sourceforge.net/) on one of
our servers (SunOS 5.9 Generic_112233-11 sun4u sparc SUNW,UltraAX-i2)
and monitor a small group of production servers. Most of them are
Solaris 8 & 9 (x 86 & SPARC) and few are Linux (Mostly Red Hat). Now we
want to attach three more servers whose details are:

SunOS ******* 1 5.10 Generic_118844-08 i86pc i386 i86pc
SunOS ******* 5.10 Generic sun4u SPARC SUNW,Sun-Fire-V240
Linux ******* 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386
GNU/Linux

The standard practice so far is to stop Solaris default SNMP and install
net-snmp (http://net-snmp.sourceforge.net/) which makes the job easier.
The standard procedure that we are following so far is:

* Configure and start an SNMP daemon up and running on the server
you want cricket to monitor preferably NET-SNMP (www.net-snmp.org), it's
used by Redhat Linux and download a Solaris package from Sunfreeware.
The SNMP read string must be set to $On1xSNMP$.

* Login to the cricket server as root and add an entry to
/etc/hosts
      ***.**.**.** <hostname>

* su to the cricket user and create a directory for the server in
the cricket-config/systemperf.The name of the file must match with that
in /etc/hosts file.

* Cd to the directory and run the cricket discovery command
redirecting the output to a file called Targets.

* Cd <directory>

* /export/home/cricket/cricket/util/systemPerfConf.pl -host
<servername> --community \<community-string>\ --auto > Targets

At this time if you get an error like "[04-OCT-2005 16:25:30*] No
response from "<hostname>" [***.**.**.***].161 it means that SNMP agent
is either down or community string is wrong.

* Then recompile cricket's tree to load the new target information
by running
       /export/home/cricket/cricket/compile

Now the problem is after following the above procedure I am getting the
error as:

$ /export/home/cricket/cricket/util/systemPerfConf.pl --host yakdev1
--community \$On1xSNMP$\ --auto > Targets

Specify either --auto or --include=...
usage: /export/home/cricket/cricket/util/systemPerfConf.pl --host <unix
host> [--community <community>] [options]
    --host: name of host to be monitored
    --community: community string for host (Default: public)
    --help: prints this help
    --auto: try to include all possible monitorable items
    --include=... include only specific monitorable items (comma
separated
                   list):
       system system users and processes
       cpu CPU usage
       storage disk space
       diskio disk I/O stats
    --skip=... comma separated list of regular expressions to skip
                   devices you don't want monitored

An example:
    /export/home/cricket/cricket/util/systemPerfConf.pl --host
mailserver --auto --skip='diskio_[mf]d,disk_dos'
       Autodetect all MIBs on mailserver, but skip diskio stats for
       md and fd devices, and skip any dos partitions
    /export/home/cricket/cricket/util/systemPerfConf.pl --host
fileserver --include='cpu,storage'
       Only collect CPU usage and disk space on host "fileserver".

I am sure net-snmp is running on all the three servers as they are Linux
and Solaris 10 which by default will have net-snmp. I ensured net-snmp
running on the above three servers (Am I correct?)

$ ps -ef | grep snmpd
    root 616 1 0 Sep 08 ? 0:16 /usr/sfw/sbin/snmpd
    root 6287 1 0 13:37:47 ? 0:00 /usr/lib/snmp/snmpdx
-y -c /etc/snmp/conf
    user1 6329 6322 0 14:23:31 pts/5 0:00 grep snmpd

-bash-3.00$ ps -ef | grep snmpd
    root 475 1 0 Sep 02 ? 0:01 /usr/lib/snmp/snmpdx
-y -c /etc/snmp/conf
    root 568 1 0 Sep 02 ? 1:16 /usr/sfw/sbin/snmpd

[srao@ivmsdev srao]$ ps -ef | grep snmpd
root 8124 1 0 Oct03 ? 00:01:35 /usr/sbin/snmpd -s -l
/dev/null -P /var/run/snmpd -a
user1 10793 10752 0 14:24 pts/1 00:00:00 grep snmpd

I really exhausted with various syntax and your help is appreciated.

Thanks in advance and I will summarize.

Srinivasa Rao Cherukuri
Yak Communications (Canada) Inc
E-Mail: scherukuri@yak.ca
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:32:08 EDT