Search found 20 matches

by RubenLatorre
Mon Feb 22, 2016 12:10 pm
Forum: Open Source Nagios Projects
Topic: mail queue error
Replies: 37
Views: 11484

Re: mail queue error

rkennedy wrote:What is the full output of the folder? -

Code: Select all

ls -l /usr/local/nagios/libexec/

The longer result is about nagios host, and the shorter is about remote host
by RubenLatorre
Thu Feb 18, 2016 10:40 am
Forum: Open Source Nagios Projects
Topic: mail queue error
Replies: 37
Views: 11484

Re: mail queue error

Can you try changing the permissions to apache:nagios? This seems to be permission related. NRPE will run as the nagios user, and because the script check_mailq is root:root on the remote server, it won't be able to execute it. I don't have any apache group on the remote host, the nagios user is on...
by RubenLatorre
Tue Feb 16, 2016 12:26 pm
Forum: Open Source Nagios Projects
Topic: mail queue error
Replies: 37
Views: 11484

Re: mail queue error

rkennedy wrote:On the client machine, what are the permissions for /usr/local/nagios/libexec/check_mailq set to?

Code: Select all

ls -l /usr/local/nagios/libexec/check_mailq
by RubenLatorre
Tue Feb 16, 2016 10:32 am
Forum: Open Source Nagios Projects
Topic: mail queue error
Replies: 37
Views: 11484

Re: mail queue error

That looks all right. You may have to restart xinetd to get the new configuration to apply. After you did this step, did the problem get resolved? No, now it looks NRPE: UNABLE TO READ OUTPUT. But it's rare because if i execute on the console the nrpe command manually "/usr/local/nagios/libexe...
by RubenLatorre
Mon Feb 15, 2016 3:14 am
Forum: Open Source Nagios Projects
Topic: mail queue error
Replies: 37
Views: 11484

Re: mail queue error

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: service xinetd restart Also, I'm interested in the following: grep nrpe /etc/services ps -ef | egrep "xinetd|nrpe&...
by RubenLatorre
Fri Feb 12, 2016 11:12 am
Forum: Open Source Nagios Projects
Topic: mail queue error
Replies: 37
Views: 11484

Re: mail queue error

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 - 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...
by RubenLatorre
Thu Feb 11, 2016 1:15 pm
Forum: Open Source Nagios Projects
Topic: mail queue error
Replies: 37
Views: 11484

Re: mail queue error

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 - command[check_mailq]=/usr/local/nagios/libexec/check_mailq -w 15 -c 20 In nagios machine I have two files about ...
by RubenLatorre
Thu Feb 11, 2016 10:49 am
Forum: Open Source Nagios Projects
Topic: mail queue error
Replies: 37
Views: 11484

Re: mail queue error

rkennedy wrote:Check out this configuration file, can you post it for us to review?

Code: Select all

/usr/local/nagios/etc/nrpe.cfg
There are the two nrpe.cnf files, the nrpe.cfg nagios host and the nrpe.cfg remote host.
by RubenLatorre
Wed Feb 10, 2016 12:17 pm
Forum: Open Source Nagios Projects
Topic: mail queue error
Replies: 37
Views: 11484

Re: mail queue error

It doesn't look like NRPE is compiled - did you compile it yet? Here's a document that explains how to configure / compile NRPE - https://assets.nagios.com/downloads/nagiosxi/docs/How-To-Configure-NRPE-and-Install-From-Source-with-Nagios-XI.pdf It is complied because I'm monitorig the check_total_p...
by RubenLatorre
Wed Feb 10, 2016 11:24 am
Forum: Open Source Nagios Projects
Topic: mail queue error
Replies: 37
Views: 11484

Re: mail queue error

rkennedy wrote:Those are the sample files, not the actual configuration. That is why I asked what is in the directory above.
The directory above is this, and I was on the yellow directory