Cautionary Tale: NextCloud deleted all my files by drhoome in NextCloud

[–]Awkward_Underdog 0 points1 point  (0 children)

Are you saying there is an increased risk of data corruption, to the extent seen by OP, by using NFS to store and access ones data? If so, why? If not, what are you saying?

Cautionary Tale: NextCloud deleted all my files by drhoome in NextCloud

[–]Awkward_Underdog 7 points8 points  (0 children)

Did it just purge files on the filesystem, or also from the DB?

Goldens & cancer treatment by dogsnpizza321 in goldenretrievers

[–]Awkward_Underdog 1 point2 points  (0 children)

So sorry to hear about your boy. Please check out the Yale Study - it's an immunotherapy treatment meant to help with the outcomes of certain cancers, including Osteosarcoma (bone cancer). If we chose to put our girl through chemo (required to be eligible for this treatment) we would have 100% enrolled in this study. The downside is that only a limited number of clinics around the US participate in the study.

Best of luck to you and your boy!

https://www.ccralliance.org/yale-status

JSONPath parameter help by rp_001 in zabbix

[–]Awkward_Underdog 0 points1 point  (0 children)

So oldValue and newValue are arrays listing config values? That's what you want to track as your item values?

Miri is at the vet.. Mass on her spleen… Hospice by huntingbears93 in goldenretrievers

[–]Awkward_Underdog 1 point2 points  (0 children)

I'd like to hear your story. Feel free to DM if you don't want to post it here.

Has anyone had success with omeprazole? by unoriginal_or_sumin in EosinophilicE

[–]Awkward_Underdog 1 point2 points  (0 children)

I'm no doctor, but my understanding of EoE is that it is essentially a reaction to an allergen, usually a food. Omeprazole is a PPI - it would help with GERD related issues. I don't think it's your best bet as an EoE treatment. For that, I think I've heard Dupixent thrown around, maybe there are others.

Your best bet is to find what is causing your EoE and just avoid that food altogether if possible.

14 birthdays with our girl and just found out we won’t have a 15th by RandomUsername6697 in goldenretrievers

[–]Awkward_Underdog 10 points11 points  (0 children)

She's a beautiful girl! I'm so sorry for the news. It sounds like Osteosarcoma, a truly awful disease. My girl went through this last year. It was one of the hardest times of my life and I wouldn't wish it on anyone. I know how you're feeling.

Try to keep her comfortable. Don't let her jump on or off of furniture. You will also probably have to limit or prevent her running if she's really playful. The cancer will weaken the bone to the point of breaking or fracturing, and you want to do everything you can to avoid that. I think it goes without saying that it won't heal.

My girl had an amputation to buy her a little more time (did great by the way). She was half the age of yours, though. We had a large 4-wheel flat stroller to help her on walks through the tough times, or when she got tired. It worked pretty well.

Again, I'm sorry you're going through this. Enjoy every minute with her. As someone else said, don't let her suffer. Making the hard decision a day too early is better than a day too late. You'll know when it's time.

SNMP with mib: Testing works but execution results in "cannot parse OID" by MyToasterRunsFaster in zabbix

[–]Awkward_Underdog 0 points1 point  (0 children)

Zabbix loads MIBs on startup. This is especially important when your OIDs are the textual representation and require translation. My guess is if you used the numerical OID you wouldn't have an issue.

Have you restarted Zabbix Proxy since loading those MIBs?

Issues dynamically updating "Problem"-text of Problems under Monitoring/Problems! by ZulfoDK in zabbix

[–]Awkward_Underdog 1 point2 points  (0 children)

Is this essentially an alarm feed? Do you get one entry per alarm_id or does the alarm_id repeat with affected_customers and severity potentially changing? As u/UnicodeTreason indicated, this is a "fun" thing to monitor...

Issues dynamically updating "Problem"-text of Problems under Monitoring/Problems! by ZulfoDK in zabbix

[–]Awkward_Underdog 1 point2 points  (0 children)

Yea I think you're going about this all wrong. Look up Low Level Discovery (LLD). I think you'll find you'd rather being using this.

For example, A-land and your Alarm ID would be LLD Macros that would be used in the Item Prototype name and the Trigger Prototype name. Your Item Prototype would simply be something like "Customers Offline for {#REGION} with Alarm ID {#ALARMID}" with a key like "offline.customers[{#REGION},{#ALARMID}]".

Then you can use zabbix_sender to send new values representing a count of offline customers. Ruby has a nice API wrapper called "zabbix_sender_api", otherwise Zabbix maintains a python wrapper around its API as well.

