Plugin Nagios check_smtp_send Not working with Ubuntu

Bug #1497564 reported by Anis
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nagios-plugins-contrib (Debian)
Fix Released
Unknown
nagios-plugins-contrib (Ubuntu)
Fix Released
Medium
Jan Wagner

Bug Description

We are using the ubuntu delivered nagios plugin check_smtp_send to monitor the smtp server using this command:

check_smtp_send -H smtp.gmail.com -p 587 --tls -U <email address hidden> -P XXXXXXXXXX --mailto <email address hidden> --mailfrom <email address hidden>

But we got this error

SMTP SEND CRITICAL - Can't locate object method "message" via package "Net::SMTP::TLS" at /usr/lib/nagios/plugins/check_smtp_send line 161, <GEN0> line 10.

But when use the old version of the plugin check_smtp_send '0.7.2' ( not delivered by ubuntu ) with the same command works fine.

What we should do ?

Kovid Goyal (kovid)
affects: calibre → ubuntu
hkais (r-2)
affects: ubuntu → nagios-plugins (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nagios-plugins (Ubuntu):
status: New → Confirmed
Revision history for this message
hkais (r-2) wrote :

are there any updates on this issue?

Revision history for this message
Anis (majdoub-anis) wrote : Re: [Bug 1497564] Re: Plugin Nagios check_smtp_send Not working with Ubuntu

no we still have issue.

2015-12-16 11:13 GMT+01:00 hkais <email address hidden>:

> are there any updates on this issue?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1497564
>
> Title:
> Plugin Nagios check_smtp_send Not working with Ubuntu
>
> Status in nagios-plugins package in Ubuntu:
> Confirmed
>
> Bug description:
> We are using the ubuntu delivered nagios plugin check_smtp_send to
> monitor the smtp server using this command:
>
> check_smtp_send -H smtp.gmail.com -p 587 --tls -U
> <email address hidden> -P XXXXXXXXXX --mailto <email address hidden>
> --mailfrom <email address hidden>
>
> But we got this error
>
> SMTP SEND CRITICAL - Can't locate object method "message" via package
> "Net::SMTP::TLS" at /usr/lib/nagios/plugins/check_smtp_send line 161,
> <GEN0> line 10.
>
>
> But when use the old version of the plugin check_smtp_send '0.7.2' (
> not delivered by ubuntu ) with the same command works fine.
>
> What we should do ?
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/nagios-plugins/+bug/1497564/+subscriptions
>

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You have not provided any version information in your report. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

apport-collect 1497564

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Once done, please change the bug status back to New.

This will need further investigation to see if it has been fixed in a newer upstream release, and if it has then the fix will probably need backporting to the release that you are using. Volunteers to figure this out and provide a patch welcome.

Changed in nagios-plugins (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
hkais (r-2) wrote :

Maybe a stupid questions, I cannot get the apport-collect up and running on a shell only (no X-Server) machine.

Attached the data I have collected on a machine there the nagios-plugin is failing.

Please let me know if you need more details?

Revision history for this message
Robie Basak (racb) wrote :

The apport file you attached is sufficient, thanks.

Changed in nagios-plugins (Ubuntu):
status: Incomplete → Triaged
importance: Undecided → Medium
Revision history for this message
Jan Wagner (waja) wrote :

check_smtp_send is not part of monitoring-plugins or nagios-plugins upstream project. It is part of check_email_delivery ( http://buhacoff.net/software/check_email_delivery/) which is packaged into the nagios-plugins-contrib package (at least in Debian). A version 0.7.2 was never in this package and as far as I know, was newer released by upstream

Revision history for this message
Jan Wagner (waja) wrote :

Reassigning to the correct package

affects: nagios-plugins (Ubuntu) → nagios-plugins-contrib (Ubuntu)
Changed in nagios-plugins-contrib (Debian):
status: Unknown → New
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
nagios is somewhat unmaintained and getting removed from Debian and Ubuntu on newer releases.
So I'd not expect too much attention on this which is kind of confirmed by being dormant so long.

OTOH there were a few updates to the contrib in zesty and artful.
So since the report the version went from 16.20151226 to 21.20170222.

It might be helpful to test with that if this is resolved, if so it might be suitable for an SRU.

Changed in nagios-plugins-contrib (Debian):
status: New → Fix Released
Revision history for this message
Jan Wagner (waja) wrote :

Fix is available since 29.20210204ubuntu2

Changed in nagios-plugins-contrib (Ubuntu):
assignee: nobody → Jan Wagner (waja)
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.