Page 1 of 2

SNMPTT Wizard

Posted: Wed Nov 12, 2014 1:03 pm
by jbennett
When I go to try this wizard I cannot select any hosts. THe wizard doesn't seem to find any hosts. Am I missing something simple here?

Re: SNMPTT Wizard

Posted: Wed Nov 12, 2014 3:51 pm
by slansing
By SNMPTT wizard, do you mean SNMP Trap wizard?? If so, what version of XI are you running? And what version of the wizard? Admin > Manage Config Wizards.

Re: SNMPTT Wizard

Posted: Wed Nov 12, 2014 3:55 pm
by jbennett
Just updated to 2.0 from the previous version today - it was the same on both versions.

Version: 1.4

Re: SNMPTT Wizard

Posted: Wed Nov 12, 2014 4:20 pm
by lmiltchev
Try to run the wizard, then check the apache error log

Code: Select all

tail -30 /var/log/httpd/error_log
and post any relevant errors you see in it.

Run the following commands and show us the output:

Code: Select all

ll -d /usr/local/nagiosxi/html/includes/configwizards/snmp-trap/
ll /usr/local/nagiosxi/html/includes/configwizards/snmp-trap/
Are you having issues with any other wizards as well, for example Bulk Host Cloning and Import wizard? BTW, what is the number of hosts that you see listed under the Nagios XI Installation Profile?

Re: SNMPTT Wizard

Posted: Wed Nov 12, 2014 6:15 pm
by jbennett
lmiltchev wrote:Try to run the wizard, then check the apache error log

Code: Select all

tail -30 /var/log/httpd/error_log
and post any relevant errors you see in it.

Code: Select all

[xxxxx@xxxxxx ~]$ sudo tail -30 /var/log/httpd/error_log
[Wed Nov 12 10:56:20 2014] [error] [client 10.100.6.104] PHP Notice:  Undefined index:  initial_state in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 117, referer: http://lnttavmnag1/nagiosxi/includes/components/ccm/index.php?cmd=view&type=service&page=1
[Wed Nov 12 10:56:20 2014] [error] [client 10.100.6.104] PHP Notice:  Undefined index:  initial_state in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 117, referer: http://lnttavmnag1/nagiosxi/includes/components/ccm/index.php?cmd=view&type=service&page=1
[Wed Nov 12 10:56:20 2014] [error] [client 10.100.6.104] PHP Notice:  Undefined index:  initial_state in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 117, referer: http://lnttavmnag1/nagiosxi/includes/components/ccm/index.php?cmd=view&type=service&page=1
[Wed Nov 12 10:56:20 2014] [error] [client 10.100.6.104] PHP Notice:  Undefined index:  initial_state in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 117, referer: http://lnttavmnag1/nagiosxi/includes/components/ccm/index.php?cmd=view&type=service&page=1
[Wed Nov 12 10:56:20 2014] [error] [client 10.100.6.104] PHP Notice:  Undefined index:  check_interval in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/check_settings.php on line 30, referer: http://lnttavmnag1/nagiosxi/includes/components/ccm/index.php?cmd=view&type=service&page=1
[Wed Nov 12 10:56:20 2014] [error] [client 10.100.6.104] PHP Notice:  Undefined index:  retry_interval in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/check_settings.php on line 34, referer: http://lnttavmnag1/nagiosxi/includes/components/ccm/index.php?cmd=view&type=service&page=1
[Wed Nov 12 10:59:19 2014] [notice] caught SIGTERM, shutting down
[Wed Nov 12 10:59:20 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Nov 12 10:59:20 2014] [notice] SSL FIPS mode disabled
[Wed Nov 12 10:59:20 2014] [notice] Digest: generating secret for digest authentication ...
[Wed Nov 12 10:59:20 2014] [notice] Digest: done
[Wed Nov 12 10:59:20 2014] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Nov 12 10:59:20 2014] [notice] SSL FIPS mode disabled
[Wed Nov 12 10:59:20 2014] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[Wed Nov 12 11:00:07 2014] [notice] caught SIGTERM, shutting down
[Wed Nov 12 11:00:08 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Nov 12 11:00:08 2014] [notice] SSL FIPS mode disabled
[Wed Nov 12 11:00:08 2014] [notice] Digest: generating secret for digest authentication ...
[Wed Nov 12 11:00:08 2014] [notice] Digest: done
[Wed Nov 12 11:00:08 2014] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Nov 12 11:00:08 2014] [notice] SSL FIPS mode disabled
[Wed Nov 12 11:00:08 2014] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[Wed Nov 12 11:11:22 2014] [notice] caught SIGTERM, shutting down
[Wed Nov 12 11:11:23 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Nov 12 11:11:23 2014] [notice] SSL FIPS mode disabled
[Wed Nov 12 11:11:23 2014] [notice] Digest: generating secret for digest authentication ...
[Wed Nov 12 11:11:23 2014] [notice] Digest: done
[Wed Nov 12 11:11:23 2014] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Nov 12 11:11:23 2014] [notice] SSL FIPS mode disabled
[Wed Nov 12 11:11:24 2014] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
Run the following commands and show us the output:

