I hope it is a good day for you, because is not for me
I have Nagios set up and running fine, except for email notifications.
I checked the nagios debug output, and it seems to be invoking the mail command fine, and returning ok, however no email is sent. In the mail.log file, there is also no output.
I don't know if that issue is related, but yesterday, before the stopping that the receiving the email, I've installed the plugin "check_snmp_netint.pl".
Because that plugins seems not worikng in the first instance, I made some changes into the system ( Linux version 2.6.18-274.3.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)).
In particular to use that plugin, I find a FAQ (http://nagios.manubulon.com/ ) I follow that:
The scripts outputs "Can't locate Net/SNMP.pm in @INC....."
You don't have Net::SNMP installed, see below
How do I install Net::SNMP perl module ?
There are 2 ways of doing thi
1) By CPAN (best
on command line, as root
[your_host]# perl -MCPAN -e shell
cpan shell -- CPAN exploration and modules installation (v1.76)
ReadLine support enabled
cpan> install Net::SNMP
If it's the first time you run CPAN, it will probably ask you some (simple) questions.
CPAN will also ask you to satisfy some dependencies (Crypt::DES, Digest::MD5, etc..).
Now that plugin is working fine with nagios... only I don't receive the email by nagios.
Sending an email using user nagios by cli & webmin is working fine.
nagios.cfg is configured to send the email.
I don't have any idea where to see...
Could anyone help me?