alerts not been sent
K Shantanu
shantanu-nagios at bjjhumit.com
Mon May 3 16:37:46 CEST 2004
Hi all,
This is the first time I have configured nagios, but the problem is
that the alerts are not been sent to my email address mentioned in contacts.cfg
The OS is RH Linux 7.3 and it is a tar-ball install,
In fact,
# cat status.log
# Nagios 1.2 Status File
[1083594508] PROGRAM;1083486163;26821;1;0;1083522600;1;1;1;1;0;0;1;0
[1083594508] HOST;dcpl;UP;1083594423;1083483183;0;2677;0;0;0;0;1;1;1;1;0;0.00;0;1;1;PING OK - Packet loss = 0%, RTA = 10.83 ms
[1083594508] SERVICE;dcpl;POP3;CRITICAL;1/1;HARD;1083594414;1083594534;ACTIVE;1;1;1;1083484645;0;CRITICAL;316;0;0;1518;1083592983;16;1;0;0;1;0;0.00;0;1;1;1;Connection refused
In my service.cfg I have,
define service{
use generic-service
host_name dcpl
#service_description PING
service_description POP3
is_volatile 0
check_period 24x7
max_check_attempts 1
normal_check_interval 2
retry_check_interval 1
contact_groups lin-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
#check_command check_ping!100.0,20%!500.0,60%
check_command check_pop
[Note- The real IP is masked with x.x.x.x]
hosts.cfg contains,
define host{
use generic-host
host_name dcpl
alias old plesk
address x.x.x.x
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
}
# cat contacts.cfg
define contact{
contact_name dcpl
alias Nagios Admin
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-email,notify-by-epager
host_notification_commands host-notify-by-email,host-notify-by-epager
email shantanu-nagios at xxxxxxxxxx
pager pagenagios-admin at localhost.localdomain
}
Can someone please tell me where exactly am I going wrong?
Thanks a lot for the help.
Regards,
Shantanu
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
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