Xymon Mailing List Archive search

Questions about Enable/Disable/NOTICE

list Allan Spencer
Thu, 10 Nov 2005 15:00:26 +1100
Message-Id: <user-d59f1007c1be@xymon.invalid>

Charles Jones wrote:
1. When I disable a host in hobbit, it says it was disabled by unknown at 1.2.3.4 <mailto:unknown at 1.2.3.4>.
In the bb maint.pl script, it had an option to put a username, but I don't see an option to do this in the Hobbit Maint page, so is "unknown" hard coded, or does it look for it somewhere else?
 2. I added the "NOTICE" rule to my hobbit-alerts.cfg
 HOST=* SERVICE=* COLOR=red
MAIL user-b75305ea6ec0@xymon.invalid <mailto:user-b75305ea6ec0@xymon.invalid> RECOVERED NOTICE
 I then tested disabling the cpu service for a host, and I received an email with the disable message:
From: user-d5279360b102@xymon.invalid <mailto:user-d5279360b102@xymon.invalid>
Sent: Wednesday, November 09, 2005 5:01 PM
To: user-b75305ea6ec0@xymon.invalid <mailto:user-b75305ea6ec0@xymon.invalid>
Subject: Hobbit servername:cpu NOTICE
servername:cpu INFO
Monitoring of servername:cpu has been DISABLED by unknown for 240 minutes
Disabled by: unknown @ 1.2.3.4
Reason: testing disable notice
 This is what I expected to get.  However, I then went and re-enabled the disabled service, and I did not get an email saying it was re-enabled.  I checked the /var/log/maillog to make sure that it wasn't a mail delay.  There simply was no email sent about the enable.  I assume this isn't normal behavior :)
 -Charles
AFAIK that only works if you use the default apache example configuration which sets up the hobbit stuff with htaccess password protection. We dont use it so they always come out as unknown at ipaddy. On another customers we have the htaccess setup and it puts in the username when you disable it

HTH

Allan