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

Nagios service returns null when using -T .cfg in command line

I'm currently learning how to make scripts to create create plugins for the Nagios Framework. We have a script with a .cfg file for some default options. So we've added a service and defined a command. For the command we wrote the…
Nicholas
  • 1,189
  • 4
  • 20
  • 40
0
votes
2 answers

nagios 302 Found - string not found

I am trying to monitor sites using nagios but I like this answer who can help me rsvp /usr/lib/nagios/plugins/check_http -H www.medcom.com.tn -I @IP -s "Tunis" HTTP CRITICAL: HTTP/1.1 302 Found - string not found - 421 bytes in 0,105 second response…
user1794019
  • 59
  • 1
  • 3
  • 9
0
votes
1 answer

Force cURL to print 1 for failure, 0 for success?

I'm writing a Nagios plugin for a Mumble server in Perl (for the experience- plenty are already available), and I've already run into a brick wall. What I'd like to do is use cURL to connect to the port Mumble binds itself to- if the connection is…
jtb
  • 3
  • 2
0
votes
1 answer

Nagios plugin (written in C) unable to open file

I have a plugin written in c that will parse a .log file and determine the page hit count: _xLogFileName = "./loging.log"; /* File operation starts here */ _xFile = fopen ( _xLogFileName, "r" ); if ( _xFile != NULL ) { //read a line upto the…
0
votes
1 answer

Nagios plugins error

[root@245557-web4 etc]# /usr/local/nagios/libexec/check_mem.sh --help Wrong Syntax: check_mem.sh --help Usage: check_mem.sh [-w|--warning] [-c|--critical] [root@245557-web4 etc]# /usr/local/nagios/libexec/check_mem.sh…
Kalim Sayyed
  • 121
  • 6
0
votes
2 answers

nagios Check result path is not a valid directory

i'm getting error when i run below command nagios3 -v /etc/nagios3/nagios.cfg Error in configuration file '/etc/nagios3/nagios.cfg' - Line 469 (Check result path is not a valid directory) Error processing main config file So i looked ls -l…
deniz
  • 155
  • 2
  • 3
  • 9
0
votes
1 answer

How to iterate over a string to construct nagios_service check as exported resource?

I wrote a custom fact, which returns a comma separated list of addr:port, like this: sb_intl_conn => sbcms-t:22,sbsql05-wvuk-inst5:1434,sborc07-uk-t:1533,..,..,.. The number of elements in the string varies from node to node. I need to do a Nagios…
MacUsers
  • 2,091
  • 3
  • 35
  • 56
0
votes
2 answers

Do not display a service in the service detail window

I have lots of services defined. Sometimes I want to disable a service, but I do not want to remove the service definition. There are flags to disable the checks: active_checks_enabled 0 passive_checks_enabled 0 But the…
blueFast
  • 41,341
  • 63
  • 198
  • 344
0
votes
2 answers

Nconf Custom Object Variables for a host

I have setup Nagios and Nconf to check our network but I have a problem that I have not yet been able to solve. How do I add custom object variables (_var-name) to a host? I have a number of custom checks that requires custom variables. eg: output…
0
votes
2 answers

Read a file block by block

I am using perl and want to read an external file with the following structure (full code at the end of the post): servicestatus { parameter1 = abc parameter2 = abc parameter3 = abc } servicecomment { parameter1 = def parameter2 = abc …
hurley
  • 363
  • 1
  • 6
  • 13
0
votes
1 answer

Send SNMP trap to particular host in Nagios

I have the nagios with two host. one is localhost(10.10.62.5) and another one is ubuntu(10.10.62.10). i set up nagios monitor on localhost. host configuration files are below localhost.cfg: define host{ use linux-server …
sujin
  • 2,813
  • 2
  • 21
  • 33
0
votes
1 answer

setting up passive checks on nagios

hello board this question may be a little clean and green however, I've been trying to set up Nagios NSCA for passive checks on a local ubuntu box as a prototype. for those in the know, my nsca listening on 5667 and send_nsca is on the same ubuntu…
laycat
  • 5,381
  • 7
  • 31
  • 46
0
votes
2 answers

how to use cacti to monitor remote hosts

I have nagios installed in a server and it's monitoring different remote hosts using different plugins. But I am not able to view the process of each system in a graph format. Is it possible to use cacti for the same purpose? I just installed cacti…
tech
  • 11
  • 2
  • 6
0
votes
1 answer

Can we send attachement with nagios mail alert?

I need to send Nagios status of service/host email alert with attachment like .txt, .doc, .jpg kind of files. How can i achieve this, anyone please help to this. Thanks & Regards, Prabakaran.R
0
votes
1 answer

Checking CPU performance using check_nrpe—strange behaviour

I'm having this strange problem: Using check_nrpe, it doesn't return correct result for check_cpu_perf. It works fine for other NRPE plug-ins though. e.g. On the Nagios Server: [root@ftppm01 nagios]# /usr/lib64/nagios/plugins/check_nrpe -H…
MacUsers
  • 2,091
  • 3
  • 35
  • 56