Hey Guy,
I have a really strange problem : I have 13 servers with the same client.json config (installed using saltstack not manually). On all these servers, I monitor apache2 proc :
cat check_apache.json
{
“checks”: {
“check_apache”: {
"handlers": [
"mailer"
],
"command": "/etc/sensu/plugins/processes/check-procs.rb -p '/usr/sbin/apache2' -w 40 -c 50",
"interval": 60,
"occurrences": 5,
“subscribers”: [“apache”]
}
}
}
From one server, I keep received a alert email and a recover email at the same time for this service
alarm example :
CheckProcs CRITICAL: Found 0 matching processes; cmd //usr/sbin/apache2/
Host: ads-web9
Timestamp: 2014-04-18 15:35:35 +0000
Address: 127.0.0.1
Check Name: check_apache
Command: /etc/sensu/plugins/processes/check-procs.rb -p ‘/usr/sbin/apache2’ -c 50
Status: 2
Occurrences: 1
If I rename the client name in client.json the old name and the new name magically in the client list. And I only receive alert from the old name. there is no other machine.
Is There a cache on the server that I can delete ?
Regards,
I Found the problem. Rogue server outside of my deployment system
Regards,
···
On 2014-04-18 12:58, frederic@jomediainc.com wrote:
Hey Guy,
I have a really strange problem : I have 13 servers with the same
client.json config (installed using saltstack not manually). On all
these servers, I monitor apache2 proc :
cat check_apache.json
{
"checks": {
"check_apache": {
"handlers": [
"mailer"
],
"command": "/etc/sensu/plugins/processes/check-procs.rb -p
'/usr/sbin/apache2' -w 40 -c 50",
"interval": 60,
"occurrences": 5,
"subscribers": ["apache"]
}
}
From one server, I keep received a alert email and a recover email at
the same time for this service
alarm example :
CheckProcs CRITICAL: Found 0 matching processes; cmd
//usr/sbin/apache2/
Host: ads-web9
Timestamp: 2014-04-18 15:35:35 +0000
Address: 127.0.0.1
Check Name: check_apache
Command: /etc/sensu/plugins/processes/check-procs.rb -p
'/usr/sbin/apache2' -c 50
Status: 2
Occurrences: 1
If I rename the client name in client.json the old name and the new
name magically in the client list. And I only receive alert from the
old name. there is no other machine.
Is There a cache on the server that I can delete ?
Regards,