Can't disable notifications (cli)
Posted: Mon Mar 19, 2018 2:55 pm
This is so simple I'm confused as to why it doesn't work (core 4.1.1 centos 6.6).
I've tried at the host level;
and I've tried at the service level;
Using
gets me this;
Error: Could not add object property in file '/usr/local/nagios/etc/objects/hosts/blackduck.cfg' on line 43.
passes a restart check but still does nothing.
After each change, I restart the nagios service.
At first I didn't see the squelched alerts icon and figured that was just an oversight, but when I kill nrpe I still get alerts to email and slack.
Any takers?
I've tried at the host level;
Code: Select all
define host{
use linux-box
host_name blackduck
alias BlackDuck
address x.x.x.x ; IP address of the server
hostgroups release-build-systems
notifications_enabled 0
}
Code: Select all
define service{
use generic-service
host_name blackduck
service_description ProtexIP HTTP
check_command check_nrpe!check_url1
notifications_enabled 0
}
Code: Select all
notifications_enabled=0
Error: Could not add object property in file '/usr/local/nagios/etc/objects/hosts/blackduck.cfg' on line 43.
Code: Select all
Using notifications_enabled = 0 After each change, I restart the nagios service.
At first I didn't see the squelched alerts icon and figured that was just an oversight, but when I kill nrpe I still get alerts to email and slack.
Any takers?