Hello All
I have one problem after apgradenagios to 4.1.1
In nagios.debug I can find this:
Done. Final output: '/usr/local/nagios/libexec/check_nrpe -H 10.100.100.33 -c CheckEventLog -a file=system MaxWarn=3 MaxCrit=30 "filter=generated gt -1d AND severity NOT IN ('success', 'informational','warning')" truncate=800 unique descriptions "syntax=%generated%: %severity%: %source%: %id%: %message% (%count%)"'
When I use it in cli from user nagios I get:
[root@centos1 ~]# /usr/local/nagios/libexec/check_nrpe -H 10.100.100.33 -c CheckEventLog -a file=system MaxWarn=3 MaxCrit=30 "filter=generated gt -1d AND severity NOT IN ('success', 'informational','warning')" truncate=800 unique descriptions "syntax=%generated%: %severity%: %source%: %id%: %message% (%count%)"
Wednesday, November 25, 2015 16:23:16: error: volsnap: 36: Wykonywanie kopii w tle woluminu C: zosta▒o przerwane, poniewa▒ nie mo▒na powi▒kszy▒ magazynu kopii w tle z powodu limitu wprowadzonego przez u▒ytkownika. (1), Wednesday, November 25, 2015 09:53:29: error: SNMP: 1500: The SNMP Service encountered an error while accessing the registry key SYSTEM\CurrentControlSet\Services\SNMP\Parameters\TrapConfiguration. (2), eventlog: 3 > warning|'eventlog'=3;3;30
[root@centos1 ~]#
But in nagios web services i have this service yellow and it is in state warning, but status information field is empty, what can be wrong ?
CheckEventLog problem
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: CheckEventLog problem
What language is your Nagios Core server running?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: CheckEventLog problem
Not sure about 0.4.1 but you can set encoding in modern NSClient++: https://docs.nsclient.org/reference/cli ... r.encoding
// Michael Medin @mickem, blog.medin.name
Author of NSClient++ - http://nsclient.org
NSClient++ 0.4.2 Documentation: http://docs.nsclient.org
Author of NSClient++ - http://nsclient.org
NSClient++ 0.4.2 Documentation: http://docs.nsclient.org
Re: CheckEventLog problem
Hello
Tahnk You a lot for Your sugestions, upgradeing nsclient to version 0.5 and put encoding parameter to utf8 solved the problem.
Tahnk You a lot for Your sugestions, upgradeing nsclient to version 0.5 and put encoding parameter to utf8 solved the problem.
Re: CheckEventLog problem
Former Nagios Employee.
me.
me.