Page 1 of 3

SMTP server monitoring

Posted: Fri Oct 10, 2014 9:32 am
by adam.sage
Hello, I am having some issues with nagios reporting incorrect data about my SMTP server. I can clearly ping the server, but nagios says it is down. It also says that the memory is over 80% used (warning level is 80%), but it is only at 62% usage.

Re: SMTP server monitoring

Posted: Fri Oct 10, 2014 11:36 am
by lmiltchev
Can you show us the service definition of the PING check? Is "10.0.11.87" the correct IP? What is the output of the following commands?

Code: Select all

ping 10.0.11.87
nslookup mg1

Re: SMTP server monitoring

Posted: Mon Oct 13, 2014 7:01 am
by adam.sage
[root@nagios ~]# ping 10.0.11.87
PING 10.0.11.87 (10.0.11.87) 56(84) bytes of data.
64 bytes from 10.0.11.87: icmp_seq=1 ttl=5 time=1.04 ms
64 bytes from 10.0.11.87: icmp_seq=2 ttl=5 time=0.517 ms
64 bytes from 10.0.11.87: icmp_seq=3 ttl=5 time=0.791 ms
64 bytes from 10.0.11.87: icmp_seq=4 ttl=5 time=1.07 ms
64 bytes from 10.0.11.87: icmp_seq=5 ttl=5 time=0.765 ms
^C
--- 10.0.11.87 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4410ms
rtt min/avg/max/mdev = 0.517/0.838/1.072/0.204 ms
[root@nagios ~]# nslookup mg1
Server: 10.0.8.98
Address: 10.0.8.98#53

Name: mg1
Address: 10.0.11.87


From MG1:
root@mg1:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:a8:ac:80
inet addr:10.0.11.87 Bcast:10.0.11.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5156275 errors:0 dropped:358 overruns:0 frame:0
TX packets:5586522 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2388988138 (2.2 GiB) TX bytes:18440142457 (17.1 GiB)

Re: SMTP server monitoring

Posted: Mon Oct 13, 2014 11:50 am
by lmiltchev
It seems like mg1 resolves to a different ip...
[root@nagios ~]# nslookup mg1
Server: 10.0.8.98

Re: SMTP server monitoring

Posted: Mon Oct 13, 2014 12:33 pm
by adam.sage
I believe that is just stating the DNS server. The output skips a line.

[root@nagios ~]# nslookup mg1
Server: 10.0.8.98
Address: 10.0.8.98#53

Name: mg1
Address: 10.0.11.87

Re: SMTP server monitoring

Posted: Mon Oct 13, 2014 2:07 pm
by Box293
What is the service definition of the ping check?
What is the host definition of the check that determines the up/down state?

What are the command definitions used by these host and service checks?

Re: SMTP server monitoring

Posted: Mon Oct 13, 2014 2:31 pm
by adam.sage
I went through the SMTP server setup wizard in Nagios XI. How do I check the service definitions?

Re: SMTP server monitoring

Posted: Mon Oct 13, 2014 2:41 pm
by Box293
You go into Core Configuration Manager.

Click Hosts
Click the host in the list
It will show a check_command being used. If it does not show a check command then it will be defined in a template.
The same applies for services.

If you click the Floppy Disk Icon next to the host in question if will give you the flat config file. The same applies for the service definition.

Post both of these configs here in a code block.

Re: SMTP server monitoring

Posted: Mon Oct 13, 2014 2:45 pm
by adam.sage
It says No command selected. I'm assuming that is the issue...what should it be?

I went in to some of the other hosts that do work and they all say No command selected as well.

Re: SMTP server monitoring

Posted: Mon Oct 13, 2014 2:54 pm
by Box293
Then a template is being used and we need to see what the template is using.

If you click the Floppy Disk Icon next to the host in question if will give you the flat config file. The same applies for the service definition.

Post both of these configs here in a code block.