Nagios EventLog Service Monitor

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
snchestnut01
Posts: 25
Joined: Mon Feb 29, 2016 2:46 pm

Re: Nagios EventLog Service Monitor

Post by snchestnut01 »

We set the port to 5667, so when running the first command this is the error we get:

CHECK_NRPE: Socket timeout after 10 seconds.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios EventLog Service Monitor

Post by rkennedy »

What is the output of nmap 192.168.100.10?
Former Nagios Employee
snchestnut01
Posts: 25
Joined: Mon Feb 29, 2016 2:46 pm

Re: Nagios EventLog Service Monitor

Post by snchestnut01 »

Switched to check_wmi for this check. Fixed a little bit of code and changed a few arguements and adjusted the password and this one is now working for the most part. Doesn't seem to be warning us about critical issues on the server though. Here's the command string we replaced it with:

check_xi_service_wmiplus!'[Domain]/[DomainUser]'!'[password]'!checkeventlog!-a 'Application' -o 2 -3 1

How can I get it to warn us when we get a critical?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios EventLog Service Monitor

Post by rkennedy »

You should be able to use the -w and -c variables.

Code: Select all

[root@localhost libexec]# ./check_wmi_plus.pl
No Hostname specified

Typical Usage: -H HOSTNAME -u DOMAIN/USER -p PASSWORD -m MODE [-s SUBMODE] [-b BYTEFACTOR] [-w WARN] [-c CRIT] [-a ARG1 ] [-o ARG2] [-3 ARG3] [-4 ARG4] [-A AUTHFILE] [-t TIMEOUT] [-y DELAY] [--namespace WMINAMESPACE] [--extrawmicarg EXTRAWMICARG] [--nodatamode] [--nodataexit NODATAEXIT] [--nodatastring NODATASTRING] [-d] [-z] [--inifile=INIFILE] [--inidir=INIDIR] [--inihelp] [--nokeepstate] [--keepexpiry KEXPIRY] [--keepid KID] [--joinexpiry JEXPIRY] [-v OSVERSION] [--help] [--itexthelp] [--forcewmiccommand] [-icollectusage] [--ishowusage] [--logswitch] [--logkeep] [--logsuffix SUFFIX] [--logshow] [--variablesdisabled] [--forceiniopen] [--forcetruncateoutput LEN]
Former Nagios Employee
snchestnut01
Posts: 25
Joined: Mon Feb 29, 2016 2:46 pm

Re: Nagios EventLog Service Monitor

Post by snchestnut01 »

Got it, thank you very much.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios EventLog Service Monitor

Post by mcapra »

Closing this and marking as resolved
Former Nagios employee
https://www.mcapra.com/
Locked