Code: Select all

ll -d /usr/local/nagiosxi/html/includes/configwizards/snmp-trap/
ll /usr/local/nagiosxi/html/includes/configwizards/snmp-trap/

Code: Select all

[xxx@xxxx]# ll -d /usr/local/nagiosxi/html/includes/configwizards/snmp-trap/
drwxr-x--- 5 nagios nagios 4096 Jul 11 09:54 /usr/local/nagiosxi/html/includes/configwizards/snmp-trap/
[xxx@xxxx]# ll /usr/local/nagiosxi/html/includes/configwizards/snmp-trap/
total 32
-rwxr-x--- 1 nagios nagios  173 Jul 11 09:54 config.xml
drwxr-x--- 2 nagios nagios 4096 Aug 15  2012 logos
drwxr-x--- 2 nagios nagios 4096 Aug 15  2012 plugins
-rwxr-x--- 1 nagios nagios  740 Jul 11 09:54 sanity.sh
-rwxr-x--- 1 nagios nagios 9362 Jul 11 09:54 snmp-trap.inc.php
drwxr-x--- 2 nagios nagios 4096 Aug 15  2012 templates
Are you having issues with any other wizards as well, for example Bulk Host Cloning and Import wizard? BTW, what is the number of hosts that you see listed under the Nagios XI Installation Profile?
Yes, when I just tried the Bulk Host Cloning and Import wizard, the drop down for the Host list is empty.

Aaaannnnddddd....we may have a problem....

Code: Select all

Total Hosts: 0 
Total Services: 0 
I should have close to 1000 hosts and close to 23,000 services. When I check the Operations center, I see my hosts and services showing up. *confused*

Re: SNMPTT Wizard

Posted: Wed Nov 12, 2014 9:12 pm
by Box293
Can you please run the repair process in this document:

Code: Select all

http://assets.nagios.com/downloads/nagiosxi/docs/Repairing_The_Nagios_XI_Database.pdf

Re: SNMPTT Wizard

Posted: Thu Nov 13, 2014 9:29 am
by jbennett
I just did this, yet I still only show 0 hosts and services.

Re: SNMPTT Wizard

Posted: Thu Nov 13, 2014 1:48 pm
by lmiltchev
Do you see the hosts/services in the CCM? How many do you see when you log in Nagios Core?

Code: Select all

http://ip address/nagios
Can you log in mysql successfully?

Code: Select all

mysql -pnagiosxi

Re: SNMPTT Wizard

Posted: Thu Nov 13, 2014 2:41 pm
by jbennett
lmiltchev wrote:Do you see the hosts/services in the CCM? How many do you see when you log in Nagios Core?

Code: Select all

http://ip address/nagios
Attached two images to show some of what I see.
Can you log in mysql successfully?

Code: Select all

mysql -pnagiosxi

Code: Select all

[xxxx@xxxx]# mysql -pnagiosxi
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 12438
Server version: 5.0.95 Source distribution

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

Re: SNMPTT Wizard

Posted: Thu Nov 13, 2014 5:57 pm
by lmiltchev
We may need to move this to our ticketing system, so that we can get your latest profile and review all of the logs.

Admin->System Profile->Download Profile->save and email us the "profile.zip" to [email protected]