mail queue error
-
- Posts: 20
- Joined: Thu Feb 04, 2016 5:26 pm
Re: mail queue error
Ok I have done that:
1st) I have gone to nrpe.cfg file and I add the remote host ip on the part of allowed_hosts.
2nd) I have defined the check_mailq command on the nrpe.cfg file.
3rd) I have definded the command nrpe, on the commands.cfg.
4th) I have defined de service, on the services.cfg file.
5th) I have done a service nagios restart.
And finaly on my web monitoring interface says to me, that the command is not definded.
1st) I have gone to nrpe.cfg file and I add the remote host ip on the part of allowed_hosts.
2nd) I have defined the check_mailq command on the nrpe.cfg file.
3rd) I have definded the command nrpe, on the commands.cfg.
4th) I have defined de service, on the services.cfg file.
5th) I have done a service nagios restart.
And finaly on my web monitoring interface says to me, that the command is not definded.
Re: mail queue error
To clarify, what server did you add the command[check_mailq]= part (the part you highlighted)?
If it was on the client machine, did you restart the NRPE / xinetd service?
If it was on the client machine, did you restart the NRPE / xinetd service?
Former Nagios Employee
-
- Posts: 20
- Joined: Thu Feb 04, 2016 5:26 pm
Re: mail queue error
rkennedy wrote:To clarify, what server did you add the command[check_mailq]= part (the part you highlighted)?
If it was on the client machine, did you restart the NRPE / xinetd service?
I put that on the nagios host, Have I put it on the remote host I want to monitor?
The thing is that if I log me on the remote server via putty, and y put the mailq command on the command line, it returns me the correct information, but I want to see that information on the nagios web interface
Re: mail queue error
Yes, put it on the remote host you'd like to monitor. Then restart the NRPE / xinetd service.RubenLatorre wrote:rkennedy wrote:To clarify, what server did you add the command[check_mailq]= part (the part you highlighted)?
If it was on the client machine, did you restart the NRPE / xinetd service?
I put that on the nagios host, Have I put it on the remote host I want to monitor?
The thing is that if I log me on the remote server via putty, and y put the mailq command on the command line, it returns me the correct information, but I want to see that information on the nagios web interface
What will then happen is Nagios will call the check_mailq command on your client machine, then the client machine will execute the check_mailq plugin and send the data back to the Nagios server.
Former Nagios Employee
-
- Posts: 20
- Joined: Thu Feb 04, 2016 5:26 pm
Re: mail queue error
Have I to put it only on the nrpe.cfg host remote file or in someone else?
Because there are other files about nrpe
Because there are other files about nrpe
Re: mail queue error
What is in the folder above? This looks like the sample config folder.
Former Nagios Employee
-
- Posts: 20
- Joined: Thu Feb 04, 2016 5:26 pm
Re: mail queue error
On the second file for example, there is a part that seems like thatrkennedy wrote:What is in the folder above? This looks like the sample config folder.
- Attachments
-
- Captura7.PNG (11.44 KiB) Viewed 2032 times
Re: mail queue error
Those are the sample files, not the actual configuration. That is why I asked what is in the directory above.
Former Nagios Employee
-
- Posts: 20
- Joined: Thu Feb 04, 2016 5:26 pm
Re: mail queue error
The directory above is this, and I was on the yellow directoryrkennedy wrote:Those are the sample files, not the actual configuration. That is why I asked what is in the directory above.
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/nag ... ios-XI.pdf
Here's a document that explains how to configure / compile NRPE -
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios Employee