Questions tagged [nagios]

Nagios (now known as Nagios Core) is a open source monitoring solution. It offers monitoring and alerting services for servers, switches, applications and services.

Nagios is a powerful monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes.

Nagios watches hosts and services that you specify, alerting you when things go bad and when they get better. Some of its many features include monitoring of network services (SMTP, POP3, HTTP, NNTP, ICMP, etc.), monitoring of host resources (processor load, disk usage, etc.), and contact notifications when service or host problems occur and get resolved (via email, pager, or user-defined method).

1227 questions
4
votes
1 answer

how can execute nagios commands from command line in linux

I am using nagios o centos server and i only want to monitor the localhost only. I have defined my service like this define service{ host_name localhost service_description Site1Service check_command check_http-site1 use generic-service …
user2424160
  • 257
  • 2
  • 4
  • 9
4
votes
1 answer

Replacing Nagios HTTP with custom (select/poll driven) daemon?

I have a a Nagios configuration which is performing a number of tests on a few hundred nodes; one of these is a variant of check_http. It's not configured to --enable-embedded-perl (ePN) but we'll be changing that soon. Even with ePN enabled I'm…
Jim Dennis
  • 17,054
  • 13
  • 68
  • 116
4
votes
2 answers

Nagios notification when no message is received within 48 hours

In Nagios it is easy to check that a LogMessage happened in the last 48 hours and sound an alarm. What I would like, though, is to instead configure Nagios to sound an alarm when a specific message did not occur within 48 hours. Can anyone point me…
buckley
  • 13,690
  • 3
  • 53
  • 61
4
votes
9 answers

Nagios (Return code of 255 is out of bounds)

I am getting the error (Return code of 255 is out of bounds) on the http://localhost/nagios But when I run the command from the shell, it runs fine
bala
4
votes
3 answers

How to configure non host service in Nagios?

I need to monitor some file existence in an AWS S3 bucket and I created a simple Nagios plugin for that. Now I have to configure it and defined it as a command something like this: define command{        command_name    check_s3file_exist …
kee
  • 10,969
  • 24
  • 107
  • 168
4
votes
1 answer

Monitoring WCF with nagios

I'm not familiar with Nagios and I'm still half way looking through the plugins and documentation but our client is currently using this and they want to use it to monitor our WCF too. Is there a way for Nagios to consume WCF methods or at least…
Bahamut
  • 1,929
  • 8
  • 29
  • 51
4
votes
7 answers

remote node monitoring recommendations

I am looking for a solution to monitor several (atleast 50) remote nodes. These remote nodes are behind a firewall and hence i cannot poll from a central server for information. the connection needs to be from a Node -> central server. I have used…
Linus
  • 825
  • 4
  • 20
  • 33
3
votes
6 answers

Changing Process Name using Shell for nagios monitoring with check_procs

I have a python script to start a process which I want to monitor using Nagios. When I run that script and perform ps -ef on my ubuntu EC2 instance, it shows process as python .py --arguments. For Nagios to monitor that process using…
Sanket Dangi
  • 1,185
  • 9
  • 16
3
votes
1 answer

add to JSON ($payload={}) on condition

I feed JSON to some webhook to trigger a notification (M$ Teams). This works well. However, I want to extend my Perl script: I need to add a new node to my "messagecard" construct on a certain condition. E.g. I defined this: my $payload={}; $payload…
3
votes
1 answer

Setting up NSCA in Docker Alpine image for passive nagios check

In the Alpine linux package site https://pkgs.alpinelinux.org/packages NSCA packages are yet to get added. Is there an alternative to setup NSCA in Alpine Linux for passive-check?
3
votes
3 answers

Why does ps only return one line of output in my Perl script when I call it with Nagios?

I have this running: if (open(PS_ELF, "/bin/ps -eLf|")) { while () { if ($_ =~ m/some regex/) { # do some stuff } } } If called locally, the loop runs just fine, once for every output line of ps -eLf Now if the same script…
Node
  • 21,706
  • 2
  • 31
  • 35
3
votes
1 answer

Schedule Downtime for a Service in Nagios using ajax POST

I'm trying to schedule a downtime for the service in nagios using ajax call. I can able to schedule it through NAgios GUI and found a method to use curl for scheduling. I Found one link How to set downtime for any specific nagios host for certain…
user2439278
  • 1,222
  • 7
  • 41
  • 75
3
votes
2 answers

Nagios alert integration with external tool

I'm integrating alerts and events from Nagios to my system. On searching I have found an integration of Moogsoft with Nagios(click). I have followed this, but it was not successful. In their 'Step 2: Configurations:' they mentioned about…
Melvin Moses
  • 407
  • 2
  • 6
  • 17
3
votes
1 answer

How can I install DBD::Pg if postgres is not installed?

I have a separate servers running with postgres and Nagios. I want to use "psql_replication_check.pl" with nagios to monitor the postgres replication status. This check script requires DBD::Pg module to connect to database. Installation of DBD::Pg…
Space
  • 7,049
  • 6
  • 49
  • 68
3
votes
2 answers

How to configure nagios with mysql

HELLO! I have installed nagios 3.2.2 and I am trying to configure it with mysql, but I cannot find the file "create_mysql", this file should have the necessary tables for. Ah! It is over debian lenny. Where is it supposed to be located? Thanks.
Lejour
  • 49
  • 1
  • 2
  • 4