Linux SNMP Wizard vs Windows SNMP Wizard on Windows Server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ytlcomm
Posts: 62
Joined: Tue May 22, 2012 8:52 pm

Linux SNMP Wizard vs Windows SNMP Wizard on Windows Server

Post 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?
You do not have the required permissions to view the files attached to this post.
Last edited by ytlcomm on Wed May 30, 2012 4:36 am, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Linux SNMP Wizard vs Windows SNMP Wizard on Windows Serv

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ytlcomm
Posts: 62
Joined: Tue May 22, 2012 8:52 pm

Re: Linux SNMP Wizard vs Windows SNMP Wizard on Windows Serv

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Linux SNMP Wizard vs Windows SNMP Wizard on Windows Serv

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ytlcomm
Posts: 62
Joined: Tue May 22, 2012 8:52 pm

Re: Linux SNMP Wizard vs Windows SNMP Wizard on Windows Serv

Post by ytlcomm »

Hi Scott,
Thanks. It worked!
Locked