Re: [Nagios-users] how to get passive checks to work
HI Every one, I am having a slight problem with the windows NRPE client which checks the memory load. nt_memload, is reporting Mem: 1200 MB (58%) / 2047 MB (41%) However, the server has 4G of RAM. any Ideas why this is? Is there a flag that I need to set or something? Thanks in advance. Luis - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] how to get passive checks to work
Never mind: found the problem. I had "max_check_attempts" still at 4. Set it to 1 and now it immediately reacts. On Wed, Mar 19, 2008 at 03:36:11PM +0100, Folkert van Heusden wrote: > Hi, > > In my services.cfg I have: > define service { > use generic-service > host_name p630 > service_description manual call > contact_groups aix-admins > active_checks_enabled 0 > passive_checks_enabled 1 > check_command check_dummy > } > > Now in my php script I send the following string (tried both with and > without terminating \n) to the pipe /var/lib/nagios2/rw/nagios.cmd ; > [1205935241] PROCESS_SERVICE_CHECK_RESULT;p630;manual call;2;test > > The problem now is: no action is performed! The event does not show up > in the logfile (/var/log/nagios2/nagios.log) and also no e-mail is sent > (no sms is send either). > > Configfile: > mmc:/etc/nagios2# grep passive nagios.cfg | grep -v "^#" > log_passive_checks=1 > accept_passive_service_checks=1 > accept_passive_host_checks=1 > > > Folkert van Heusden > > -- > www.vanheusden.com/multitail - win een vlaai van multivlaai! zorg > ervoor dat multitail opgenomen wordt in Fedora Core, AIX, Solaris of > HP/UX en win een vlaai naar keuze > -- > Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > 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 Folkert van Heusden -- MultiTail ist eine flexible Applikation um Logfiles und Kommando Eingaben zu überprüfen. Inkl. Filter, Farben, Zusammenführen, Ansichten etc. http://www.vanheusden.com/multitail/ -- Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] how to get passive checks to work
Dnia 19-03-2008 o 15:36:11 Folkert van Heusden <[EMAIL PROTECTED]> napisał(a): > Hi, > > In my services.cfg I have: > define service { > use generic-service > host_name p630 > service_description manual call > contact_groups aix-admins > active_checks_enabled 0 > passive_checks_enabled 1 > check_command check_dummy > } > > Now in my php script I send the following string (tried both with and > without terminating \n) to the pipe /var/lib/nagios2/rw/nagios.cmd ; > [1205935241] PROCESS_SERVICE_CHECK_RESULT;p630;manual call;2;test That looks correct. What I'd recommend is to write to /tmp/nagios.cmd, check that file. Then perform this as the same user as your PHP is run (www-data/apache probably): cat /tmp/nagios.cmd >>/var/lib/nagios2/rw/nagios.cmd You should see if it works. Also, are you writing or appending to the nagios.cmd pipe? I think appending is TheRightWay(tm) to do it. -- Wojciech Kocjan - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
[Nagios-users] how to get passive checks to work
Hi, In my services.cfg I have: define service { use generic-service host_name p630 service_description manual call contact_groups aix-admins active_checks_enabled 0 passive_checks_enabled 1 check_command check_dummy } Now in my php script I send the following string (tried both with and without terminating \n) to the pipe /var/lib/nagios2/rw/nagios.cmd ; [1205935241] PROCESS_SERVICE_CHECK_RESULT;p630;manual call;2;test The problem now is: no action is performed! The event does not show up in the logfile (/var/log/nagios2/nagios.log) and also no e-mail is sent (no sms is send either). Configfile: mmc:/etc/nagios2# grep passive nagios.cfg | grep -v "^#" log_passive_checks=1 accept_passive_service_checks=1 accept_passive_host_checks=1 Folkert van Heusden -- www.vanheusden.com/multitail - win een vlaai van multivlaai! zorg ervoor dat multitail opgenomen wordt in Fedora Core, AIX, Solaris of HP/UX en win een vlaai naar keuze -- Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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