<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Is this or some variation of 
this acceptable?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>libexec/check_procs -c 1:100 -u 
username</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This will report CRITICAL if there are 0 or 
more than 100 processes running as the specified username.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>~Michael Hertrick.</FONT></DIV>
<DIV><FONT face=Arial size=2>~Neovera, Inc.</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ramog@starcalif.com href="mailto:ramog@starcalif.com">ramog</A> 
</DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=nagios-users@lists.sourceforge.net 
  href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, June 19, 2003 4:06 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Nagios-users] create 
  plugin</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>Is there anybody who can help me create a plugin 
  for nagios that does the following</FONT></DIV>
  <DIV><FONT face=Arial size=2>    - check if a user is currently 
  logged in or not in a monitored unix server, say his console session is 
  tty10.</FONT></DIV>
  <DIV><FONT face=Arial size=2>    - if the user is 
  <STRONG>logged in</STRONG>, nagios will report it as an <STRONG>OK 
  state</STRONG> and if he is <STRONG>not logged in</STRONG>, nagios will report 
  it as <STRONG>critical state</STRONG>.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>Any help would be greatly 
  appreciated...</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT> </DIV>
  <DIV><FONT face=Arial size=2>Rochel Amog</FONT></DIV></BLOCKQUOTE></BODY></HTML>