[Nagiosplug-devel] no perfdata - check_apt.c

matthias.flittner at nethinks.com matthias.flittner at nethinks.com
Tue Dec 12 10:05:01 CET 2006


The Plugin check-apt.c puts no perfdata. So I have patched it:


Index: check_apt.c
===================================================================
--- check_apt.c (revision 2)
+++ check_apt.c (working copy)
@@ -115,7 +115,7 @@
                result = max_state(result, STATE_OK);
        }

-       printf(_("APT %s: %d packages available for %s (%d critical 
updates). %s%s%s%s\n"),
+       printf(_("APT %s: %d packages available for %s (%d critical 
updates). %s%s%s%s|available_upgrades=%d;;;0 critical_updates=%d;;;0\n"),
               state_text(result),
               packages_available,
               (upgrade==DIST_UPGRADE)?"dist-upgrade":"upgrade",
@@ -123,7 +123,9 @@
               (stderr_warning)?" warnings detected":"",
               (stderr_warning && exec_warning)?",":"",
               (exec_warning)?" errors detected":"",
-              (stderr_warning||exec_warning)?". run with -v for 
information.":""
+              (stderr_warning||exec_warning)?". run with -v for 
information.":"",
+               packages_available,
+                  sec_count
               );

        return result;


Could you put this patch into the next release of the nagios plugins? :-)


Greets FliTTi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20061212/844529de/attachment.html>


More information about the Devel mailing list