> There is no problems involved in running the plugins / > notifications at the command line, they execute in no time. > > The delay we can see is from nagios stating in the nagios.log > that is going to send the alert and to the bash script / > check is actually executed. > > So the delay probably has to do with the way nagios spawns > serialized commands (as we see it?).
Exerpt from debug log with (-1 / all): [1200304088.239603] [001.0] [pid=4899] my_system() [1200304088.239642] [256.1] [pid=4899] Running command '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: RECOVERY\n\nService: check_latency\nHost: xxx.xxx.dk\nAddress: 87.48.144.101\nState: OK\n\nDate/Time: Mon Jan 14 10:48:08 MET 2008\n\nAdditional Info:\n\nOK - Service Latency: 0.23 sec" | /usr/bin/mailx -s "** RECOVERY Service Alert: nagsrv000.tele.dk/check_latency is OK **" [EMAIL PROTECTED]' ... [1200304088.239793] [064.1] [pid=4899] Making callbacks (type 10)... [1200304088.320955] [001.0] [pid=5960] process_macros() [1200304088.321398] [001.0] [pid=5960] process_macros() [1200304088.321449] [2048.1] [pid=5960] **** BEGIN MACRO PROCESSING *********** [1200304088.321486] [2048.1] [pid=5960] Processing: 'xxxx...' [1200304088.321683] [2048.1] [pid=5960] Done. Final output: 'xxxx...' [1200304088.321732] [2048.1] [pid=5960] **** END MACRO PROCESSING ************* [1200304088.321824] [001.0] [pid=5960] process_macros() [1200304088.321918] [001.0] [pid=5960] process_macros() [1200304088.322010] [001.0] [pid=5960] process_macros() [1200304088.322101] [001.0] [pid=5960] process_macros() [1200304088.329595] [001.0] [pid=5960] process_macros() [1200304088.329713] [001.0] [pid=5960] process_macros() [1200304088.329821] [001.0] [pid=5960] process_macros() [1200304088.329927] [001.0] [pid=5960] process_macros() [1200304088.330035] [001.0] [pid=5960] process_macros() [1200304088.330143] [001.0] [pid=5960] process_macros() [1200304115.792892] [256.1] [pid=4899] Execution time=27.553 sec The script appears to be called at the very late end of the "execution time" stated, the script itself is executed in (much) less than 1 sec at the command line. Still: Solaris/SPARC, T1000, no noticable load (~1). // Steffen Poulsen ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ 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