Re: [Nagios-users] Check timeout value question
This maybe help: http://www.cyberciti.biz/faq/shell-scripting-run-command-under-alarmclock/ On 11/30/2010 10:42 PM, steve f wrote: I am running a homemade check to check about 8 core processes. Occasionally the check times out after 10 seconds. All this check does is run /etc/init.d/ status and use either the 0 or 1 exit code to report that the process is OK or Critical. I verified in my nagios.cfg file the timeoout setting is set to 60 secs and the utils.pm variable for timeout is set to 15 seconds. I have no timeout setting in this script but figured I need one. Where is the check getting the 10 sec value from? I assume its a default for a nagios check. If I rewrite the script in perl ( its a simple bash now) and use the utils.pm, does that automatically give me the -t option where I could set any timeout value or will it only set the timeout to 15 seconds as in the utils.pm? Is there a simple way to add a timeout for this check only ? Thanks, Steve -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_memcached and hits/misses
In my opinion, you shouldn't check the sudden increase in misses. You should check the get_misses value and alert when it is greater than a threshold. $ echo stats | nc -w 1 host port | awk '/get_misses/ { print $3 }' On 12/09/2010 11:55 PM, Pär Åslund wrote: Hi, I'm searching for a nagios check that looks at hits and misses. Been using check_memcached for checking memcached status and right now I will continue to do that checking that memcached is answering and got free memory. However, the issue with check_memcached is that it's looking at the hits/misses ratio since start up of the memcached-process. Whereas I need to know if a sudden increase in misses instead between polls has occured. Is anyone familiar with a such check for Nagios? Best regards, -p -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] CPU monitor for a single Linux user space process ?
You can wrote a plugin (shell script) for yourself, something like this: # ps --no-headers -p `pidof process_name` -o pcpu On 12/16/2010 08:05 AM, Bruce Edge wrote: Rookie question here. Trying to determine nagios suitability for an embedded app. Can I monitor the CPU utilization for a single user space process on a Linux box with nagios? And, can I define an action if it exceeds a threshold? Thanks -Bruce -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null