mail queue error
-
- Posts: 20
- Joined: Thu Feb 04, 2016 5:26 pm
mail queue error
Hi everyone, I have a nagios core 4.0.5 and my problem is that when I try to configure the mail queue service and I go to de monitoring web panel,
it always shows me than mail queue is empty, what is not true. It happens with an ubuntu, and a windows server 2012
Is there anybody that can help me with this problem?
Thanks
it always shows me than mail queue is empty, what is not true. It happens with an ubuntu, and a windows server 2012
Is there anybody that can help me with this problem?
Thanks
-
- Posts: 20
- Joined: Thu Feb 04, 2016 5:26 pm
Re: mail queue error
There are some screenshots, if you need anymore, tell me please.
- Attachments
-
- Captura2.PNG (5.27 KiB) Viewed 3298 times
-
- Captura1.PNG (3.96 KiB) Viewed 3298 times
-
- Captura.PNG (5.26 KiB) Viewed 3298 times
Re: mail queue error
What interface is that? Are you using just Nagios Core...?
Former Nagios Employee.
me.
me.
-
- Posts: 20
- Joined: Thu Feb 04, 2016 5:26 pm
Re: mail queue error
These are three diferents screenshots, one is about the commands.cfg file, the other one is about the services.cnf and the other is about what I see on the web interface.
And here is another screenshot, to prove that the mail queue server is not empty.
And the O.S server is ubuntu 12.04.
I tried to write the local IP (192.168.9.110) instead of $HOSTADDRESS$ and the web interface apears also with the mail queue is empty message.
And here is another screenshot, to prove that the mail queue server is not empty.
And the O.S server is ubuntu 12.04.
I tried to write the local IP (192.168.9.110) instead of $HOSTADDRESS$ and the web interface apears also with the mail queue is empty message.
Re: mail queue error
What is the result if you run it over the command line?
If you are having issues, I did find another plugin that may work for you -
https://exchange.nagios.org/directory/P ... ue/details
With that one, it will need to be run on the remote machine using an agent.
If you are having issues, I did find another plugin that may work for you -
https://exchange.nagios.org/directory/P ... ue/details
With that one, it will need to be run on the remote machine using an agent.
Former Nagios Employee
-
- Posts: 20
- Joined: Thu Feb 04, 2016 5:26 pm
Re: mail queue error
That's the result...
Do you know if I must save the script with a .sh extension or with what extension?
Do you know if I must save the script with a .sh extension or with what extension?
- Attachments
-
- Captura7.PNG (7.75 KiB) Viewed 3274 times
Re: mail queue error
The plugin check_mailq does not support checking a remote host, it's made to run on the remote machine. You will need to use a remote agent such as NRPE to execute this script on your remote machine.
Former Nagios Employee
-
- Posts: 20
- Joined: Thu Feb 04, 2016 5:26 pm
Re: mail queue error
Like that?
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$
}
define service {
use generic-service,srv-pnp
host_name srvplesk2
service_description Cola SMTP
check_command check_nrpe!check_postfix_queue
}
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$
}
define service {
use generic-service,srv-pnp
host_name srvplesk2
service_description Cola SMTP
check_command check_nrpe!check_postfix_queue
}
Re: mail queue error
The NRPE command will need an $ARG1$ value so that it can pass the check_postfix_queue command as well. This is how mine is defined -
You will then need to define the 'check_postfix_queue' command in your NRPE configuration to execute /usr/local/nagios/libexec/check_mailq -w 100 -c 150 -M postfix
Code: Select all
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}
Former Nagios Employee