So this morning I have added a check_ping command to the host and left the
check_nt on the service.
Disabled host alerts and left service alerts activated for the disk check
service group
Nailed a drive space and got my service alerts in both email and sms format.
Thanks for the explanation and pointing out to me where I was going wrong
Patrick.
Kind Regards
Andrew
From: Andrew Thompson
Sent: 25 January 2012 21:32
To: nagios-users@lists.sourceforge.net
Subject: Fwd: I cant get notifications for service alerts
Hi Patrick,
so what check do I suggest I add in fir the host?
For example my servers cfg uses check-server-alive for the host and check_ping
for the service.
But the hosts are ok in that scenario as I only want to know when the host is
up or down, I don't want to know when the service is critical.
But in the disk space scenario I only want to know when the service us critical
because the disk usage as hit the threshold, I don't need a host up our down
check notification.
hope this makes sense?
Regards
Sent from My Samsung Galaxy
-------- Original message --------
Subject: I cant get notifications for service alerts
From: Andrew Thompson <and...@fulgent.co.uk<mailto:and...@fulgent.co.uk>>
To:
"nagios-users@lists.sourceforge.net<mailto:nagios-users@lists.sourceforge.net>"
<nagios-users@lists.sourceforge.net<mailto:nagios-users@lists.sourceforge.net>>
CC:
Hi all,
I have just setup Nagios to monitor the diskspace on my servers.
Nagios works fine monitoring and reporting diskspace but I cant get the
notifications to work properly.
I also ping all my servers and the PING checks I have send me host alerts to
say UP or DOWN but I have disabled service alerts as I don't want them for the
PING check.
So I thought I would so the reverse and setup the disk check commands and
disable host alerts and just have service alerts for when said server goes over
the critical disk space limit I have sent.
Problem is no service alerts get sent out no matter how long the host is in
critical state!
If I enable host and service alerts for the disk check command I get host
alerts to say that the host is DOWN (which it isn't its CRITICAL)
My test disk_check config file is located at the below link, thought it be best
to provide the whole lot rather than snippets.
http://dl.dropbox.com/u/895609/disk_space_test.cfg
Can anybody explain why I don't get any service alerts when the host goes
CRITICAL and how I can get them please without having host alerts enabled as I
don't want them for my disk check commands
Thankyou in advance
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Nagios-users mailing list
Nagios-users@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