Difference between revisions of "Nagios"
From Alessandro's Wiki
(Created page with "very useful tool, but now I've no time to write about it") |
Porcelinux (talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
very useful tool, but now I've no time to write about it | 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'' | |||
<pre> | |||
<div id="map-container" ng-hide="formDisplayed" | |||
... | |||
style="background:#444444" | |||
build="canBuildMap()"> | |||
</div> | |||
</pre> | |||
/usr/local/nagios/share/side.php | |||
in ''BODY'' | |||
<body class='navbar' style="background:#aaaaaa"> | |||
in ''HEAD'' | |||
<pre> | |||
<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; | |||
} | |||
</pre> | |||
/usr/local/nagios/share/stylesheets/map-directive.css | |||
<pre> | |||
/* Styles for map elements */ | |||
.link { | |||
fill: none; | |||
stroke: #666666; | |||
stroke-width: 1.3px; | |||
} | |||
</pre> |
Latest revision as of 11:20, 26 April 2022
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; }