Questions tagged [nagios]

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

Filter by
Sorted by
Tagged with
9
votes
1answer
24k views

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: ...
4
votes
0answers
40 views

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 ...
3
votes
3answers
633 views

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 ...
3
votes
2answers
4k views

/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 ...
3
votes
0answers
220 views

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 FreeBSD. https://exchange.nagios.org/...
3
votes
0answers
566 views

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 ...
2
votes
2answers
1k views

System call sent warnings to stderr: error: unsupported option (BSD syntax)

When we run the Nagios check_procs module in redhat7 os, we are facing below error. By googling we found that we need to reinstall procps package. We also reinstalled procps package but the module is ...
2
votes
1answer
444 views

Strange nagios-nrpe-server error upgrading from Jessie to Stretch

When upgrading from Jessie to Stretch, at the end of dist-upgrade, it ends with an error: Errors were encountered while processing: nagios-nrpe-server E: Sub-process /usr/bin/dpkg returned an error ...
2
votes
1answer
4k views

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;...
2
votes
3answers
12k views

htpasswd: cannot create file /etc/nagios/htpasswd.users

I just installed nagios on CentOS 6.5. While creating the default auth. user: htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin Here is what I got: htpasswd: cannot create file /usr/...
2
votes
2answers
2k views

Subdomain for Nagios

I have a subdomain forwarding at IP 192.0.2.1 (example.com) Lets call it nagios.example.com Nagios worked at 192.0.2.1/nagios but now it's not working due to a fact that app.example.com took over ...
2
votes
1answer
2k views

Logrotate behaving unexpectedly

Find below the logrotate configuration that I'm using /usr/local/nagios/var/nagios.log { copytruncate daily rotate 7 compress missingok size 100M } And I could notice that ...
2
votes
1answer
4k views

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 ...
2
votes
2answers
9k views

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 ...
2
votes
1answer
2k views

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 ...
2
votes
0answers
192 views

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'...
2
votes
0answers
659 views

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=...
1
vote
4answers
772 views

regular expression match text in curly braces and print whole curly braces

