Page 3 of 4
Re: mail queue error
Posted: Wed Feb 10, 2016 12:17 pm
by RubenLatorre
It is complied because I'm monitorig the check_total_procs service with check_nrpe of this remote host
Re: mail queue error
Posted: Wed Feb 10, 2016 5:36 pm
by rkennedy
Check out this configuration file, can you post it for us to review?
Re: mail queue error
Posted: Thu Feb 11, 2016 10:49 am
by RubenLatorre
rkennedy wrote:Check out this configuration file, can you post it for us to review?
There are the two nrpe.cnf files, the nrpe.cfg nagios host and the nrpe.cfg remote host.
Re: mail queue error
Posted: Thu Feb 11, 2016 1:03 pm
by rkennedy
Are you running NRPE standalone, or through xinetd?
Were those files found on the Nagios machine, or the client machine?
The command that needs to be added to the proper config file is -
Code: Select all
command[check_mailq]=/usr/local/nagios/libexec/check_mailq -w 15 -c 20
Re: mail queue error
Posted: Thu Feb 11, 2016 1:15 pm
by RubenLatorre
rkennedy wrote:Are you running NRPE standalone, or through xinetd?
Were those files found on the Nagios machine, or the client machine?
The command that needs to be added to the proper config file is -
Code: Select all
command[check_mailq]=/usr/local/nagios/libexec/check_mailq -w 15 -c 20
In nagios machine I have two files about nrpe, the first one is on the /usr/local/nagios/etc/nrpe.cfg.
And the second one is on /etc/xinetd.d/nrpe, and the contain of that file is what I have puted on the screenshot.
Re: mail queue error
Posted: Thu Feb 11, 2016 1:37 pm
by rkennedy
This is getting a bit confusing, the only one we need to modify at this point is the remote (client machine) one.
Please post the output of these two commands -
Code: Select all
cat /usr/local/nagios/etc/nrpe.cfg
cat /etc/xinetd.d/nrpe
Re: mail queue error
Posted: Fri Feb 12, 2016 11:12 am
by RubenLatorre
rkennedy wrote:This is getting a bit confusing, the only one we need to modify at this point is the remote (client machine) one.
Please post the output of these two commands -
Code: Select all
cat /usr/local/nagios/etc/nrpe.cfg
cat /etc/xinetd.d/nrpe
I have modified the /usr/local/nagios/etc/nrpe.cfg file, in which I have defined the check_mailq command and I have allowed the nagios host ip.
In the /etc/xinetd.d/nrpe, What I have to modify? Only to add the nagios ip host, in this case "192.168.0.4" I attach a screenshot with the content of the file.
When I finish of modify that file, Have I to do a "service nrpe restart"?
Re: mail queue error
Posted: Fri Feb 12, 2016 2:53 pm
by jolson
When I finish of modify that file, Have I to do a "service nrpe restart"?
You may have to restart xinetd to get the new configuration to apply. Give the following a try:
Also, I'm interested in the following:
Code: Select all
grep nrpe /etc/services
ps -ef | egrep "xinetd|nrpe"
Re: mail queue error
Posted: Mon Feb 15, 2016 3:14 am
by RubenLatorre
jolson wrote:When I finish of modify that file, Have I to do a "service nrpe restart"?
You may have to restart xinetd to get the new configuration to apply. Give the following a try:
Also, I'm interested in the following:
Code: Select all
grep nrpe /etc/services
ps -ef | egrep "xinetd|nrpe"
Re: mail queue error
Posted: Mon Feb 15, 2016 4:34 pm
by hsmith
That looks all right.
jolson wrote:You may have to restart xinetd to get the new configuration to apply.
After you did this step, did the problem get resolved?