hello,
I wanted to have an alert following the achievement of a percentage of disk space used.
If you know enough to change the disk function by entering a value greater than 0 or if it is another kind of function?
regards
hello,
I wanted to have an alert following the achievement of a percentage of disk space used.
If you know enough to change the disk function by entering a value greater than 0 or if it is another kind of function?
regards
There are many disk probes around… You have to make you own if you need to test any drive other than the default.
Here are two functions and a probe that complain if the first disk in a system is over 90% full. I pasted some text to get you started if you want to build these.



disk01test
if(array_size(oid_column(“1.3.6.1.2.1.25.2.3.1.6”,10,5)),round((oid(“1.3.6.1.2.1.25.2.3.1.6.1”,10,5)/oid(“1.3.6.1.2.1.25.2.3.1.5.1”,10,5))100),“False”)
Probe
if(disk01test()<>“False”,if(disk01test() < 90, “”, concatenate("Warning: “, disk01name(), " is “, disk01test(),”%”)), “Failed read 1st disk”)
For disk 2 the oid change is in bold, I made about 20 of these since some linux systems have moved the disk to start at 31.
if(array_size(oid_column(“1.3.6.1.2.1.25.2.3.1.6”,10,5)),round((oid("1.3.6.1.2.1.25.2.3.1.6*.2**",10,5)/oid(“1.3.6.1.2.1.25.2.3.1.5.2”,10,5))*100),“False”)
HTH,
Lebowski
great! thanks but I had tried this approach.
I had thought to use a feature used by dude (hdd_usage)
I added this bit of code that I have learned from other probes and in the attached img but does not work.
when I do the test probe does not give me no errors but seems to work on the test value at present is 98%.
the sense of the test seems very simple, if the value of space used is greater than 90 send me an alert.
think that the test is wrong?

This should help… yep your > should be < the logic is backwards since you want a “false” when the disk is greater than 90.

HTH,
Lebowski
is true, it works!
But I have problems with the delivery of alert, the image of the server switches to orange on the inside I see the alert of the disc but I do not send email as other alerts.
you think when the image goes to orange in that state is? unstable? unknown? … ?
regards
Please post what you have in Notifications
in attach


notification seems to be configured correctly. maybe the email settings are not correct?
no, the work remaining alert, the email is sent and received by us.

Starting with the top left “Settings” button click the Polling tab, in the list there should be a check mark on “Notification” in your case “email”. Click the … then open Notification and verify there is a check on enabled. In advanced select unstable->down and down->up. Probes only go from unstable to down. There is a case where it can go from up to down but not normally. A possible case for “up->down” is you do not use retries. Close this.
Click the test button.
Double click on any device, click the Polling tab, check enabled, un-check “use notifications” this setting is for this device only and you want a global notification to come from the main configuration.
It looks like you have renamed “Notification” to “email” so open that in the global settings and modify it as needed.
HTH,
Lebowski
[edit for clarity]
hello,
my settings for email are global for the whole program. so when there is an alert is sent on the email as I posted in my previous message.
for this probe the mail is sent only if I need to check the email notification to the individual service (see picture Untitled-1.png for the “serv12”), and no such behavior seems strange?
But there’s another unusual thing, the same service on a server seems to work properly on another (see picture Untitled-2.png for the “serv0”) hand me the message “not available” (?)
regards


hello,
I solved it by making some changes to the function that now works fine. below the text.
available: if(hdd_usage()>0, 1, -1)
error: if(hdd_usage()<90, “”, “Disk usage > 89%”)
value: hdd_usage()
unit: %
I also noted that as stated lebowski you must flag the email notification does not send otherwise.
What puzzles me about it, I can not understand why, because the alert is triggered.
regards
Good it is working! Your available line will let your probe automatically install on devices with out disks, if you don’t use autodiscover it doesn’t matter.
Only use 0 for false in the dude. I know the manual shows -1 in many places for false. It is not.
Lebowski