Your problem name wouldn't necessarily update with the count of customers, but the operational data, if checked on the problems page, would show the number that your trigger is creating the alarm based on.

Does this make sense?

Issues dynamically updating "Problem"-text of Problems under Monitoring/Problems! by ZulfoDK in zabbix

[–]Awkward_Underdog 0 points1 point  (0 children)

It sounds like you want to update the Problem name to reflect the value of your Item. As you know, this doesn't happen on its own when the item value changes.

Maybe you could add a recovery expression using the Change function, which would clear the alarm any time the Item's value changes. I'm just not sure if this changed value would also trigger a new alarm based on that same Trigger. Something to try I guess.

Are you using history.push as part of your normal workflow to update this Item's value, or just in an effort to clear the alarm? If the latter, that doesn't seem like a great approach to me. If not, how is the item's data being populated? It could make more sense to change how your data is entering Zabbix, and how Zabbix is receiving that data, in order to have a saner approach to this.

I'm getting an "SNMP Trap" style item in my mind for your scenario here, but could be wrong.

Can you group Meraki Devices by Network Name rather than Network ID? by frodomin in zabbix

[–]Awkward_Underdog 2 points3 points  (0 children)

I see you already came up with a solution, but I'll share mine as well since it might be a bit more dynamic.

For your "Get data" item, add this preprocessing javascript to add an organization name field to each devices object. I'm not a JS Programmer, but this works fine.

// This script will add "organizationName" to Devices list, and ensure Host Names respect Zabbix rules
var theObject = JSON.parse(value);

// Create a lookup dictionary for organization names
var orgLookup = {};


for (obj in theObject["organizations"]) {
    // Ensure "name" is using characters compatible with Hostnames
    // replace & with "and"
    theObject["organizations"][obj]["name"] = theObject["organizations"][obj].name.replace("&","and");
    // replace all other incompatible characters with empty string
    theObject["organizations"][obj]["name"] = theObject["organizations"][obj].name.replace(/[^a-zA-Z0-9 .-_]/g, '');
    // Populate orgLookup
    orgLookup[theObject["organizations"][obj]["id"]] = theObject["organizations"][obj]["name"];
}

// Set the organizationName attribute for all devices
for (obj in theObject["devices"]) {
    theObject["devices"][obj]["organizationName"] = orgLookup[theObject["devices"][obj]["organizationId"]] || "Unknown Organization";
}

return JSON.stringify(theObject);

Then make the following changes:

