Blocking ICMP and other issues

Jon Angliss jon at netdork.net
Thu Aug 14 16:05:30 CEST 2008


On 13 Aug 2008 22:31:49 -0000, tb at itswny.com wrote:

> I have just installed Fedora 9 and then setup Nagios. I followed Quick Install and it worked wonderfully. 
> I want to Monitor 1 remote server's SMTP. I have been experimenting with 2 configuration files (Pasted 
> at the end for reference) without much luck. With config #1, I receive messages telling me the host is
> down constantly (I assume this is because it blocks ICMP ping requests) I then found a sample on one
> of the forums which I tried to implement; but I recieve no messages and Nagios still says host is down in
> the browser. Basically I'd like to show the host as up and recieve messages when SMTP is unavailable.
> Does anyone have any samples (Pref with comments) that I can experiment with? I am particually
> interested in monitoring publically available services.

>#==================================
>#CONFIG FILE #1
>#==================================
>define host{
>use windows-server 
>host_name myserver 
>alias My Mail 
>address xxx.xxx.xxx.xxx
>checks_enabled 0
>}

Is there any resaon you have checks_enabled set to 0?  I also cannot
find a checks_enabled directive, it's either active_checks_enabled or
passive_checks_enabled.

>define hostgroup{
>hostgroup_name windows-servers 
>alias Windows Servers 
>}
>#===============================EOF

>#==================================
>#CONFIG FILE #2
>#==================================
>define command{
>command_name check_upmail
>command_line $USER1$/check_smtp -H 64.62.20.243
>}

You should try using variables instead of hard coding services,
especially when it comes to commands, and host variables.  You should
try using $HOSTADDRESS$.  This'll make it so you can reuse the same
command later.

>
>define host{
>use generic-host
>host_name myserver
>alias My Mail 
>address xxx.xxx.xxx.xxx
>check_command check_upmail
>max_check_attempts 10
>notification_interval 120
>notification_period 24x7
>notification_options n
>contact_groups admins
>}
>===============================EOF

Have you tried forcing a check of the server? Does it still say it's
down? Can you run check_smtp -H <hostaddress> from the command, as
nagios user to validate the service can talk to it?

-- 
Jon Angliss


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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