Page 1 of 1

Not using values in cfg file

Posted: Wed Jun 04, 2014 4:49 pm
by BanditBBS
Ok, so I had a bunch of service defined like so:

Code: Select all

define service {
        host_name                       NBWDCAR4301
        service_description             Temp Sensor 6
        use                             wdc_netbotz_sensor
        servicegroups                   network_oncall
        check_command                   check_custom_nb!redacted!45:75!40:80!7!15:65!10:70!!
        check_period                    xi_timeperiod_24x7
        notification_period             xi_timeperiod_24x7
        _xiwizard                       snmp
        register                        1
        }

define service {
        host_name                       NBWDCAR4301
        service_description             Temp Sensor 7
        use                             wdc_netbotz_sensor
        servicegroups                   network_oncall
        check_command                   check_custom_nb!redacted!45:75!40:80!7!15:65!10:70!!
        check_period                    xi_timeperiod_24x7
        notification_period             xi_timeperiod_24x7
        _xiwizard                       snmp
        register                        1
        }
Well, these were returning critical(on the back of racks, so a little hotter. I changed all the back of rack sensors to a higher temp, liek so:

Code: Select all

define service {
        host_name                       NBWDCAR4301
        service_description             Temp Sensor 6
        use                             wdc_netbotz_sensor
        servicegroups                   network_oncall
        check_command                   check_custom_nb!redacted!45:90!40:100!7!15:65!10:70!!
        check_period                    xi_timeperiod_24x7
        notification_period             xi_timeperiod_24x7
        _xiwizard                       snmp
        register                        1
        }

define service {
        host_name                       NBWDCAR4301
        service_description             Temp Sensor 7
        use                             wdc_netbotz_sensor
        servicegroups                   network_oncall
        check_command                   check_custom_nb!redacted!45:90!40:100!7!15:65!10:70!!
        check_period                    xi_timeperiod_24x7
        notification_period             xi_timeperiod_24x7
        _xiwizard                       snmp
        register                        1
        }
Well, some are working as intended and some are not. If I run the command from the CLI I get back an OK but from web page I am getting criticals. It makes no sense. it is as though nagios is still using the original $ARG2$ and $ARG3$

Re: Not using values in cfg file

Posted: Wed Jun 04, 2014 4:52 pm
by sreinhardt
Just to verify, 2014r1.0 or 1.1, and is this on your test system with Andy's changes? Also, any differences in dates between configs that have the alteration and ones that do not, referring to the flat files?

Re: Not using values in cfg file

Posted: Wed Jun 04, 2014 6:14 pm
by BanditBBS
I'm sorry for not specifying in my original post. I was already at work longer than I wanted to be(last 2 weeks here, WOOHOO! LOL) for the day.

This is 2012R2.8c. The config that is working and is not working are in the same exact file. Temp Sensor 6 isn't using the changes but Temp Sensor 7 is. I makes no sense, I can't wrap my head around it.

Re: Not using values in cfg file

Posted: Wed Jun 04, 2014 9:21 pm
by BanditBBS
I fixed this. The servicetemplate had a hostgroup assigned in it and not sure why and removed it and now it is using the proper variables. I still can't figure out why it was happening though. Go ahead and close this up!

Just in case I don't see you people again before I leave here on the 18th, I start new job on 23rd, so will be back shortly after that! Enjoy the break from putting up with my posts :)