rkennedy wrote:Please attach the file /usr/local/nagios/var/objects.cache for us to look at, and let us know which host / service AND contact you're not receiving notifications for.
i have attached the file
rkennedy wrote:Please attach the file /usr/local/nagios/var/objects.cache for us to look at, and let us know which host / service AND contact you're not receiving notifications for.
We also need this information -baber wrote:rkennedy wrote:Please attach the file /usr/local/nagios/var/objects.cache for us to look at, and let us know which host / service AND contact you're not receiving notifications for.
i have attached the file
let us know which host / service AND contact you're not receiving notifications for.
rkennedy wrote:We also need this information -baber wrote:rkennedy wrote:Please attach the file /usr/local/nagios/var/objects.cache for us to look at, and let us know which host / service AND contact you're not receiving notifications for.
i have attached the filelet us know which host / service AND contact you're not receiving notifications for.
Code: Select all
define service{
use local-service
host_name redhat6.4
service_description DNS
check_command check_nrpe!check_dns
contacts nagiosadmin
}
Code: Select all
define host{
use linux-server
host_name redhat6.4
alias server redhat6.4
address 172.x.x.x
}
output is:rkennedy wrote:Are ALL notifications not working on your system then?
What is the output of which mail?
Code: Select all
/bin/mailThat looks proper then. You still have not told us if you're testing notifications for one service, or your whole system. I'm unsure with what is working and whatnot.baber wrote:output is:rkennedy wrote:Are ALL notifications not working on your system then?
What is the output of which mail?
Code: Select all
/bin/mail
Also, when you go to the Home page, click 'Notifications' under the Reports section -- do you see the notifications listed here? Can you show us a screenshot of this page?Are ALL notifications not working on your system then?
rkennedy wrote:That looks proper then. You still have not told us if you're testing notifications for one service, or your whole system. I'm unsure with what is working and whatnot.baber wrote:output is:rkennedy wrote:Are ALL notifications not working on your system then?
What is the output of which mail?
Code: Select all
/bin/mail
Also, when you go to the Home page, click 'Notifications' under the Reports section -- do you see the notifications listed here? Can you show us a screenshot of this page?Are ALL notifications not working on your system then?
Lastly, please post your maillog. It's located at /var/log/maillog
Code: Select all
define host{
use linux-server
host_name redhat6.4
alias server redhat6.4
address 172.x.x.x
}
define service{
use local-service
host_name redhat6.4
service_description DNS
check_command check_nrpe!check_dns
contacts nagiosadmin
}
Code: Select all
Jun 1 19:57:03 lin postfix/error[13841]: 7FF7371C8D: to=<[email protected]>, relay=none, delay=0.3, delays=0.25/0/0/0.04, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=dsa.co.ir type=MX: Host not found, try again)
rkennedy wrote:Looking at your maillog I noticed -It looks like Nagios is firing the notifications properly. From the CLI of Nagios, can you run nslookup dsa.co.ir? Also, can you post your /etc/hosts file?Code: Select all
Jun 1 19:57:03 lin postfix/error[13841]: 7FF7371C8D: to=<[email protected]>, relay=none, delay=0.3, delays=0.25/0/0/0.04, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=dsa.co.ir type=MX: Host not found, try again)
Code: Select all
[root@localhost var]# nslookup dsa.co.ir
Server: 192.168.5.2
Address: 192.168.5.2#53
Non-authoritative answer:
Name: dsa.co.ir
Address: 185.10.72.56