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

How to check the another host by nagios

I ma newbee for nagios I have set up nagios 4.4.5 for Ubuntu 18.04. According to this text https://tecadmin.net/install-nagios-monitoring-server-on-ubuntu/ I can successfully show the top page of ...
0
votes
1answer
29 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
1answer
1k views

Nagios Core Acknowledgement notification (email)

Nagios Core 3.X on RHEL. I want to know how to send an email to the relevant contact group when someone Acks an alert.
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 ...
0
votes
2answers
1k views

NTP issues on Nagios server

Our Nagios server NTP has isn't working right. First here is the issues: root@ccsd-lx-noc03 /var/log> tail -n 10000 messages | grep "NTP" Jul 5 16:19:36 ccsd-lx-noc03 nagios: SERVICE ALERT: ...
0
votes
0answers
20 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 ...
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
8k views

Find command to check only for the last 10 minutes and not the whole folder

I have an nvr system that recording video surveillance into a file server (Debian). I made a Nagios plugin to check if the NVR system is recording correctly and send me a notification when it stops ...
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 ...
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/...
0
votes
2answers
33 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
272 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
68 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
68 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
21 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
35 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 ...
0
votes
0answers
19 views

Why I have an UNKNOWN state in my Nagios while script provides another output? [duplicate]

I am using this cript for custom plugin in Nagios and I have 9% of disk space used. According to the script it has to be exit 0 (which is OK) since it's it's in the 1-84 range, however for some reason ...
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 ...
0
votes
2answers
101 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
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'...
1
vote
1answer
629 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, ...
0
votes
0answers
128 views

“Couldn't match /usr/bin/mailq output” after Debian Upgrade

I recently upgraded one of our Debian systems from Debian 7.11 to Debian 9.8. After the upgrade everything seems to be working as expected except for our monitoring server seems to have one error ...
1
vote
1answer
373 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 ...
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;...
0
votes
0answers
117 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
2answers
765 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 ...
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 ...
0
votes
0answers
293 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 ...
0
votes
1answer
784 views

Nagios read() returned error 11 error

I am facing Nagios showing error "got read() returned error 11" notification.
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
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
1k views

Nagios : How to monitor windows host from linux “by command line”?

I need to monitor a windows host using command line in Nagios. As we can monitor Remote Linux host by NRPE (check_nrpe)using command line as : /usr/local/nagios/check_nrpe -H localhost -c ...
0
votes
1answer
86 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
4answers
778 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
126 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
490 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 ...
-3
votes
1answer
33 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 ...
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 ...
0
votes
1answer
47 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, ...
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 ...
0
votes
0answers
37 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 ...
0
votes
2answers
312 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
290 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
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/...
0
votes
1answer
488 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
231 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
238 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 ...
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 ...
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....
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 ...