alert when service is on
John Stile
john at stilen.com
Fri Nov 3 22:36:10 CET 2006
I would like an alert when someone logs into a monitored XP machine, but
I can't figure out how to do it. Does anyone have an easy method?
Using nagios-1.3 on debian Sarge with nsclient++ on XP+sp2.
I tried the following checkcommands.cfg + services.cfg entries, which
show when someone logs in (via rdeskto), but I only want an alert when
these processes are active, which should rarely happen. It's like I
only want an alert when the service is up.
=============================
snip from services.cfg
=============================
# Service definition
define service{
use generic-service ; Name of service template to use
host_name buildxp.eng
service_description Live_Rdesktop_Session
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_win_process!buildxp.eng!rdpclip.exe,wscntfy.exe,explorer.exe
}
=============================
snip from
=============================
define command{
command_name check_win_process
command_line /usr/lib/nagios/plugins/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE -d SHOWALL -l $ARG2$
}
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list