Fetchmail
Posted: Thu Dec 02, 2021 10:12 am
CentOS Linux release 7.9.2009 (Core)
Linux c210enag01.vornadort.com 3.10.0-1160.49.1.el7.x86_64 #1 SMP Tue Nov 30 15:51:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Nagios verion 5.8.7
===
Good morning.
Our passive checks have not been updating, possibly since we updated to 5.8.7. With 'systemctl status nagios', I'm seeing this error:
Error: Got check result for service 'Cron <nagios@c210enag01> /bin/fetchmail -s' on host 'localhost'. Unable to find service
On this server, fetchmail is in /usr/bin, not /bin. I edited the crontab:
crontab -u nagios -e; add /usr/ to get:
*/5 * * * * /usr/bin/fetchmail -s
now I get the error with the new location:
Error: Got check result for service 'Cron <nagios@c210enag01> /usr/bin/fetchmail -s' on host 'localhost'. Unable to find service
How do I fix this? Any assistance would truly be appreciated.
ADDITIONAL INFO
When I run fetchmail manually, I get this:
fetchmail: Connection errors for this poll:
name 0: connection to localhost:imap [::1/143] failed: Connection refused.
name 1: connection to localhost:imap [127.0.0.1/143] failed: Connection refused.
IMAP connection to localhost failed: Connection refused
fetchmail: Connection errors for this poll:
name 0: connection to localhost:pop3 [::1/110] failed: Connection refused.
name 1: connection to localhost:pop3 [127.0.0.1/110] failed: Connection refused.
POP3 connection to localhost failed: Connection refused
fetchmail: Query status=2 (SOCKET)
Thanks and best regards, Steve
Linux c210enag01.vornadort.com 3.10.0-1160.49.1.el7.x86_64 #1 SMP Tue Nov 30 15:51:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Nagios verion 5.8.7
===
Good morning.
Our passive checks have not been updating, possibly since we updated to 5.8.7. With 'systemctl status nagios', I'm seeing this error:
Error: Got check result for service 'Cron <nagios@c210enag01> /bin/fetchmail -s' on host 'localhost'. Unable to find service
On this server, fetchmail is in /usr/bin, not /bin. I edited the crontab:
crontab -u nagios -e; add /usr/ to get:
*/5 * * * * /usr/bin/fetchmail -s
now I get the error with the new location:
Error: Got check result for service 'Cron <nagios@c210enag01> /usr/bin/fetchmail -s' on host 'localhost'. Unable to find service
How do I fix this? Any assistance would truly be appreciated.
ADDITIONAL INFO
When I run fetchmail manually, I get this:
fetchmail: Connection errors for this poll:
name 0: connection to localhost:imap [::1/143] failed: Connection refused.
name 1: connection to localhost:imap [127.0.0.1/143] failed: Connection refused.
IMAP connection to localhost failed: Connection refused
fetchmail: Connection errors for this poll:
name 0: connection to localhost:pop3 [::1/110] failed: Connection refused.
name 1: connection to localhost:pop3 [127.0.0.1/110] failed: Connection refused.
POP3 connection to localhost failed: Connection refused
fetchmail: Query status=2 (SOCKET)
Thanks and best regards, Steve