Mail from address changed. (fwd)

John McDonnell johnmc at johnmc.org
Tue Mar 11 00:12:09 CET 2003


On the 10th day of March, Marc Powell said to me:

> What are your host/service-notify-by-email command definitions?

# 'host-notify-by-email' command definition
define command{
	command_name	host-notify-by-email
	command_line	/usr/bin/printf "%b" "***** Nagios 1.0
*****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time:
$DATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!"
$CONTACTEMAIL$
	}


no service-notify-by-email


> Is nagios running as user johnmc now that it's been restarted?

nope:
# ps aux | grep nagios
nagios   12764  0.0  0.0  2308 1288 ?        S    Mar03   9:03 /usr/local/nagios
root     30807  0.0  0.0  1736  588 pts/0    R    13:14   0:00 grep nagios

# ps aux | grep johnmc
johnmc   27097  0.0  0.0  2444 1252 pts/0    S    12:51   0:00 -bash
root     31279  0.0  0.0  1740  596 pts/0    R    13:18   0:00 grep johnmc



> Your email could be read a number of ways and I am assuming that your
> removed a monitored machine from the nagios configuration files and not
> a distributed nagios monitoring server entirely.

umm, yeah... your assumption is correct - the simplest case :)

john.
-- 
 . johnmc@ | bucketchild.net - +1-408-985-7992 (home) .
 . http:// | johnmc.org      - +1-408-386-3549 (cell) .
-- 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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