Page 1 of 1
Linux SNMP Wizard vs Windows SNMP Wizard on Windows Server
Posted: Thu May 24, 2012 9:54 pm
by ytlcomm
Hi guys,
This is my first time posting a post in this forum. Please guide me I have break any rules in posting in this forum.
Need your insight on this. I plan to monitor my Windows machine via SNMP and encountered a problem with 'Windows SNMP Wizard'. The check result showing "(Return code of 126 is out of bounds - plugin may not be executable) ". Refer below screenshot.
Capture2.PNG
However, with the same Windows server (different interface), I've tried register it using 'Linux SNMP Wizard' and get below screenshot.
Capture.PNG
Please advice what should I do now?
Re: Linux SNMP Wizard vs Windows SNMP Wizard on Windows Serv
Posted: Fri May 25, 2012 9:12 am
by scottwilkerson
Run the following from terminal
Code: Select all
ll /usr/local/nagios/libexec/check_snmp* /usr/local/nagios/libexec/check_win_snmp_disk
I am guessing it is a permissions error
Re: Linux SNMP Wizard vs Windows SNMP Wizard on Windows Serv
Posted: Sun May 27, 2012 8:20 pm
by ytlcomm
Hi Scott,
Here is the output. Is it look ok to you?
Code: Select all
[root@nagios01 ~]# ll /usr/local/nagios/libexec/check_snmp* /usr/local/nagios/libexec/check_win_snmp_disk
ls: cannot access /usr/local/nagios/libexec/check_win_snmp_disk: No such file or directory
-rwxr-xr-x. 1 root root 408607 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp
-rw-r--r--. 1 root root 10951 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_boostedge.pl
-rw-r--r--. 1 root root 17866 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_cpfw.pl
-rw-r--r--. 1 root root 8747 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_css_main.pl
-rw-r--r--. 1 root root 16786 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_css.pl
-rw-r--r--. 1 root root 33562 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_env.pl
-rw-r--r--. 1 root root 31919 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_int.pl
-rw-r--r--. 1 root root 10108 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_linkproof_nhr.pl
-rw-r--r--. 1 root root 22965 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_load.pl
-rwxr-xr-x. 1 nagios users 22845 Apr 6 10:28 /usr/local/nagios/libexec/check_snmp_load_wizard.pl
-rw-r--r--. 1 root root 18734 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_mem.pl
-rw-r--r--. 1 root root 11898 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_nsbox.pl
-rw-r--r--. 1 root root 24233 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_process.pl
-rwxr-xr-x. 1 nagios users 26183 Apr 6 10:28 /usr/local/nagios/libexec/check_snmp_process_wizard.pl
-rw-r--r--. 1 root root 24002 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_storage.pl
-rwxr-xr-x. 1 nagios users 25484 Apr 6 10:28 /usr/local/nagios/libexec/check_snmp_storage_wizard.pl
-rw-r--r--. 1 root root 14489 Apr 6 10:20 /usr/local/nagios/libexec/check_snmp_vrrp.pl
-rw-r--r-- 1 root root 12440 May 23 15:22 /usr/local/nagios/libexec/check_snmp_win.pl
Re: Linux SNMP Wizard vs Windows SNMP Wizard on Windows Serv
Posted: Tue May 29, 2012 8:46 am
by scottwilkerson
It looks like the permissions are not correct.
run the following:
Code: Select all
chmod +x /usr/local/nagios/libexec/check_snmp* /usr/local/nagios/libexec/check_win_snmp_disk
Re: Linux SNMP Wizard vs Windows SNMP Wizard on Windows Serv
Posted: Tue May 29, 2012 8:30 pm
by ytlcomm
Hi Scott,
Thanks. It worked!