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.
Nagios EventLog Service Monitor
Re: Nagios EventLog Service Monitor
What is the output of nmap 192.168.100.10?
Former Nagios Employee
-
- Posts: 25
- Joined: Mon Feb 29, 2016 2:46 pm
Re: Nagios EventLog Service Monitor
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?
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?
-
- Posts: 25
- Joined: Mon Feb 29, 2016 2:46 pm
Re: Nagios EventLog Service Monitor
Used the following tutorials:
https://exchange.nagios.org/directory/P ... us/details
and
https://support.nagios.com/kb/article.php?id=170
https://exchange.nagios.org/directory/P ... us/details
and
https://support.nagios.com/kb/article.php?id=170
Re: Nagios EventLog Service Monitor
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
-
- Posts: 25
- Joined: Mon Feb 29, 2016 2:46 pm
Re: Nagios EventLog Service Monitor
Got it, thank you very much.
Re: Nagios EventLog Service Monitor
Closing this and marking as resolved
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/