{"action":"opened","issue":{"url":"https://api.github.com/repos/centreon/centreon-plugins/issues/369","repository_url":"https://api.github.com/repos/centreon/centreon-plugins","labels_url":"https://api.github.com/repos/centreon/centreon-plugins/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/centreon/centreon-plugins/issues/369/comments","events_url":"https://api.github.com/repos/centreon/centreon-plugins/issues/369/events","html_url":"https://github.com/centreon/centreon-plugins/issues/369","id":146959309,"number":369,"title":"[snmp_standard::plugin] mode interfaces","user":{"login":"ritouret","id":12165449,"avatar_url":"https://avatars.githubusercontent.com/u/12165449?v=3","gravatar_id":"","url":"https://api.github.com/users/ritouret","html_url":"https://github.com/ritouret","followers_url":"https://api.github.com/users/ritouret/followers","following_url":"https://api.github.com/users/ritouret/following{/other_user}","gists_url":"https://api.github.com/users/ritouret/gists{/gist_id}","starred_url":"https://api.github.com/users/ritouret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritouret/subscriptions","organizations_url":"https://api.github.com/users/ritouret/orgs","repos_url":"https://api.github.com/users/ritouret/repos","events_url":"https://api.github.com/users/ritouret/events{/privacy}","received_events_url":"https://api.github.com/users/ritouret/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T15:25:04Z","updated_at":"2016-04-08T15:25:04Z","closed_at":null,"body":"Hello,\r\n\r\nHere is a redondant network provided by two interfaces on all switches.\r\n\r\nMy customer want to create one service which would be warning if one interface is down and critical if the two interfaces are down.\r\n\r\nWhen using this command, **criterias are applied for each instance of the result list **:\r\n[centreon-engine@frparadm135 ~]$ /usr/lib/nagios/plugins/centreon_plugins.pl --plugin=network::extreme::snmp::plugin --mode=interfaces  --add-status --interface=\"1048\",\"2050\" --hostname=myhost --snmp-version 2c --snmp-community  public --snmp-timeout 15 --snmp-retries 1 --verbose --critical-status='%{admstatus} eq  \"down\" and %{opstatus} eq \"down\"' --warning-status='%{admstatus} eq  \"up\" and %{opstatus} eq \"down\"'\r\nOK: All interfaces are ok |\r\nInterface '1:48' Status : up (admin: up)\r\nInterface '2:50' Status : up (admin: up)\r\n\r\nWould it be possible to add options to calculate the same criteria but **for all instance of the result list** ?\r\n--critical-status-calculation=unit (each interface, by default) or both (all the interface)\r\n--critical-status-operand=OR or AND or XOR\r\n--warning-status-calculation=unit (each interface, by default) or both (all the interface)\r\n--warning-status-operand=OR or AND or XOR\r\n\r\nWith these options, we would be able to have warning status if one interface is down with :\r\n--warning-status-calculation=both\r\n--warning-status-operand=OR\r\n\r\nand a critical status if two interfaces are down with :\r\n--critical-status-calculation=both\r\n--critical-status-operand=AND"}}