Page 3 of 3

Re: Wndows SNMP wizard does not create Wnd Service service c

Posted: Thu Feb 09, 2017 5:27 pm
by tgriep
Is there a chance you can run the Wizard against a different host and see if it fails the same?
Can you run the following as root on the server and post the output here?

Code: Select all

ls -lR /usr/local/nagiosxi/html/includes/configwizards/windowssnmp/
I want to see if the files the Wizard uses are updated.
Thanks

Re: Wndows SNMP wizard does not create Wnd Service service c

Posted: Thu Feb 09, 2017 5:34 pm
by rkennedy
I believe this may be related to your apply configuration taking a while. I could see PHP timing out, and perhaps then not submitting through to add these in.

Adding this for reference - https://support.nagios.com/forum/viewto ... 68#p211739

Re: Wndows SNMP wizard does not create Wnd Service service c

Posted: Fri Feb 10, 2017 8:55 am
by corkyman
I tried the wizard on another server with the same results--no check created. It was not listed on the Recently Changed Hosts and Services display either. The result of the command is here

-bash-4.1$ ls -lR /usr/local/nagiosxi/html/includes/configwizards/windowssnmp/
/usr/local/nagiosxi/html/includes/configwizards/windowssnmp/:
total 80
-rwxr-xr-x 1 nagios root 2120 Jan 23 18:52 CHANGES.TXT
-rwxr-xr-x 1 nagios root 413 Jan 23 18:52 config.xml
drwxr-xr-x 2 nagios root 4096 Feb 22 2016 plugins
-rwxr-xr-x 1 nagios root 1331 Jan 23 18:52 sanity.sh
drwxr-xr-x 2 nagios root 4096 Feb 22 2016 templates
-rwxr-xr-x 1 nagios root 58439 Jan 23 18:52 windowssnmp.inc.php

/usr/local/nagiosxi/html/includes/configwizards/windowssnmp/plugins:
total 104
-rwxr-xr-x 1 nagios root 22931 Jan 23 18:52 check_snmp_load.pl
-rwxr-xr-x 1 nagios root 26296 Jan 23 18:52 check_snmp_process.pl
-rwxr-xr-x 1 nagios root 25538 Jan 23 18:52 check_snmp_storage.pl
-rwxr-xr-x 1 nagios root 13120 Jan 23 18:52 check_snmp_win.pl
-rwxr-xr-x 1 nagios root 7065 Jan 23 18:52 check_win_snmp_disk.pl

/usr/local/nagiosxi/html/includes/configwizards/windowssnmp/templates:
total 4
-rwxr-xr-x 1 nagios root 1559 Jan 23 18:52 windowssnmp.cfg
-bash-4.1$

Forgot to add: I don't think it is related to timeouts b/c this is in my development environment where Apply Config runs real quick--the environment is small.

Re: Wndows SNMP wizard does not create Wnd Service service c

Posted: Fri Feb 10, 2017 1:44 pm
by tgriep
Can you login to the XI server as root and run this command,

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Then login to the XI GUI and run the Wizard and post the output of the tail command.
Hopefully it will show an error when the Wizard is run.

Re: Wndows SNMP wizard does not create Wnd Service service c

Posted: Mon Feb 13, 2017 2:48 pm
by corkyman
Problem reproduced and the log attached.

Re: Wndows SNMP wizard does not create Wnd Service service c

Posted: Mon Feb 13, 2017 3:03 pm
by tgriep
When a wizard it run, it creates the temporary config file in the import folder and when you ran it is created the following

Code: Select all

/usr/local/nagios/etc/import/3i4o2emq.tmp.cfg
Then the reconfigure runs and imports that file in to your system and adds it to the mysql database.
It looks like import ran but it didn't add it to the MYSQL database and I feel that it is still corrupted for that entry in the database.

Try running the Wizard again and use the IP address instead of the hostname which should create a new entry.
Let us know how it works out.
If is doesn't, open up a ticket at [email protected] referring to this post so we can continue on there for support.

Re: Wndows SNMP wizard does not create Wnd Service service c

Posted: Tue Feb 14, 2017 7:51 am
by corkyman
It did not work; I will open a ticket.

Re: Wndows SNMP wizard does not create Wnd Service service c

Posted: Tue Feb 14, 2017 10:30 am
by rkennedy
Sounds good - locking this up. We'll continue there.