Juniper / healthbot-rules

Apache License 2.0
43 stars 84 forks source link

nhcount.yml target fpc not being passed in #464

Closed jalphonso closed 3 years ago

jalphonso commented 3 years ago

Healthbot raises an alarm that no data is being received for this sensor. Same problem as in issue #465

https://github.com/Juniper/healthbot-rules/blob/master/juniper_official/Solutions/EVPN-VXLAN/nhcount.yml

> request routing-engine execute command "cprod -A fpc0 -c 'show nhdb summary'"
 Total number of NH = 332

Running manually and passing in the target arg to salt works.

root@device-group-leaf-iagent-5d5c749b5b-ksrrx:/# salt '*' iagent.run NHCountTable nhcount.yml target='fpc0' /jfit/salt/_tables/
leaf_U2411NJ-ULAB:
    ----------
    changes:
        ----------
        hostname:
            172.17.4.11
        out:
            True
        reply:
            ----------
            nhcount:
                203
        table:
            ----------
            NHCountTable:
                ----------
                command:
                    show nhdb summary
                target:
                    fpc0
                view:
                    NHCountView
            NHCountView:
                ----------
                regex:
                    ----------
                    nhcount:
                        (\d+).*
        tablename:
            NHCountTable
    comment:
    name:
        'iagent.run'
    result:
        True
gvarao commented 3 years ago

Not a problem as online FPC playbook deployment is mandatory