Ad Widget

Collapse

Zabbix Trigger - Check for newest OS (operating system)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andreas777
    Junior Member
    • Jul 2022
    • 16

    #1

    Zabbix Trigger - Check for newest OS (operating system)

    Hey guys!

    I want to compare the OS-Version which I get from my clients with the current release from the manufacturer in order to check if the OS is up to date.
    The problem is the trigger has to be dynamic or something 'cause the current OS-version constantly changes and I don't want to change my trigger every time a new update gets released.

    Any ideas on this?

    Thanks in advance.

    Kind regards

    Andreas
  • jtnfoley
    Member
    • Mar 2022
    • 76

    #2
    I've done something similar in the past with a Microsoft RSS feed (to ensure Defender A/V definitions as it happens.)
    I did this in PRTG in my last job, but never with Zabbix.
    That said, here's some links to get you started:

    Windows 10 and 11 both have RSS feeds that dump XML of the latest versions. Here's the XML from Win 10:



    Zabbix http agent can have dependent items per:


    Pulling the Windows version RSS feed XML and processing it into triggers should be a start. Sorry I'm too busy not to flesh this out further, but I'll be interested to see what else you and the community comes up with!

    Comment

    • andreas777
      Junior Member
      • Jul 2022
      • 16

      #3
      Thank you for the hint!
      I found out that Mikrotik has an RSS-Feed an I will try that.

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1781

        #4
        I've never done this but just some ideas.

        You could do a "metahost" that has an item that is populated with the latest version (using the RSS or whatever source you think of). Then you can use that item (last(/windows10-metahost/latest_version)) in the trigger expression in your own templates where you compare the current version.

        Another idea, you could populate a global macro like {$LATEST_WINDOWS10_VERSION} automatically in a cron script using Zabbix API and then use that macro in the trigger expressions.

        Markku​

        Comment

        Working...