We've been using BigBrother for about 10 years, but there's a plan to
move to something better, probably Nagios or one of its' forks.

Nagios 3 increased the text processed from a plugin to 4k, though that
limit is easily changed. However I think it still just displays as
plain ASCII.

HTML markup is used in the output from some of the tests I've written.
BigBrother simply includes the test's output after a '<PRE>' tag. We can
add img's, apply text formatting, or even use tables by first outputting
a </pre>.
NB by default, BigBrother sanitizes some characters like '>' & ';'.

As an example, below is the output of our procs2 test reporting on daemon
processes, i.e. immediate children of init, where the 'R', 'Y' or 'G' at
the beginning of many lines is a red/yellow/green icon, e.g.
  <img src="/gifs/green.gif" /> 0 of gpm were running (expected >=0)
NB I've removed width/height/border attributes above to shorten.

Is something similar possible in Icinga ?

NB associated with the procs2 test, there is a web-page running outside
of BigBrother which summarises the non-green items in the procs2 output
from all servers. This is done by scraping the BigBrother pages, but it
would be nice if
  * the procs2 test could report in a structured format like JSON,
    which the monitoring system would suitably display
  * while something trying to analyse output could retrieve it in that
    structured format without resorting to screen-scraping based on the
    format of a particular test.




NB the summary at top which will make it into an SMS unlike the rest
of the page
---------------------------------
red Sat May 11 16:55:48 2013

Problems with: nginx: master process,untested children


Running as user 'bb' on *****.uq.edu.au under the BigBrother client
  29340: /usr/bin/perl -w /var/bb/bb/ext/bb-procs.pl  [22-Apr-2013 14:57 PM]
  29339: sh -c /var/bb/bb/ext/bb-procs.pl 2>&1

Based on:
  * /var/bb/bb/etc/bb-procs.tab of 10-May-2013 13:52 PM

using host definition for ***.uq.edu.au
  /opt/local/apache/bin/httpd -k start -D***.uq.edu.au;num>=0
  NEWKNOCKD
  ?MYSQLD
  !COMMVAULT
  !LLDPD
  !SELINUX
  HOST-DEF:WSA-NGINX

NEWKNOCKD
  /usr/sbin/knockd -d;num=1

MYSQLD
  /bin/sh /usr/bin/mysqld_safe;num=1

COMMVAULT
  regex:/opt/(hds_simpana)/Base/cvfwd;num=1  # something like CommVault 
firewall daemon
  regex:/opt/(hds_simpana)/Base/EvMgrC;num=1 # forwards events generated on the 
local machine to the CommServe
  regex:/opt/(hds_simpana)/Base/cvd;num=1    # provides the ability to fetch or 
save metadata on the CommServe...
  regex:/opt/(hds_simpana)/Base/cvlaunchd;num>=0  # new in Commvault9
  regex:/opt/(hds_simpana)/Base/nwp;num>=0  #

LLDPD
  /usr/sbin/lldpd -c;name=lldpd;running-on=physical;num=1

SELINUX  # differs between RHEL5 & RHEL6
  /usr/sbin/restorecond;num=1
  /usr/bin/python -E /usr/sbin/setroubleshootd;num=1

HOST-DEF:WSA-NGINX
  NGINX
  XINETD
  CONSOLE-KIT-DAEMON
  <OS-DEFAULT>

NGINX
  nginx: master process;num=1

XINETD
  xinetd;num=1

CONSOLE-KIT-DAEMON
  /usr/sbin/console-kit-daemon --no-daemon;num>=0 



Application Daemons
-------------------------------------------------------
G 0 of httpd -k start -D***.uq.edu.au were running (expected >=0)
G knockd -d was running (expected =1)
G mysqld_safe was running (expected >=0) [1 child in total]
R 0 of nginx: master process were running (expected =1)
G xinetd was running (expected =1)
G !SELINUX


Untested Daemons, not in the definition for this host as listed above
-------------------------------------------------------
1 of init's immediate children not tested (ignoring /sbin/mingetty)
Y 25302 [11 children in total] : [24 days 22:17:43] /usr/sbin/httpd


OS-DEFAULT Daemons
-------------------------------------------------------
FYI RAM 49152
FYI running RHEL6 on 'Dell Inc.' 'PowerEdge R610' (serial *****)
FYI lldpd expected as running on physical hardware
FYI vmtoolsd not expected as not running under VMware
FYI smartd expected as running on physical hardware
FYI irqbalance expected as running on 2 CPUs / 8 COREs
FYI rpc.statd not expected as not running automount
FYI rpc.idmapd not expected as not running automount
FYI rpcbind not expected as not running automount
FYI StorAgnt.sh not expected as not running on SUN FIRE X4150
G !cvfwd and wasn't running
G !EvMgrC and wasn't running
G !cvd and wasn't running
G !cvlaunchd and wasn't running
G !nwp and wasn't running
G !lldpd and wasn't running
G !restorecond and wasn't running
G !setroubleshootd and wasn't running
G 0 of console-kit-daemon --no-daemon were running (expected >=0)
G !vmtoolsd and wasn't running
G 12 of runbb.sh were running (expected >=1) [24 children in total]
G nrpe.cfg -d was running (expected >=0)
G smartd was running (expected =1)
G 0 of .+ were running (expected >=0)
G regex:(|/usr/bin/|/usr/local/bin/)socat was running (expected =1)
G 0 of sshd: were running (expected >=0)
G 0 of regex:login -- \S+ were running (expected >=0)
G master was running (expected =1) [6 children in total]
G regex:(|/usr/sbin/|/opt/ntp/bin/)ntpd was running (expected =1)
G 0 of regex:(/usr/bin/|)SCREEN were running (expected >=0)
G rsyslogd was running (expected =1)
G oddjobd.pid -t 300 was running (expected =1)
G sssd was running (expected =1) [3 children in total]
G auditd was running (expected =1) [2 children in total]
G crond was running (expected =1)
G atd was running (expected =1)
G irqbalance was running (expected =1)
G 0 of tuned.conf were running (expected >=0)
G udevd was running (expected =1) [2 children in total]
G acpid was running (expected =1)
G dbus-daemon was running (expected =1)
G 0 of gpm were running (expected >=0)
G 0 of gam_server were running (expected >=0)
G sshd was running (expected =1)
G 0 of rhnsd were running (expected >=0)
G rhsmcertd was running (expected >=0)
G !yum-updatesd and wasn't running
G regex:(/usr/bin/)?monit was running (expected =1)
G regex:/usr/bin/ruby (/usr/sbin/puppetd|/usr/bin/puppet agent) was running 
(expected =1)
G 0 of anacron.+ were running (expected >=0)
G !rpc.statd and wasn't running
G !rpc.idmapd and wasn't running
G !rpcbind and wasn't running
G portreserve was running (expected >=0)
G dsm_om_shrsvcd was running (expected >=0)
G 0 of dsm_sa_datamgrd were running (expected >=0)
G 0 of dsm_sa_eventmgrd were running (expected >=0)
G 0 of dsm_sa_snmpd were running (expected >=0)
G dsm_om_connsvcd was running (expected >=0) [1 child in total]
G !StorAgnt.sh and wasn't running
G 0 of xfs -droppriv -daemon were running (expected >=0)
G snmpd was running (expected >=0)
G 0 of nrpe were running (expected >=0)



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to