Examples of HostExtInfo


Examples of net.gridshield.nexsm.entityclasses.HostExtInfo

        _hostsextinfo.put(hei.getHostName(), hei);
    }
   
    public Vertex addVertex(Vertex v, String label) throws UniqueLabelException {
        v.addUserDatum("name", label, UserData.REMOVE);
        HostExtInfo hei =  getHostExtInfo(label);
        String name = "";
        String icons_url = getStringParam("icons_url");
        if (hei != null) {
            name = hei.getIconImage();
        }
        if (label.equalsIgnoreCase("nagios")) {
            System.out.println("As of version 0.9.3 the nagios icon is not displayed nor used" +
                    "\nI think it didn't provide status information to the map." +
                    "\nif your monitoring machine is called nagios then we have a problem, or maybe not" +
View Full Code Here

Examples of net.gridshield.nexsm.entityclasses.HostExtInfo

    public void setMapper(Mapper map) {
        _map = map;
        showServices();
        refreshComments();
       
        HostExtInfo he = _map.getHostExtInfo(_h.getName());
        if (he != null) {
            if (he.getActionUrl() == null || he.getActionUrl().length() < 1)
                jBtnOpenURLAction.setEnabled(false);
            else
                jBtnOpenURLAction.setEnabled(true);
            if (he.getNotesUrl() == null || he.getNotesUrl().length() < 1)
                jBtnOpenURLNotes.setEnabled(false);
            else
                jBtnOpenURLNotes.setEnabled(true);
        } else {
            jBtnOpenURLAction.setEnabled(false);
View Full Code Here

Examples of net.gridshield.nexsm.entityclasses.HostExtInfo

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jBtnOpenURLActionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnOpenURLActionActionPerformed
        HostExtInfo he = _map.getHostExtInfo(_h.getName());
        String action = he.getActionUrl();
        action = action.replace("$HOSTNAME$", _h.getName());
        action = action.replace("$HOSTADDRESS$", _h.getAddress());
        _map.openURL("action_url", action);
    }//GEN-LAST:event_jBtnOpenURLActionActionPerformed
View Full Code Here

Examples of net.gridshield.nexsm.entityclasses.HostExtInfo

        action = action.replace("$HOSTADDRESS$", _h.getAddress());
        _map.openURL("action_url", action);
    }//GEN-LAST:event_jBtnOpenURLActionActionPerformed

    private void jBtnOpenURLNotesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnOpenURLNotesActionPerformed
        HostExtInfo he = _map.getHostExtInfo(_h.getName());
        String notes = he.getNotesUrl();
        notes = notes.replace("$HOSTNAME$", _h.getName());
        notes = notes.replace("$HOSTADDRESS$", _h.getAddress());
        _map.openURL("notes_url", notes);
    }//GEN-LAST:event_jBtnOpenURLNotesActionPerformed
View Full Code Here

Examples of net.gridshield.nexsm.entityclasses.HostExtInfo

     */
    public void startElement(String tag, java.util.Hashtable h) throws Exception {
        if (tag.compareTo("host") == 0) { hostDefinition = true;
            // this will make nexsm a little slow when proccesing Nagios 2 objects.cache
            // but will make it compatible with Nagios 3 almost instantly
            hostextinfo = true; hetmp = new HostExtInfo();
        }
       
        // Added for Nagios 3 compat
        if (tag.compareTo("service") == 0) {
            svcextinfo = true; setmp = new ServiceExtInfo();
        }
       
        if (tag.compareTo("host_name") == 0) { host_name = true; }
        if (tag.compareTo("address") == 0) { ip = true; }
        if (tag.compareTo("alias") == 0) { alias = true; }
        if (tag.compareTo("parents") == 0){ parents = true; }

        if (tag.equals("host_name")) { host_name = true; }
        if (tag.equals("hostextinfo")) { hostextinfo = true; hetmp = new HostExtInfo(); }
        if (tag.equals("icon_image")) { icon_image = true; }
        if (tag.equals("statusmap_image")) { statusmap_image = true; }
        if (tag.equals("notes_url")) { notes_url = true; }
        if (tag.equals("action_url")) { action_url = true; }
        if (tag.equals("serviceextinfo")) { svcextinfo = true; setmp = new ServiceExtInfo(); }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.