Not using values in cfg file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Not using values in cfg file

Post 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$
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Not using values in cfg file

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Not using values in cfg file

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Not using values in cfg file

Post 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 :)
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked