SMTP server monitoring
SMTP server monitoring
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.
You do not have the required permissions to view the files attached to this post.
Re: SMTP server monitoring
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 mg1Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SMTP server monitoring
[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)
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
It seems like mg1 resolves to a different ip...
[root@nagios ~]# nslookup mg1
Server: 10.0.8.98
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SMTP server monitoring
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
[root@nagios ~]# nslookup mg1
Server: 10.0.8.98
Address: 10.0.8.98#53
Name: mg1
Address: 10.0.11.87
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: SMTP server monitoring
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?
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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: SMTP server monitoring
I went through the SMTP server setup wizard in Nagios XI. How do I check the service definitions?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: SMTP server monitoring
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.
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: SMTP server monitoring
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.
I went in to some of the other hosts that do work and they all say No command selected as well.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: SMTP server monitoring
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.
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.