Menu

Nagios host status in iTop

Xaled
2022-01-17
2024-04-18
  • Xaled

    Xaled - 2022-01-17

    Hi,

    I’m trying to integrate nagios status in iTop according to this documentation:
    https://manage-wiki.openitop.org/doku.php?id=2_6_0:advancedtopics:nagios

    I go the new tab and it shows the nagios page but the host name is not being resolved and shows:

    Service Status Details For Host '$sName' instead of Service Status Details For locahost

    It there something wrong with this line from the sample, or am I missing something else?

    $oPage->add('src="https://<nagios_path>/cgi-bin/status.cgi?host=$sName">');</nagios_path>

    Thanks,
    Xaled

     
  • Hipska

    Hipska - 2022-01-18

    That line seems not complete indeed..

    Edit: Oh I just looked at the documentations and they split up the iframe building.
    The line should be like this:

    $oPage->add('src="https://<nagios_path>/cgi-bin/status.cgi?host='.$sName.'">');
    
     

    Last edit: Hipska 2022-01-18
  • Pierre Goiffon

    Pierre Goiffon - 2022-01-18

    Hello,
    Thanks Thomas for the fix !
    I updated the 3_0_0 wiki page, and also 2_7_0

    Xaled, beware your url was pointing to the wiki section dedicated to 2.6.* iTop versions, which are obsolete and not maintained anymore.

     
    • Muhammad Rafi

      Muhammad Rafi - 2024-04-18
       

      Last edit: Muhammad Rafi 2024-04-18
  • Xaled

    Xaled - 2022-01-19

    Thanks Guys. It works now!
    Thanks for the tip Pierre, I was just using it as the first available example.

     
    ❤️
    1
  • AM_est

    AM_est - 2023-04-03

    Hello.
    About: https://www.itophub.io/wiki/page?id=3_0_0%3Aadvancedtopics%3Anagios
    Topic: "Viewing the Nagios status in iTop"
    Can not find that mentioned class: " InfrastructureCI the function DisplayBareRelations..."
    Where to look for that, to make those alterations in that function, to get Nagios tab?
    PS. The "Download Snippet" does not work for me with Chrome or Firefox.
    Avo.

     

    Last edit: AM_est 2023-04-03

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.