Operating System - Linux
1752810 Members
5972 Online
108789 Solutions
New Discussion

Re: ICE for Linux 6.3 Nagios problem

 
SOLVED
Go to solution
Donna Firkser
Regular Advisor

Re: ICE for Linux 6.3 Nagios problem

I consulted with Mark Schroeder and he suggested editing /opt/hptc/nagios/etc/contacts.cfg and adding "host_notifications_enabled" and "service_notifications_enabled" attributes, both set to 0, for the "nagios" contact definition as shown below.  This should prevent the alerts from being mailed to the nagios user but they will still get forwarded to HP SIM.  Let us know how it works out.

 

e.g. /opt/hptc/nagios/etc/contacts.cfg (excerpt)

# 'nagios' contact definition
define contact{
        contact_name                    nagios
        alias                           Nagios Admin
        host_notifications_enabled      0
        service_notifications_enabled   0
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-by-email,notify-by-epager
        host_notification_commands      host-notify-by-email,host-notify-by-epager
        email                           nagios 
        pager                           nagios
        }

 

Thanks,

Donna

 

Allen012
Advisor

Re: ICE for Linux 6.3 Nagios problem

Tried the modification - no change. 

Donna Firkser
Regular Advisor

Re: ICE for Linux 6.3 Nagios problem

I forgot to mention that you need to restart nagios.  Did you do that?

 

/etc/init.d/nagios stop

/etc/init.d/nagios start

 

Just curious, what kind of alerts are you seeing?  Are they valid alerts?

 

Donna

Allen012
Advisor

Re: ICE for Linux 6.3 Nagios problem

Did a restart of nagios after the change.

 

The alerts right now all refer to a single system.  They are complaining of a configuration problem, and telling me to edit /etc/snmp/snmp.conf.  That file has been editted, and has valid settings, just like all of the others that are not complaining.

Donna Firkser
Regular Advisor

Re: ICE for Linux 6.3 Nagios problem

So you're still seeing alerts after restarting nagios, correct?  Is the alert for the "configuration" service?

 

Can you run /opt/hptc/nagios/libexec/check_node_config and send me the output?

Allen012
Advisor

Re: ICE for Linux 6.3 Nagios problem

Argument "NRPE:" isn't numeric in division (/) at /opt/hptc/nagios/libexec/check_node_config line 128.

Argument "NRPE:" isn't numeric in division (/) at /opt/hptc/nagios/libexec/check_node_config line 128.

Argument "NRPE:" isn't numeric in division (/) at /opt/hptc/nagios/libexec/check_node_config line 128.

Argument "NRPE:" isn't numeric in division (/) at /opt/hptc/nagios/libexec/check_node_config line 128.

Argument "NRPE:" isn't numeric in division (/) at /opt/hptc/nagios/libexec/check_node_config line 128.

Argument "NRPE:" isn't numeric in division (/) at /opt/hptc/nagios/libexec/check_node_config line 128.

[1322609055] PROCESS_SERVICE_CHECK_RESULT:;in1;configuration;0;<B>icelx7: Proliant BL460c G7</B> Sockets/Cores(Unable/to) mem(0GB) Console(iLO) Unknown (edit /etc/snmp/snmp.conf)

[1322609055] PROCESS_SERVICE_CHECK_RESULT:;lg1;configuration;0;<B>icelx3: Proliant DL380 G7</B> Sockets/Cores(Unable/to) mem(0GB) Console(iLO) Unknown (edit /etc/snmp/snmp.conf)

[1322609055] PROCESS_SERVICE_CHECK_RESULT:;db1;configuration;0;<B>icelx5: Proliant BL460c G7</B> Sockets/Cores(Unable/to) mem(0GB) Console(iLO) Unknown (edit /etc/snmp/snmp.conf)

[1322609055] PROCESS_SERVICE_CHECK_RESULT:;ui1;configuration;0;<B>icelx2: Proliant BL460c G7</B> Sockets/Cores(Unable/to) mem(0GB) Console(iLO) Unknown (edit /etc/snmp/snmp.conf)

[1322609055] PROCESS_SERVICE_CHECK_RESULT:;cc1;configuration;0;<B>icelx4: Proliant DL380 G7</B> Sockets/Cores(2/8) mem(24GB) Console(iLO) Unknown (edit /etc/snmp/snmp.conf)

[1322609055] PROCESS_SERVICE_CHECK_RESULT:;au1;configuration;0;<B>icelx6: Proliant BL460c G7</B> Sockets/Cores(Unable/to) mem(0GB) Console(iLO) Unknown (edit /etc/snmp/snmp.conf)

[1322609055] PROCESS_SERVICE_CHECK_RESULT:;db2;configuration;0;<B>icelx8: Proliant BL460c G7</B> Sockets/Cores(Unable/to) mem(0GB) Console(iLO) Unknown (edit /etc/snmp/snmp.conf)

[1322609055] PROCESS_SERVICE_CHECK_RESULT:;nh;configuration;0;<B>icelx1: Proliant DL380 G7</B> Sockets/Cores(2/8) mem(24GB) Console(iLO) Factory

Total of 8 nodes, 8 enabled, 0 disabled 8 configured

 

 

 

 

 

 

 

Donna Firkser
Regular Advisor

Re: ICE for Linux 6.3 Nagios problem

Can you run the following command and send me the output.

 

/opt/hptc/nagios/libexec/gather_all_data --verbose

 

It doesn't look like Nagios is configured properly on all your managed nodes.  When you run Options -> IC-Linux -> "Configure Management Services" does the output show any errors (scroll to the end of Stdout to see)?  The task will always show "Complete" even if there are errors.

 

e.g.

Checking to see if any errors occurred ...

Warning: Cannot distribute pdsh keys to ...

Warning: Cannot distribute pdsh keys to ...

Warning: Cannot distribute pdsh keys to ..

 
The above errors occurred.  Please investigate.
Please view /var/log/mgmt.log for details.

Done