Nagios

From Alessandro's Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

very useful tool, but now I've no time to write about it


  • adding additional info to the mails sent:
    • go into the commands.cfg file and modify the two host and/or service commands:
    • notify-host-by-email or notify-service-by-email
  • for example I've added the comment to mail to have the ACK. text in the mail.
\n\n $NOTIFICATIONAUTHOR$ said: $NOTIFICATIONCOMMENT$

Interface

  • Colors

in /usr/local/nagios/share/map.php

 <div id="map-container" ng-hide="formDisplayed" 
  ...
  style="background:#444444"
  build="canBuildMap()">
 </div>
/usr/local/nagios/share/side.php

in BODY

<body class='navbar' style="background:#aaaaaa">

in HEAD

<style>
a img {
border: none;
}
a {
text-decoration: none;
color: #00ff00; 
}
a:hover {
text-decoration: underline;
color: #00ff00; 
}
a:active {
color: #00ff00; 
}
a:visited {
color: #19aa19; 
}


/usr/local/nagios/share/stylesheets/map-directive.css
/* Styles for map elements */
.link {
fill: none;
stroke: #666666;
stroke-width: 1.3px;
}