Hi everyone, I trying to do some advanced process checks. I can't get it to work properly, can somebody help me out? I got a couple processes script1 must run at least 1 at the time script2 is bad if there are less than 2 script3 may run no more than 3 but there can also be none at all script4 is only for me to run in special cases and it will cause serious damage in the hands if the less skilled so I don't want to see it at all with the "ps -ef" command they get listed as: root 1001 <usual stuff> <time> /bin/sh /x/y/script1 <some variable data> root 1002 <usual stuff> <time> /bin/sh /p/q/script2 root 1003 <usual stuff> <time> /bin/sh /tmp/<random-path>/script3 <some variable data> root 1004 <usual stuff> <time> /bin/sh /root/script4 so I did the following with my uxmon-net DEFAULT community=public frequency=5 perf=5 ALL DEFAULT version=1 proto=udp rpc DEFAULT proto=udp ping ### define the ps command which I want to use DEFAULT pscomm="ps -ef" procs DESCR features=unix,linux localhost localhost(myserver) memory cpuload ###### localhost(myserver) proc="/bin/sh /x/y/script1 *" min=1 max=1 procs localhost(myserver) proc="/bin/sh /p/q/script2" min=2 procs localhost(myserver) proc="/bin/sh /tmp/*/script3 *" min=0 max=3 procs localhost(myserver) proc="/bin/sh /root/script4" min=0 max=0 procs ###### localhost(myserver) warn=2% fail=1% disk localhost(myserver) cfg=/etc/bigsister/syslog.cfg syslog localhost(myserver) speed=100Mb/s network bigsister.mydomain.com bsdisplay Thanx Rob Verduijn ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ Bigsister-general mailing list suppressed https://lists.sourceforge.net/lists/listinfo/bigsister-general
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.