I have configuration file like: define host{ host_name xxxxxxxx1748 use windows-server alias Comet hostgroups +bu-automotiveprd,screen-automotiveprd2 address ...
1
vote
1answer
627 views

Nagios memory free plug-in misbehaving after upgrade to Debian Stretch

We use Nagios here for monitoring our servers. On the test network I upgraded to Debian 9/Stretch, the memory monitoring box/object in our Nagios monitoring platform says CRITICAL and next to it, ...
1
vote
1answer
913 views

Understanding NTFS-3g Inode Use

I'm running a CentOS 4.6 final box with a second drive array (raid 1, the mount is /mnt/raid, as listed below in my nagios warning) that uses ntfs-3g as the file system. My nagios warnings just went ...
1
vote
1answer
917 views

I can't get an interface up in CentOS. I get the interface has a different MAC address than expected

Device eth0:1 has a different MAC address than expected, ignoring." I cp ifcfg-eth0 ifcfg-eth0:1. I used the vi editor and changed the MAC address on eth0:01 My set up is a CentOS 6.6 VMware guest ...
1
vote
1answer
3k views

How do I install the nagios NRPE plugin on CentOS 5 using yum?

How do I install the nagios NRPE plugin on CentOS 5 using yum? I've tried yum install nagios-plugins but it's only downloading a fraction of a megabyte. Then if I do a search for one of the commands ...
1
vote
2answers
2k views

The receiving of returns by Nagios from script through NRPE

I am using nagios3 and want to collect some information from nrpe_server. Next script is at nrpe_server: #!/bin/sh #set -x # script for checking disk usage on ZFS # requires min zpool version 13 or ...
1
vote
2answers
1k views

Using nginx for nagios instead of Apache

I want to install nagios but instead of using apache i would like to use nginx. I installed nagios-cli and it automatically brings parts of apache which puts a script into /etc/init.d/apache2 and ...
1
vote
1answer
43 views

Can I install Nagios on Debian and can I do it from repository?

I want to install Nagios and I have my Debian VM running. On Nagios official site they say we need a minimal version of either CentOS or red hat. But can I install Nagios on Debian? Another issue is ...
1
vote
1answer
122 views

How should I grant a user the privilege to restart the nagios services?

What is the best way to grant user an access so they can restart the nagios services? I have added in visudo USER ALL = NOPASSWD: /usr/sbin/service ServiceName * But that did not work, I am using ...
1
vote
1answer
369 views

Cannot stop SELinux from blocking Apache accessing /usr/local/nagios/var/rw/nagios.cmd

I have a Centos 7 server running Nagios Core 4.3.4 with Apache 2.4.6 in our UAT environment. I have a second server in PROD that was set up with the same Ansible playbook. Nagios was built from ...
1
vote
1answer
4k views

ERROR: CHECK_NRPE: Socket timeout after 10 seconds

getting following error : # /usr/local/nagios/libexec/check_nrpe -H nagios-server-ip CHECK_NRPE: Socket timeout after 10 seconds. But it's working for localhost # /usr/local/nagios/libexec/...
1
vote
1answer
204 views

How is python invocation different when launched by Nagios nrpe?

When invoked with python2 after importing os and sys, the following function runs successfully but acts incorrectly when invoked by Nagios nrpe: def get_proc1_open_files(): # Set proc1_children ...
1
vote
1answer
15k views

No response from remote host for Nagios check_snmp_mem.pl plugin

Trying to setup memory usage monitoring for Nagios using the check_snmp_mem.pl from Nagios SNMP plugin. I could not even get it working from the command line, I mean I go to /usr/lib/nagios/plugins ...
1
vote
1answer
8k views

Nagios uses sendmail, new mail server, need to change SMTP server

I'm working with a CentOS server that has Nagios running and sending notification emails. The emails are still going to the old email system which was kept up to ensure all emails were being routed to ...
1
vote
2answers
1k views

How to increase the system CPU load/utilization in Solaris 10 to test nagios?

I want to increase the system CPU load in Solaris 10 in order to test this scenario in Nagios. I'm running following command to get the CPU utitlization in Solaris: bash-3.00# sar -s 10 60 SunOS ...
1
vote
2answers
34k views

Could not bind socket: Permission denied when trying to start NDOUtils using UNIX socket

I followed these directions to a tee: Everything was going well until I actually tried to run this command (there is a typo in the article, I've corrected it here): /usr/local/nagios/bin/ndo2db -c /...
1
vote
1answer
6k views

How to get output from Nagios in a file

I have configured Nagios monitoring tool for a linux server m/c to monitor another linux host m/c(till now I am monitoring a single m/c only). I have followed the official documentation and installed ...
1
vote
1answer
1k views

Nagios variable $HOSTNAME$ in service definition

I got the following error: Error: Could not find any host matching '$HOSTNAME$' (config file '/usr/local/nagios/etc/servers/example.com.cfg', starting on line 136) Error: Failed to expand host list '...
1
vote
0answers
289 views

Nagios core 4 Audio Alarms problem with firefox

i've searched everywhere for a solution but i start to think there's something i do not understand in the problem i've discovered on a nagios core installation. I've configured audio alarms (beep and ...
1
vote
0answers
470 views

Nagios plugin fails to run a command over NRPE

I have the following plugin whose status is OK on core. #!/usr/local/bin/bash if [ "$1" = "-w" ] && [ "$2" -lt "101" ] && [ "$3" = "-c" ] && [ "$4" -lt "101" ] ; then warn=$...
1
vote
1answer
74 views

Nagios/SNMP - devices alerting when ppp/tun connections cycle

Sorry if this is a repeat. I searched, but with no luck. I'm using SNMPd on an openwrt/wr host with some ppp and tun connections. These connections get IDs in the if table, and will actually get a ...
1
vote
1answer
625 views

check_http plugin failing to check strings separated with multiple spaces in between

I have this URL where content strings are separated on the webpage. I need to check where on the same line those two strings are present or not. Say, on this page I have "API Operational" strings ...
1
vote
0answers
347 views

Senderbase Monitoring Plugin for Nagios

I have downloaded the script from this link. Whenever I run that script it shows me below output. #./senderbase 182.176.116.195 Output: [ERROR] No results given Is there anyone help me regarding ...
1
vote
1answer
882 views

Return Multiple exit status to nagios

I'm trying to write a shell script for nagios plugin. I have a list of failed nodes where I have to trigger a CRITICAL alert to the nagios. Input: #cat file OFFLINE OFFLINE OFFLINE OFFLINE All ...
1
vote
1answer
2k views

Thruk installation “failed to open socket”

I am extremely confused, and Google isn't really helping. Also, I'm kind of a Linux novice. I've taken a couple of classes, but that was all about how to configure things in a basic Linux setup. I'm ...
1
vote
0answers
341 views

Nagios trap snmptt fails to trigger

I want to monitor a HP 7500 switch power supplies. I have my OID, given by the HP web interface. So I create a snmptt.conf.hp, I create a service, passive and volatile, add this OID to a trap, and ...
0
votes
1answer
12k views

“Cannot install Nagios::Plugin, don't know what it is.”

I used this command to install Nagios::Plugins on multiple servers months/weeks before: perl -MCPAN -e 'install Nagios::Plugin' Now I get this error message: Reading '/root/.cpan/Metadata' Database ...
0
votes
2answers
305 views

Does iptables has pid ..?

I'm using pid number to monitor uptime of all critical services. But I'm unable to find pid for iptables. Does iptables have pid?
0
votes
2answers
281 views

Installing nagios 3.5.1 with epel repo

I am trying to install nagios-core 3.5.1 with yum using epel repo. I am facing problems since the old versions of nagios has been removed from epel-repo. The latest epel-repo is coming with nagios 4.3....
0
votes
1answer
1k views

Loop iteration and output result in single line.

I have this script i'm trying to write. #!/bin/bash libexec="/usr/local/nagios/libexec" #hostname=$1 hostname="hostname1 hostname2 hostname3 hostname4 hostname5 hostname6" nagios_ok=0 nagios_warning=...
0
votes
1answer
2k views

How to extract data from XML File

I am trying to move our Pre-existing PRTG setup to a Nagios setup. The problem is that we currently have over 20k monitors, and so i'm trying to export the sensor information out of the .dat file and ...
0
votes
1answer
1k views

nagios SSL handshake

I have nagios client which gave sudden error after an upgrade. I reinstalled nagios-plugin and nrpe agent again but unable solve error. This version uses nrpe under xinetd. # /usr/local/nagios/...
0
votes
1answer
66 views

How to verify disk space for a given ip WITHOUT a password?

I am writing a Nagios plugin that will check disk space on a given IP (that would be a $HOSTADDRESS$ in plugin). The script is perfectly working but I need to enter a password every time I ssh. I ...