Peter Varlien wrote:
If you search the bigsister-devel list archives, you will find a "proper" test implementation of a sendmail queue monitor, including generation of performance data for graphing. Mind you, it doesn't work correctly with the latest versions of sendmail, at least not if you have configured a separate submission process. I have an experimental fix for that, but it may be Debian GNU/Linux specific. The method you are attempting should also work. I'm doing something similar, to check for messages my email virus scanner has blocked. My definition looks like this: localhost exec="echo -e '&html\n<hr><pre>';ls -1 /var/spool/avmilter/rejected;echo '</pre>'" \ results="[dv]f\-.*:yellow:&yellow Rejected messages found;*:green:&green No rejected messages" \ item=mail command The echo stuff is because the entire output of the ls is included in the "long comment", and I wanted a horizontal line as a separator from the other stuff I have going to the "mail" column. Peter ----- Original Message ----- From: "little" <suppressed> To: "BigSister" <suppressed> Sent: Wednesday, February 09, 2005 10:53 AM Subject: [Bigsister-general] Monitoring sendmailqueueHi, We are trying to monitor our sendmailqueue's. We've already tried it with the exec and command. (running a script that does a ls /var/spool/mqueue |wc -l )and then monitor the value that comes out of that. Sofar we didn't had any luck on this (uxmon is complaining that it doesn't know any "command") Is there anybody that has any luck on this? Regards, Maarten ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bigsister-general mailing list suppressed https://lists.sourceforge.net/lists/listinfo/bigsister-general
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Bigsister-general mailing list suppressed https://lists.sourceforge.net/lists/listinfo/bigsister-general
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.