Search found 5 matches

by martinsrs
Fri Dec 11, 2020 6:36 pm
Forum: Open Source Nagios Projects
Topic: Nagios Core Configure SQL Port
Replies: 0
Views: 1074

Nagios Core Configure SQL Port

Good night,
I use Nagios® Core ™ 4.3.1, I need to configure the SQL port, to monitor the SQL services, how can I do this configuration?
by martinsrs
Thu Aug 22, 2019 2:54 pm
Forum: Open Source Nagios Projects
Topic: Uptime Powered
Replies: 6
Views: 1492

Re: Uptime Powered

I want it to be critical when it is on for more than 60 days, this command is for when it is less than 60 days on. Not true, here's my example with a machine that has been up 85 days (more than 60) [root@localhost ~]# uptime 11:44:37 up 85 days, 2:25, 2 users, load average: 0.35, 0.36, 0.25 [root@l...
by martinsrs
Thu Aug 22, 2019 2:49 pm
Forum: Open Source Nagios Projects
Topic: Uptime Powered
Replies: 6
Views: 1492

Re: Uptime Powered

How do I do this in Windows, is it the same thing?
In NSClient it looks like this:
alias_up = checkUpTime MinWarn = 1d MinWarn = 1h
And in Webadmin I passed the command that spoke.
by martinsrs
Thu Aug 22, 2019 12:10 pm
Forum: Open Source Nagios Projects
Topic: Uptime Powered
Replies: 6
Views: 1492

Re: Uptime Powered

The default unit is minutes -u, Time unit of measurement (seconds|minutes|hours|days) (default: minutes) Try /usr/local/nagios/libexec/check_uptime -c 60 -u days or convert to minutes 60 * 24 * 60 = 86400 /usr/local/nagios/libexec/check_uptime -c 86400 I want it to be critical when it is on for mor...
by martinsrs
Thu Aug 22, 2019 11:54 am
Forum: Open Source Nagios Projects
Topic: Uptime Powered
Replies: 6
Views: 1492

Uptime Powered

Good afternoon
I am trying to configure nagios to alarm if the server is powered on for more than 60 days.
But I can't, does anyone know how I can do this?
With -c it alarms when it is shorter than the time I set.