Ran into the problem of monitoring Windows 2008 R2 Service via SNMP (only this service, other services from the same host and other servers are ok so far);
Here is the TEXT:
define service {
host_name fihp-m4r1.res.kcg.global
service_description Siebel Server [PROD_fihp-m4r1]
use xiwizard_windowssnmp_service
check_command check_xi_service_snmp_win_service! -C HP_private --v2c -n 'Siebel Server [PROD_somesrvname]'!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
first_notification_delay 10
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts lukindi
contact_groups SIEBEL
_xiwizard windowssnmp
register 1
}
-------------------------------------------------
Nagios XI is unable to monitor this one as follows: Invalid pattern ! Usage: check_snmp_win [-v] -H <host> -C <snmp_community> [-2
------------------------------------------------
Check Command ran from the same service configuration actually works:
COMMAND: /usr/local/nagios/libexec/check_snmp_win.pl -H 10.102.33.114 -C HP_private --v2c -n 'Siebel Server \[PROD_fihp-m4r1\]'
OUTPUT: 1 services active (matching "Siebel Server \[PROD_somesrvname\]") : OK
-----------------------------------------------
Check command as GUI presents one does not appear to be the same as the Service configuration. What went wrong?
Invalid pattern ! Usage: check_snmp_win
Re: Invalid pattern ! Usage: check_snmp_win
Go to Service Detail->click on the "Siebel Server [PROD_fihp-m4r1]" service->Configure->Re-configure this service and modify your command by changing:
to this:
Note: Basically, escape the "[" and "]" with a backslash.
Click on "Update" and force an immediate check. Did this help?
Code: Select all
'Siebel Server [PROD_somesrvname]'Code: Select all
'Siebel Server \[PROD_fihp-m4r1\]'Click on "Update" and force an immediate check. Did this help?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Invalid pattern ! Usage: check_snmp_win
Yes I figured before I read your post. \[....\] pattern and same for \(...\).lmiltchev wrote:Go to Service Detail->click on the "Siebel Server [PROD_fihp-m4r1]" service->Configure->Re-configure this service and modify your command by changing:to this:Code: Select all
'Siebel Server [PROD_somesrvname]'Note: Basically, escape the "[" and "]" with a backslash.Code: Select all
'Siebel Server \[PROD_fihp-m4r1\]'
Click on "Update" and force an immediate check. Did this help?
Thank you.
Re: Invalid pattern ! Usage: check_snmp_win
Am I good to close this thread then or do you need more assistance?
Former Nagios Employee
Re: Invalid pattern ! Usage: check_snmp_win
Yes please and Thank yourkennedy wrote:Am I good to close this thread then or do you need more assistance?