interface(s) to monitor connect to.
-=item I<Status>
-
-If I<Status> is greater than or equal to zero the message indicates interface is up,
-if I<Status> is less than zero the message indicates interface is down.
-
=back
=head2 Plugin C<conntrack>
continue;
}
- if (errno == EINTR)
- {
+ if (errno == EINTR) {
// Interrupt, so just return
return 0;
}
for (interface_list_t *il = interface_list_head; il != NULL;
il = il->next) /* {{{ */
{
- uint32_t status;
- uint32_t prev_status;
- uint32_t sent;
-
- status = il->status;
- prev_status = il->prev_status;
- sent = il->sent;
+ uint32_t status = il->status;
+ uint32_t prev_status = il->prev_status;
+ uint32_t sent = il->sent;
if (status != prev_status && sent == 0) {
connectivity_dispatch_notification(il->interface, "gauge", status,
{
if (ignorelist == NULL) {
ignorelist = ignorelist_create(/* invert = */ 1);
+
+ if (ignorelist == NULL)
+ return -1;
}
if (strcasecmp(key, "Interface") == 0) {