Tuesday 8 May 2012

GWOS: checking memory HPUX

What is GWOS:  http://www.gwos.com/
Note: GWOS (Groundwork Open source) running on RHEL 5.6


 dem it, i spent almost 2 days to settle this up.

so finally i solved it by download the plugin from http://exchange.nagios.org/directory/Plugins/Operating-Systems/HP-2DUX/Hp-2Dux-check_memory/details

1: Login to HPUX as nagios user, (please make sure password-less.)
2:  edit the .profile, like this
           # Set up the search paths:
           PATH=$PATH:/usr/sbin/.

3: Copy the plugin into the libexec folder  (please make sure the permission correct)

done for HPUX server.

For part at GWOS

1: Login GWOS > Configuration tab > Command tab >
2: Please make sure below setting for macro and value
      USER1=/usr/local/groundwork/nagios/libexec
      USER17=nagios    
      USER22=libexec

3: click New > choose User1 > and upload the check_by_ssh command
4: add below command , and now the checking memory DONE!! wohooo

      $USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C     "$USER22$/check_memhpux -u -w $ARG1$ -c $ARG2$"



example output:

/usr/local/groundwork/nagios/libexec/check_by_ssh -H xxxx.xxxx.xxxx.xxxx -t 60 -l "nagios" -C "libexec/check_memhpux -u -w 80 -c 90"
Memory OK - 32.4% (5155720 kB) used

No comments:

Post a Comment