| Welcome to the Zimbra :: Forums! | |
Welcome, if you would like to post a comment please register.
We also encourage you to explore all things Zimbra with our team and members of the community.
|  | | 
02-24-2010, 07:36 PM
| | | I'm an idiot Quote:
Originally Posted by LMStone Hmmm...
Likely with this typo in nrpe.cfg you are not getting any warning emails from Nagios because the command isn't running: Code: commad[check_mailq]=/usr/lib/nagios/plugins/check_mailq -w 3 -c 50 -M postfix If you change " commad" to " command" that should get things working -- unless I missed some other typos!
All the best,
Mark | Wow, that would be epic if that was the problem. It was showing up green in Nagios though. I sent a couple massive emails through my server to see if I would get a warning message and never got one. I'll give it another shot after correcting that typo. | 
02-24-2010, 07:44 PM
| | | Quote:
Originally Posted by buee Wow, that would be epic if that was the problem. It was showing up green in Nagios though. I sent a couple massive emails through my server to see if I would get a warning message and never got one. I'll give it another shot after correcting that typo. | OK: mailq (1) is below threshold (3/50)
I love it. Thanks guys. | 
02-24-2010, 07:50 PM
| | | Hmmm... If the Nagios host web interface shows that the remote mailq is OK but the mailq command isn't defined in nrpe.cfg on the remote host, that's a problem; it shouldn't work.
You may wish to check that your config files on the Nagios host are actually running nrpe checks on the remote host, and not local checks of the Nagios host itself.
Why do I say this you might ask?
The first time I was setting up a Nagios system years ago I got stuck and couldn't figure out why on the five hosts I was monitoring all the disk sizes and free space were the same. Then I Googled and saw lots of other Nagios noobs made the same mistake, so I didn't feel too bad!
To confirm, take a look at the service check definition on the Nagios host and make sure the commandline is actually calling check_nrpe... Code: # Service definition
define service{
use RelNet-service ; Name of service template to use
host_name RelNet-Zimbra-Mail2
service_description Anti-Virus
check_command check_nrpe!check_clamd
} Hope that helps,
Mark
__________________
___________________________________ L. Mark Stone, CIO "Uptime. All the time."
477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678
proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Last edited by LMStone; 02-24-2010 at 07:57 PM..
| 
02-24-2010, 08:15 PM
| | | Quote:
Originally Posted by LMStone Hmmm... If the Nagios host web interface shows that the remote mailq is OK but the mailq command isn't defined in nrpe.cfg on the remote host, that's a problem; it shouldn't work.
You may wish to check that your config files on the Nagios host are actually running nrpe checks on the remote host, and not local checks of the Nagios host itself.
Why do I say this you might ask?
The first time I was setting up a Nagios system years ago I got stuck and couldn't figure out why on the five hosts I was monitoring all the disk sizes and free space were the same. Then I Googled and saw lots of other Nagios noobs made the same mistake, so I didn't feel too bad!
To confirm, take a look at the service check definition on the Nagios host and make sure the commandline is actually calling check_nrpe... Code: # Service definition
define service{
use RelNet-service ; Name of service template to use
host_name RelNet-Zimbra-Mail2
service_description Anti-Virus
check_command check_nrpe!check_clamd
} Hope that helps,
Mark | That was actually my first problem, I hadn't had it checking NRPE. Then I configured the mail queue on the local machine and not on the remote server. But working through my own brain farts, I got it to the point where it was green on Nagios. But, it wouldn't throw flags or emails no matter what I threw at that server. I found that my mail server can apparently take quite a few more clients on because it was processing mail faster than I could send it. I got all the kinks ironed out and I'm confident that it's working now. | 
02-25-2010, 06:16 AM
| | | Glad it's working for you now!
The learning curve for Nagios is very steep, and not very intuitive IMHO (at least to me and the engineers I've trained), so I hope you didn't mind that I asked you to double check some of the basics where I've seen others (and me!) get caught out.
All the best,
Mark
__________________
___________________________________ L. Mark Stone, CIO "Uptime. All the time."
477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678
proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
| 
03-03-2010, 11:01 AM
| | | Quote:
Originally Posted by strube | I second that. That links is down. Can someone provide the plugin?
OK, I've found it! Nagios Exchange - check_zimbra.pl. | 
10-19-2010, 06:52 AM
| | | Jummo,
If you are comfortable doing so, I would submit this code to the Nagios Exchange.
Thanks for submitting this; we should be able to test before the end of the year (we are building a new Nagios server from scratch and slowly migrating all of our configurations over, but have frozen our existing Nagios server's configuration).
All the best,
Mark
__________________
___________________________________ L. Mark Stone, CIO "Uptime. All the time."
477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678
proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
| 
10-20-2010, 01:46 AM
| | Special Member | |
Posts: 113
| | Yeah, that's ok for me. Thanks for posting on Nagios Exchange. | 
02-24-2011, 09:49 AM
| | Intermediate Member | |
Posts: 15
| | check zimbra mailq easy fix all I did was change the value of $utils::PATH_TO_MAILQ in to /usr/local/nagios/libexec/check_mailq PHP Code: $utils::PATH_TO_MAILQ = "/opt/zimbra/postfix/sbin/mailq";
Quote:
Originally Posted by buee Hey, I hate to dig up old topics but I'm really hoping to get this one working. When I run /usr/local/nagios/libexec/check_mailq -w 250 -c 500 as root, it comes back correctly. When I run it as nagios, I get Code: Program mode requires special privileges, e.g., root or TrustedUser.
CRITICAL: Error code 78 returned from /usr/bin/mailq even though I've modified the utils.pm file to reflect the mailq in /opt/zimbra. Does something need to be restarted after that?
I've appended the sudoers files with: Code: nagios ALL=(zimbra) NOPASSWD: /usr/local/nagios/libexec/check_mailq And ls -la /usr/bin/sudo shows: Code: ---s--x--x 2 root root 140744 Mar 24 18:55 /usr/bin/sudo Just like yours, jummo
What am I missing? | | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |