Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nagios]

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

0
votes
0answers
33 views

How to compile Nagios NRPE with static OpenSSL libraries

I'm compiling NRPE to deploy on several remote systems. The remote single-board computers run a stripped version of Debian on arm5 architecture. I'd like to avoid installing both OpenSSL and NRPE on ...
0
votes
0answers
30 views

Commenting out a specific host configuration in a Nagios configuration file

I have lots of Nagios configuration files like the one below in a directory, and I need to remove a host from monitoring. define host{ host_name nmo use aix-server alias hostgroups +...
0
votes
0answers
148 views

Debian : Iptables rule not staying persistent, getting deleted in sometime

I am working on a Debian stable system and we want to add a rule to allow access for Nagios. Unfortunately, the rule is automatically getting deleted after some time. We are unable to find out what's ...
1
vote
4answers
280 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
43 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 ...
0
votes
1answer
186 views

Nagios failing restart with new service directove in localhost.cfg [closed]

I started with the default localhost.cfg found in /usr/local/nagios/etc/objects. I simply added a service field at the top of the appropriate section. I used existing "ping" service section as a ...
0
votes
2answers
201 views

Nagios: How to determine parameter order check_ssh

My linux box uses a nonstandard port for ssh. Nagios' check_ssh (of course) keeps marking the process as critical since it can't connect on that port. The object file localhost.cfg allows for ...
-3
votes
1answer
27 views

Setup a monitoring server to get alerts when hw/sw failure and wanted to define certain rules to monitor in server activity [closed]

Setup a monitoring server to get alerts when hw/sw failure and wanted to define certain rules to monitor server activity. Also I wanted to get alerts when something get crashed or when sensitive files ...
0
votes
1answer
34 views

Does the time field in a csv exported nagios XI State History Report represent the last time a service was checked for that time period in the report?

I've done an export of the State History Report in nagios XI to export to a CSV for a specified time period. I get back the fields time, host, service, statechange, statetype, currentattempt, ...
0
votes
0answers
26 views

How to stop nagios from initially pulling a report?

I work with the nagios webapp with a rather large number of machines; so many in fact that when I pull up the report window the window times out when it does it's inital "today" query. If I'm fast ...
1
vote
1answer
233 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
465 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 '...
0
votes
2answers
160 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?
1
vote
0answers
181 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 ...
0
votes
1answer
135 views

Nagios e-mail notifications on RPi

I have a PC on my network that I want to monitor with a simple periodic ping from a Raspberry Pi. I'm totally new to the RPi and Linux and this seemingly simple project is turning into a massive ...
0
votes
1answer
161 views

Cannot find EPEL packages for 6.5 - is there a vault somewhere?

I cannot find EPEL packages for 6.5 - is there a vault somewhere? Specifically, I need the following RPMs but am unable to find them. This is in support of a legacy system, and we cannot upgrade it or ...
0
votes
1answer
452 views

Nagios read() returned error 11 error

I am facing Nagios showing error "got read() returned error 11" notification.
0
votes
2answers
236 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....
4
votes
0answers
39 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 ...
-2
votes
2answers
155 views

bin file downloaded when I visit my IP address [closed]

I have setup nagios on my Ubuntu, but when I go to my IP address, it downloads a BIN file. Why is this happening? The address is: http://46.101.145.158/nagios
0
votes
1answer
335 views

Nagios: are certificates required for SSL/TLS?

Configuring check_nrpe and NRPE daemon with --enable-ssl generates a DH key pair. Are these DH keys enough to establish SSL connection? Or do we need certs and keys signed by a CA? Docs say ...
0
votes
1answer
632 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=...
1
vote
0answers
324 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=$...
0
votes
1answer
44 views

Nagios compilation problem in hardened OS

I am trying to install nagios in hardened OS CentOS, but I can not: checking for a BSD-compatible install... /usr/bin/install -c checking build system type... x86_64-pc-linux-gnu checking host system ...
3
votes
0answers
160 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/...
0
votes
1answer
1k 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
328 views

Nagios Monitoring Via a Bastion Box

I have a bastion server that has access to 50 machines running different Linux systems. I also have a separate Nagios server that has access to the bastion box. Is it possible to monitor the 50 ...
0
votes
1answer
464 views

insert text at specific position with grep or vim [closed]

I need to insert text at specific position but the line can be anywhere because file is huge 1000 to 2000 lines and information is added in middle or anywhere. A short version of example below: 1 ...
0
votes
1answer
96 views

Why can't Nagios start Oracle Database through event handler?

I'm trying to start my oracle database as it goes down using an event handler script. The object configuration file oraclehost.cfg has: define host { host_name Test_Oracle ...
0
votes
1answer
144 views

Monitor the number of not leased yet IP address in Window DHCP Server with Nagios in Linux

Sometimes, the IP address are used up and they don't change their state letting the server to allocate all address. How to use Nagios to monitor the number of not leased yet ip address in pool in ...
0
votes
1answer
1k views

libssl.so.6 not found for check_nrpe

I couldn't get NRPE to work, so I ran it locally and this error popped up: ./check_nrpe: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory ...
1
vote
0answers
345 views

Nagios plugin to monitor all available services on Linux [closed]

I would require a plugin which can automatically monitor all services available in Linux server. Basically I want this plugin to be added in all application servers and it should automatically detect ...
0
votes
1answer
769 views

How to specify nrpe port in icinga / nagios

I have 2 servers behind NAT, both have same public IP and NRPE is listening on non-standard ports. I would like to monitor them both using my central icinga server, but I can't find where can I ...
1
vote
0answers
59 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
487 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
1answer
518 views

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

We use Nagios here for monitoring our servers. On the test servers I upgraded to Debian 9/Stretch, the memory monitoring box/object in our Nagios monitoring platform says CRITICAL and next to it, ...
3
votes
1answer
416 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 ...
0
votes
1answer
364 views

Creating nagios plugin from php script [closed]

I have a php script which parses xml file. I want to create plugin for Nagios, which will use that php script, or any other solution that would parse the xml file for attribute to change and monitor ...
3
votes
0answers
482 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 ...
0
votes
1answer
80 views

Identifying an API

NetApp Tech Support is assisting me with an SDK issue between Nagios and a filer cluster. One question he asked me is, 'What API are you calling when you run /usr/local/nagios/libexec/...
1
vote
0answers
320 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
747 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 ...
0
votes
1answer
936 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
1k views

Nagios plugins are executed from server plugins or client plugins? [closed]

Just installed Nagios on SERVER (10.20.8.106) and attached a CLIENT (10.20.10.11). So I defined my host and and a service for check_nrpe. It is working. So I have check_nrpe plugin in the plugins(/...
0
votes
2answers
216 views

How I can identify that a process has multiple instances

In my case I have nagios server where nagios service is running. But when I run ps -ef | grep nagios, I can see: nagios 3361 13524 0 15:42 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/...
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 ...
0
votes
1answer
3k views

invalid SSL_version specified at /usr/share/perl5/IO/Socket/SSL.pm line 368

SMTP SEND CRITICAL - invalid SSL_version specified at /usr/share/perl5/IO/Socket/SSL.pm line 368 I am using a nagios script /usr/lib/nagios/plugins/check_smtp_send that sends an email using gmail. ...
0
votes
1answer
442 views

Nagios Plugin for reading RMON files

May I know if Nagios is able read and display information from .rmon and .pmon files ? Samples: .rmon Time Stamp,RX Octs,TX Octs,RX Pkts,TX Pkts,RX Drop Events,Status,RX Undersize Pkts,Status,RX ...
1
vote
1answer
3k 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/...
0
votes
2answers
607 views

RPM Dependencies Troubleshooting

I am trying to install a Nagios rpm and I get the following error error: Failed dependencies: httpd is needed by nagios-4.0.2-2.el6.x86_64 php is needed by nagios-4.0.2-2.el6.x86_64 ...