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
0
votes
1answer
17 views

check_nrpe command doesn't work from nagios server since debian upgrade

Yesterday I upgraded a server from Debian 9 to Debian 10. This server is supervised with nagios. Since the upgrade, I get an alert, status Unknown saying : "Volumegroup array03-0 wasn't valid or ...
0
votes
1answer
226 views

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 ...
1
vote
0answers
32 views

Tell nagios not to warn about non-critical updates

I use nagios to warn if there are apt updates available on my Debian buster server, but I want to use this option: -o, --only-critical Only warn about upgrades matching the critical list. The total ...
0
votes
0answers
14 views

Nagios Notifications with mod_gearman

The stats: Host Information Last Updated: Wed Jun 24 15:45:23 BST 2020 Updated every 60 seconds Nagios® Core™ 4.4.5 - www.nagios.org mod_gearman: v0.33 all running on a CentOS 7 box with postfix, ...
0
votes
1answer
26 views

How to set the nagios plugin path

When I am checking nagios setting. I bumped into this error. $ sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Nagios Core 4.4.5 Copyright (c) 2009-present Nagios Core ...
0
votes
1answer
179 views

What is OID,MIB? Check transfer amount by check_snmp

I am setting snmpd and try to check by check_snmp. snmpwalk -c public -v 2c localhost iso.3.6.1.2.1.1.1.0 = STRING: "Linux ik1-325-22819 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 ...
0
votes
0answers
10 views

How to get the max value of CPU/memory usage per day from check_load / check_mem log, Nagios

I can get the Service Log Entries by availability report. For example this is CPU load value. check_load -w 15,10,5 -c 30,25,20 Then this is Memory usage. check_mem -f -w 20 -c 10 Now, it is ...
0
votes
0answers
17 views

Nagios Service Log Entries CSV export

I can check the monthly service availability with this url. (ex check_disk for mywhitebearhost) https://new.example.com/nagios/cgi-bin/avail.cgi?host=mywhitebearhost&service=check_disk&t1=...
1
vote
1answer
33 views

Monitoring AWS by Nagios

I have an AWS EC2 project to be monitored by Nagios. My Nagios runs on a server outside of AWS. Service monitoring works, but host monitoring does not. How can I fix it? define host { use ...
0
votes
1answer
320 views

Sorry, user nagios is not allowed to execute 'SCRIPT.sh' as root on <HOST>

user1@<HOSTNAME>:~$ sudo -H -u nagios bash -c "sudo /usr/localcw/bin/check_disk.sh -w 10% -c 80% -p /boot" Sorry, user nagios is not allowed to execute '/usr/localcw/bin/check_disk.sh -w 10% -c ...
0
votes
0answers
44 views

Selinux context problem with Nagios ncpa plugin

I am installing the NCPA Nagios plugin in different servers for checking many parameters. Basically, NCPA runs a script in a remote machine and report the result to the Nagios server; NCPA every ...
0
votes
2answers
42 views

Making a Nagios host less sensitive within specific time-periods

When a Nagios host object is added to multiple host templates (each with a different timeperiod assigned) Nagios only seems to select the first template in that use list. Can you give a host a ...
0
votes
2answers
505 views

NagiosQL Installation: Checking requirements. Write test on settings file (config/settings.php): failed

I've installed NagiosQL mostly following this tutorial. On the Checking requirements step I've got failed state for Write test on settings file (config/settings.php): How to make nagios pass Write ...
0
votes
0answers
145 views

Open port 12489 for nrpe

I'm learning a little bit of nagios and unix(buster), and im getting an error related with monitoring CPU LOAD and MEMORY USAGE The feedback I get from the monitor is connect to address 192.168.1.94 ...
0
votes
1answer
73 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 ...
0
votes
0answers
25 views

Is there any other way to verify cpu on a remote machine besides snmp?

I am writing a script for Nagios that would be able to verify the cpu load on a remote machine I have already this line snmpget 127.0.0.1 -v 2c -c public .1.3.6.1.4.1.2021.11.9.0 | grep -Eo '[0-9]+$'...
0
votes
0answers
45 views

Why check_icmp plugin from centreon isn't working?

I am trying to create a custom command in centreon like $USER1$/check_icmp -H $HOSTADDRESS$ however before that I just want to test this plugin (that comes with centreon) in my console. For that I ...
1
vote
1answer
45 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 ...
0
votes
2answers
153 views

Where can I get Nagios plugin for cpu/hdd monitoring?

I have already installed nagios-plugins-contrib: sudo apt update sudo apt install nagios-plugins-contrib However, there are no any cpu / hdd management plugin. I am using a Debian VM just in case. ...
2
votes
0answers
238 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'...
0
votes
0answers
222 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
314 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
931 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
184 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
564 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
1k 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
35 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
53 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
38 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
491 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
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 '...
0
votes
2answers
429 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
308 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
289 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
271 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
938 views

Nagios read() returned error 11 error

I am facing Nagios showing error "got read() returned error 11" notification.
0
votes
2answers
291 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
41 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
162 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
674 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
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=...
1
vote
0answers
494 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
60 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
234 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
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
547 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
790 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
111 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
231 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
2k 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 ...