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
0 answers
75 views

NRPE service not starting in SUSE linux 15 sp 3

Couldn't start nrpe.service in SUSE linux 15 sp3. I have installed monitoring-plugins-nrpe package but no service shown and when try to start "systemctl start nrpe.service" command then ...
rasanka_ch's user avatar
0 votes
0 answers
36 views

how to monitor servers properly with nagios?

Currently, I'm using nrpe to monitor clients using Nagios but when nrpe goes down then all the stat goes to an unknown state which causes it difficult to monitor critical alerts... What and how should ...
user561715's user avatar
0 votes
2 answers
327 views

nagios: why this error?

My kdc plugin works fine /usr/lib64/nagios/plugins/check_kdc -H samba4 -p nagios/[email protected] -k /etc/nagios/nagios.keytab OK But give me this error on webpage (Return code of 13 ...
elbarna's user avatar
  • 12.7k
1 vote
1 answer
730 views

How to validate NRPE config file?

Nagios itself has the way to check its config file for validity, to ensure it would at least load the config without errors: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Is it ...
Nikita Kipriyanov's user avatar
0 votes
0 answers
69 views

Nagios to automatically send Google Authentication verification code

At the moment, my workplace's Nagios server is configured to SSH into host machines and then execute bash scripts on those host machines. The customer now requires us to setup MFA for SSH sessions. I ...
supmethods's user avatar
1 vote
0 answers
744 views

Nagios install issue: Failed to enable unit: Unit file nagios.service does not exist

I am trying to install Nagios on Alma 8. I am following the instructions on this website: https://www.tecmint.com/install-nagios-in-rocky-linux-and-almalinux/. In "Step 3 Install Nagios Core on ...
supmethods's user avatar
0 votes
1 answer
24 views

What are the differences/similarities between naghelp and nagiosplugin, and when would you use one and not the other?

I'm reading on Nagios plugin creation with Python, and I encountered naghelp and nagiosplugin. To my novice eyes, they look similar. When would one prefer to use naghelp over nagiosplugin (or vice ...
boardrider's user avatar
0 votes
0 answers
80 views

nagios sending notifications to wrong contacts

I'm having a small issue that has been bugging me for some time now, and now it's time to fix it :) I have a Nagios Core 3.5 install running. In the Nagios configuration, we have a couple of service ...
Meaglin's user avatar
3 votes
2 answers
396 views

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's user avatar
  • 45
0 votes
1 answer
142 views

Is it alright to add a disk size monitoring script for NAGIOS, using loop?

I have a process that gets sizes for all disks on server, writes it into a file like this # cat disksize DISK# ACTUAL WARNING CRITICAL disk1 12 20 30 disk2 45 60 75 first row of ...
Sollosa's user avatar
  • 1,941
0 votes
1 answer
527 views

Unable to read nagios exit status in nagios core

I am using a command to throw a specific exit status when error count in one of my log files exceed a certain limit. Command is as follows: cd /home/serveradmin/logs/ | ls -trc | grep gateway | tail -...
Faisal Nawaz's user avatar
2 votes
0 answers
1k views

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 ...
lk2_89's user avatar
  • 121
0 votes
0 answers
666 views

how to toubleshoot nagios check_nrpe issues?

Steps done: On Nagios Server (CentOS 7) yum install nagios nagios-plugins-all On Target (CentOS 7) yum install nrpe nagios-plugins-all modified nrpe.cfg and added master IP to allowed_hosts ...
Sollosa's user avatar
  • 1,941
1 vote
0 answers
28 views

CentOS Server connectivity problem

I have deployed a Nagios Core solution for my company, an ISP, to monitor customer's network devices (hosts). It is running on CentOS 7 as a Virtual Machine running on a physical server. However, I am ...
KopRFace's user avatar
0 votes
1 answer
2k views

Unable to stop nagios nrpe server

Note: I am referring to an old Ubuntu 14.04 ! :( Don't blame me, it's not my fault. I have this process When I kill, something restart it automatically. I need to stop it! I tried what follows ...
realtebo's user avatar
  • 917
0 votes
1 answer
411 views

What version of Nagios NCPA installed?

How can I find out what version of Nagios NCPA tools is installed on my Linux box?
chris01's user avatar
  • 585
1 vote
1 answer
3k views

How to get rid of "Packages were downgraded and -y was used without --allow-downgrades" apt message

I use a Nagios test to check whether there are any packages critical updates in some Linux boxes. The check command uses the following command to look for pending critical updates: /usr/bin/apt-get -o ...
Jesús Ángel's user avatar
0 votes
1 answer
3k views

NRPE Could not complete SSL handshake - Peer did not return a ceritificate

I am getting SSL Handshake errors with NRPE after enabling SSL. It worked perfectly fine without SSL doing check_nrpe. The allowed host is correct and when run without SSL enabled it shows the proper ...
Keith Shannon's user avatar
1 vote
1 answer
995 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 ...
JadenBZH's user avatar
2 votes
1 answer
6k 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 ...
Shaikh Abu Sofiyan's user avatar
1 vote
0 answers
297 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 ...
rubo77's user avatar
  • 29k
0 votes
1 answer
1k 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 ...
whitebear's user avatar
  • 175
1 vote
1 answer
7k 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 ...
whitebear's user avatar
  • 175
1 vote
1 answer
79 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 ...
whitebear's user avatar
  • 175
0 votes
1 answer
3k 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 ...
karthik v's user avatar
  • 133
0 votes
2 answers
190 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 ...
Pete's user avatar
  • 1
1 vote
2 answers
2k 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 ...
Gryu's user avatar
  • 847
0 votes
0 answers
753 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 ...
Navy Seal's user avatar
  • 103
0 votes
1 answer
286 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 ...
Dmitrii Trubetskoy's user avatar
0 votes
0 answers
31 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]+$'...
Dmitrii Trubetskoy's user avatar
0 votes
0 answers
335 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 ...
Dmitrii Trubetskoy's user avatar
1 vote
1 answer
147 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 ...
Dmitrii Trubetskoy's user avatar
1 vote
2 answers
361 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. ...
Dmitrii Trubetskoy's user avatar
2 votes
0 answers
841 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'...
frank42's user avatar
  • 121
0 votes
0 answers
1k 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 +...
Rakesh Kumar's user avatar
0 votes
0 answers
542 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 ...
We are Borg's user avatar
1 vote
4 answers
2k 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 ...
Rakesh Kumar's user avatar
1 vote
1 answer
444 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 ...
John's user avatar
  • 23
0 votes
1 answer
1k 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 ...
BurningKrome's user avatar
0 votes
2 answers
3k 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 ...
BurningKrome's user avatar
-3 votes
1 answer
38 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 ...
KKE's user avatar
  • 21
0 votes
1 answer
86 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, ...
leeand00's user avatar
  • 4,625
0 votes
0 answers
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 ...
leeand00's user avatar
  • 4,625
1 vote
1 answer
852 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 ...
Doughnuts's user avatar
  • 121
1 vote
1 answer
3k 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 '...
Florius's user avatar
  • 111
0 votes
2 answers
1k 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?
Siva's user avatar
  • 9,077
1 vote
0 answers
380 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 ...
Silvio Picardo's user avatar
0 votes
1 answer
460 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 ...
AnimalHungry's user avatar
0 votes
1 answer
452 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 ...
W S Lockwood's user avatar
0 votes
1 answer
2k views

Nagios read() returned error 11 error

I am facing Nagios showing error "got read() returned error 11" notification.
Ankit's user avatar
  • 21