Page 15 of 15
Re: Check Windows Processes
Posted: Wed Jul 24, 2013 10:19 am
by ofadl
Code: Select all
'notify-host-by-email' command definition
define command{
command_name notify-host-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$
}
Re: Check Windows Processes
Posted: Wed Jul 24, 2013 4:06 pm
by abrist
ofadl wrote:'notify-host-by-email' command definition
Try commenting out this ( what I presume is a comment ):
Code: Select all
#'notify-host-by-email' command definition
Re: Check Windows Processes
Posted: Wed Jul 24, 2013 4:16 pm
by lmiltchev
Also, I believe you are missing some stuff... The complete command definition should look like this one:
Code: Select all
# 'notify-host-by-email' command definition
define command{
command_name notify-host-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
}
Re: Check Windows Processes
Posted: Thu Jul 25, 2013 9:50 am
by ofadl
nvm, fixed that and now finally processes is working... but seems like alot of other stuff is messed up. Do you guys want me to start another thread?
Re: Check Windows Processes
Posted: Thu Jul 25, 2013 1:52 pm
by lmiltchev
Sure, I will mark this one as "resolved". You can start a new thread. This one got way too long anyway.
