Questions tagged [nagios]

Nagios Core is a network and system monitoring service with many plugins and a web interface.

Nagios Core is an open source monitoring tool that can generate alerts and reports on system uptime, network usage, etc, with manyy plugins and optional configuration assistants. It has several forks Icinga, Naemon, Shinken. A commercial version is provided with support by Nagios Enterprises.

122 questions
9
votes
2 answers

chcon: can't apply partial context to unlabeled file while installing nagios with SELinux

I'm setting up Nagios core on CentOS with SELINUX=enforcing. I try to run chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/ as suggested in the manual, but I get this error messages: chcon: can't apply partial context to unlabeled file…
Mohammed Shannaq
  • 191
  • 1
  • 1
  • 4
4
votes
0 answers

List service as failing only after a certain duration

My Debian systems have unattended-upgrades installed, which installs security upgrades automatically, once per day. I also have a Nagios check that reports whether upgrades need to be installed. In this setup, it is normal that this check can report…
Joachim Breitner
  • 1,347
  • 2
  • 16
  • 25
3
votes
2 answers

Nagios Core 3.5 change Date format

How can the Date/Time format that Nagios uses everywhere be changed to YYYY-MM-DD HH:MM:SS?
amm
  • 45
  • 4
3
votes
2 answers

/nagios/cgi-bin/statusmap.cgi was not found on this server

I installed Nagios 3.4.4 on Ubuntu server 12.10. Installation was successful but now I'm not able to view maps and trends.When I try, I get the following error /nagios/cgi-bin/statusmap.cgi was not found on this server Why is this happening.What…
Rudra
  • 151
  • 1
  • 2
  • 3
3
votes
0 answers

Nagios network traffic monitoring plugin for FreeBSD

Is there a Nagios network traffic plugin for FreeBSD machines? I have been using the following plugin on Ubuntu which uses /proc/net/dev and thus not supported in…
pdns
  • 265
  • 1
  • 3
  • 11
3
votes
0 answers

Nagios - Help with getting NRPE to work with check_fail2ban.sh

I am trying to monitor fail2ban with Nagios so, I found the following check via a Google search: http://nagios.fm4dd.com/plugins/manual/check_fail2ban.htm I am trying to get the check to work on a remote host, but I am unable to get it to return…
TB.
  • 31
  • 2
3
votes
3 answers

How can I keep track of what's using the most CPU?

I use nagios to monitor my server. Once in a while I'll get a report that the CPU load is warning / critical, etc. Usually this happens at some odd hour or when I don't have the tools to immediately log in and look around. Is there some way that I…
cwd
  • 44,479
  • 71
  • 146
  • 167
2
votes
1 answer

Could not find any hostgroup matching 'allhosts'

I've just started configuring Nagios from scratch, and I'm new at this. I've been getting this error after adding objects/printer.cfg Error: Could not find any hostgroup matching 'allhosts' (config file '/etc/nagios3/objects/printer.cfg', starting…
Rene
  • 179
  • 2
  • 9
2
votes
1 answer

Why does this Bash NRPE plugin not return a variable to Nagios?

This script I have here works locally just fine: #! /bin/bash volts=`sudo vcgencmd measure_volts core|sed 's/volt=\([0-9\.]*\)V/\1/'` echo -n "BCM2835 SoC Voltage is ${volts}V " echo "| volts=$volts;1.5;1.5;0;1.5" However if Nagios tries to get the…
syss
  • 691
  • 9
  • 20
2
votes
1 answer

Install nagios3 on debian by apt, file not found error

I have a Wheezy Debian system, and I've installed nagios3 using apt-get. When I go to myhost.com/nagios3 and then go to a page, for example "Tactical Overview" I get the error message: The requested URL /cgi-bin/nagios3/tac.cgi was not found on…
sazary
  • 413
  • 1
  • 3
  • 8
2
votes
0 answers

Enclosing the value of a variable in single quotes in BASH

I'm trying to adapt some Perl scripts to Bash to run them in Nagios XI. The problem is that Nagios expects the values of the variables to arrive between single quotes, but I can't manage to escape the variables correctly. For example, in the top…
lk2_89
  • 121
  • 3
2
votes
1 answer

Swap issue and "read swap header failed" for /swapfile

My Swap memory shows SWAP critical 0% free on NMS. I tried: `$ swapon --show` but nothing showed up. I went on to do: $ free -m total used free shared buff/cache available Mem: 7873 2858 1151 …
2
votes
0 answers

shebang with /usr/bin/env and sudo

I have lots of scripts, usually they start with a shebang and /usr/bin/env and the required interpreter (for example "#!/usr/bin/env perl"). This works fine since many years, but for some reason I don't understand I have one script on one FreeBSD…
frank42
  • 121
  • 2
2
votes
2 answers

Executing a script from Nagios event handler fails to run

I have Nagios running on a webserver. For this one Nagios service check in particular, if it fails, it will run a script. This script is triggered via Nagios event handlers. Nagios event handler command: define command{ command_name …
Ryan
  • 23
  • 1
  • 4
2
votes
0 answers

Nagios not running notify command

I am in the process of creating a notify command for our Nagios server to notify us via our Kannel SMS sender. This is what I got so far: /usr/local/bin/curl -v -G -d 'username=user' -d 'password=pass' -d 'to='$CONTACTPAGER$'' --data-urlencode…
Frederik
  • 177
  • 6
1
2 3
8 9