Ad Widget

Collapse

How to notify Debian/Ubuntu updates ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • batosai
    Junior Member
    • Dec 2008
    • 10

    #1

    How to notify Debian/Ubuntu updates ?

    Hi,

    Is there a way to be notified when Debian/Ubuntu packages are available for updates ? Nagios has a check_apt plugin to do it. Is there a way to do this with Zabbix ?

    Regards
  • sbockelman
    Junior Member
    • Oct 2008
    • 16

    #2
    Debian/Ubuntu Show updates

    Install the "apt-show-versions" package from apt.

    Add Item:
    system.run[apt-show-versions | grep upgradeable | wc -l]

    Add trigger that checks if that number is greater than 0.

    Comment

    • troffasky
      Senior Member
      • Jul 2008
      • 565

      #3
      Originally posted by sbockelman
      Install the "apt-show-versions" package from apt.

      Add Item:
      system.run[apt-show-versions | grep upgradeable | wc -l]

      Add trigger that checks if that number is greater than 0.
      Excellent. I like that one a lot. This will also work in scenarios where you're using net-snmp to monitor a Debian host, as it can be added to snmpd.conf where it'll then be visible under .1.3.6.1.4.1.2021.8.

      This is great if you've got lots of Debian boxes to maintain, as with a template you can monitor the status of every host's package management system at once.

      Comment

      • batosai
        Junior Member
        • Dec 2008
        • 10

        #4
        Thanks, but system.run[] isn't available with 1.4.2 agent, which is the version packaged in Debian/Ubuntu. Is there a zabbix repository somewhere, or should I try the unstable package ?

        Comment

        • troffasky
          Senior Member
          • Jul 2008
          • 565

          #5
          I think you should try checking the value of EnableRemoteCommands in zabbix_agentd.conf first :-) If you're not happy with the security implications of that, you could implement it as a UserParameter instead.

          Comment

          • bbrendon
            Senior Member
            • Sep 2005
            • 870

            #6
            Originally posted by batosai
            Thanks, but system.run[] isn't available with 1.4.2 agent, which is the version packaged in Debian/Ubuntu. Is there a zabbix repository somewhere, or should I try the unstable package ?
            I'm 99% sure 1.4.x has system.run support once its enabled in agent conf file.
            Unofficial Zabbix Expert
            Blog, Corporate Site

            Comment

            Working...