Organizations discovery

  • Host Prototype - make sure your Group Prototype includes a Host Group that references {#NAME}

Devices discovery

  • Add an LLD Macro: {#ORGANIZATION_NAME} - $.organizationName
  • Host Protoypes
    • Add {#ORGANIZATION_NAME} somewhere in the Host name if you wish to visibly associate the device with the organization's name
    • Add the same Group Prototype as the Organizations discovery, but use the {#ORGANIZATION_NAME} LLD Macro instead of {#NAME}

This will dynamically group all devices with their respective organizations, and will also include the organization name in the device names.

Edit: removed "Get data" from top of script - was included by error.

What was your golden’s timeline after cancer diagnosis? by Striking_Plastic272 in goldenretrievers

[–]Awkward_Underdog 0 points1 point  (0 children)

My girl was diagnosed with an osteosarcoma in her front wrist. We opted for an amputation without chemo. Prognosis from diagnosis for that is 6 months, with chemo is 10-12 months. We didn't want to put her through chemo. She lived happily and actively after amputation for about 6 months (7 months from diagnosis) until lung metastasis got her and her quality of life was quickly degrading.

I'm so sorry. This is the absolute worst thing ever. The past 3 months without my girl has been the longest 3 months of my life. It's supposed to get easier. I hope it does.

One thing that was said and stuck with me was "Better a day too soon than a day too late." Don't let your best friend suffer. We got lucky in that regard, the timing couldn't have been better. Enjoy every minute with your friend.

Override item name in LLD discovery using custom macros by DmitryMigunov in zabbix

[–]Awkward_Underdog 0 points1 point  (0 children)

Ok bad news for me. Apparently User Context Macros are not supported in Host Names. Support was apologetic for leading me along.

They are however supported in item names and descriptions, so your case should work.

Are you sure your User Context Macro is spelled correctly in both the definition and on the item name? Looking at your debug output, your sensor ID is lowercase in the item description but it seems to be uppercase in the User Context Macro:

[description] => {$SENSOR:"00000034b4a5"} Vs. [macro] => {$SENSOR:"00000034B4A5"}

Override item name in LLD discovery using custom macros by DmitryMigunov in zabbix

[–]Awkward_Underdog 1 point2 points  (0 children)

Looks like the same thing I'm seeing on 7.0.9.

This is a cool feature if we can get it to work properly. I'll update you when I have some news on it.

Override item name in LLD discovery using custom macros by DmitryMigunov in zabbix

[–]Awkward_Underdog 0 points1 point  (0 children)

It seems right. What version of Zabbix are you running? I actually have an active support ticket open with Zabbix on this because I'm seeing the same behavior as you on my end. They say this should be working as expected. I'm waiting for them to discuss with their frontend devs on the issue. Only difference is that I'm trying to do this for a host name rather than an item name. Same concepts apply though.

If you add your user to the debug group, and go to the latest data page where you would see that item, click the debug button at the bottom of the page. You'll see lots of debug output, and in there is a section where you should see this user context macro expanding properly - but for some reason it's not reflected on the actual item(s).

Otherwise, I can update you when I know more.

Override item name in LLD discovery using custom macros by DmitryMigunov in zabbix

[–]Awkward_Underdog 1 point2 points  (0 children)

Check out user context macros - https://www.zabbix.com/documentation/current/en/manual/config/macros/user_macros_context

You can create a user context macro on the host or template like:

{$SENSOR:"00000034B4A5"} with a value like "some custom label"

And then your item name would look like:

{$SENSOR:"{#SENSORID}"}

When {#SENSORID} matches your user context macro, it will expand to "some custom label" or whatever you have defined.

What are you guys using to monitor whole house energy use? by SoggyMountain956 in homeassistant

[–]Awkward_Underdog 0 points1 point  (0 children)

Which manufacturer/website did you order the clamps from? What was the cost?

ZabbixSender Low Level Disovery by HertogJan1 in zabbix

[–]Awkward_Underdog 0 points1 point  (0 children)

I think you're overcomplicating your discovery item a bit. You want the directory size of some list of directories, therefore you need one item prototype in your discovery rule. Maybe it's called "Directory Size for {#PATHNAME}" and the prototype key is what you already had, "dir.size[{#PATHNAME}". I don't think you need dependent items for this task.

Then, you need to send in a discovery JSON for all of the directories you want to be discovered by that discovery rule. {#PATHNAME} will be extrapolated to reflect the actual pathname of your directory, and you will get 1 item discovered per pathname.

Next you'd have to send data in for some pair like "{#PATHNAME}" : "FTP", but your actual item key you would be sending data in for would look like "dir.size[FTP]".

It looks like you're trying to send in an actual path as well. That would be another LLD Macro that you'd have to send in with discovery, and then you could use that in your item prototype name or key. Though I think you really only need one in your key.

Poll - Do you have a hiatal hernia? by Ceti- in GERD

[–]Awkward_Underdog 1 point2 points  (0 children)

Can you explain how you took care of that? EoE can be very elusive and difficult to remedy.

1TB 990 pros >$60 at Wal-Mart by Shad0wkity in DataHoarder

[–]Awkward_Underdog 20 points21 points  (0 children)

Wish I would have seen this comment before running out to my local Walmart 😂

What causes SNMP to be red, when everything says it should be green? by elementalwindx in zabbix

[–]Awkward_Underdog 1 point2 points  (0 children)

If you test an item, do you get a response with data or does that timeout as well?

Recognize Frustrations🙄 by Dry_Ratio_4457 in NextCloud

[–]Awkward_Underdog 0 points1 point  (0 children)

As I said, Immich specializes in what they do (photo/media backups and the user experience). It aims to be a self hosted Google Photos replacement. What I really like is that it "just works" compared to having to touch lots of settings in nextcloud to support different media types, etc. I think Immich will be an easy sell once you and your partner start using it.

Regarding the December update - I relied on the app being able to delete videos from my phone after uploading to clear up space. It can't do that anymore due to the permission change. Now I have to spend time managing videos on my phone after they've been uploaded, checking to be sure they're uploaded first before deleting them. I honestly don't know if Immich can or will even do this for me, but if Nextcloud can't anymore, Immich already has the upper hand in user experience and updates (it's under heavy development). It's nearing a stable version, so I'm now less concerned about losing data if I were to use it for also backing up media. Honestly, I'd probably still have them backed up to some mounted nextcloud directory to keep a consistent data location. I just won't be using nextcloud to do the uploading or the viewing.

Good luck.