Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Cleaning #3

Merged
merged 3 commits into from
May 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 26 additions & 29 deletions devmon
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,39 @@ our $VERSION = '0.3.1-beta1';
# (at your option) any later version. Please see the file named
# 'COPYING' that was included with the distrubition for more details.

# Global Modules
use strict;

# Devmon specific modules
use FindBin;
use lib "$FindBin::Bin/modules";
use dm_config;
use dm_templates;
use dm_snmp;
use dm_tests;
use dm_msg;

# Do start-up housekeeping
initialize($VERSION);

# Enter main loop
do_log("Entering poll loop", 0);
while (1) {

# Global Modules
use strict;

# Devmon specific modules
use FindBin;
use lib "$FindBin::Bin/modules";
use dm_config;
use dm_templates;
use dm_snmp;
use dm_tests;
use dm_msg;

# Do start-up housekeeping
initialize($VERSION);

# Enter main loop
do_log("Entering poll loop", 0);
while (1) {
# Read in template data
read_templates();
read_templates();

# Load/reload test data & do failover recover
sync_servers();
sync_servers();

# Now collect SNMP data
poll_devices();
poll_devices();

# Now do tests
tests();
tests();

# Now send messages
send_msgs();
send_msgs();

# Do time tests and then sleep
time_test();

}

time_test();
}
Loading